0
votes
1answer
24 views

How can I update a Stage-based HUD from another Stage's Actor in libGDX?

I feel like this is a simple problem, but I'm having issues finding the correct search terms. I have a Screen that includes two Stages. The first, stage, contains a number of objects deriving from ...
1
vote
1answer
62 views

Best way to calculate city influence maps similar to civilisation?

As the title says, imagine you want to generate the influence mask for a city, given that the map is a 2D grid rather than hex. An extra bit is that different points on the map might have different ...
1
vote
0answers
35 views

Multi-layered tilemap

I need to be able to efficiently render a tilemap which can be constructed this way: There is one non-transparent base layer Then there can be 3 partially-transparent layers on top of it. Each tile ...
-1
votes
0answers
47 views

Gamesparks Vs PlayFab… Which to pick? [closed]

In terms of ease of integration and pricing, which of these two systems would you prefer. I need push notifications, in-app purchases, leaderboards, and user management. I have looked at both ...
2
votes
3answers
196 views

What's the best way to organize small textures in OpenGL?

What's the best way to organize small textures in OpenGL—having them all in a big texture and selecting them with texture coordinates, or using individual OpenGL textures? Until recently, I used to ...
1
vote
0answers
27 views

Browser game - small models with tileable textures vs one big model and one big texture

I am few years behind in terms of browser capabilities. I plan to combine 3D with pixel art, and I am going to use Unity to make a browser based game. I have made a stage that is one model and has ...
-2
votes
0answers
19 views

libGDX interface cannot be applied error

I would like to use interfaces in libGDX. I get an error in AndroidLauncher before compile. It says for this line: initialize(new MyGdxGame(actionResolverAndroid), config); .... cannot be ...
0
votes
1answer
47 views

OpenGL Blending Format

In OpenGL, is there a format for a texture in glTexImage2D that prevents blending, or do you have to disable it using glDisable(GL_BLEND). Reason for use is that I would like to store additional data ...
1
vote
1answer
25 views

Animator has not been initialized

My animation is working but unity keep saying that my Animator has not been initialized error Here my Code: using UnityEngine; using System.Collections; public class Player: MonoBehaviour { public ...
0
votes
0answers
107 views

What type of 3D engine is the original Quake engine?

What type of 3D engine is the original ID Software Quake engine (1996)? What is the correct terminology? Is there a particular simple term that describes this type of engine? E.g. the original ...
1
vote
1answer
50 views

Instantiation taking too long?

I have a game where there are about 4 empty objects that are my object "spawners". I have two scripts attached to all of them, one that will keep spawning objects from "basictable", and then switch to ...
-2
votes
0answers
20 views

Unity error CS1519 and error CS1525 [closed]

using UnityEngine; using System.Collections; public class Player: MonoBehaviour { public float maxspeed = 10f; bool facingRight = true; bool grounded = false public Transform ...
0
votes
0answers
33 views

How do I port a simple 2D Monogame to MacOSX

I have made a simple Windows Monogame project (using the DirectX template). What are the steps to port my game over to MacOSX? If I need to change my Monogame project so that it uses a OpenGL ...
1
vote
2answers
106 views

How can I render extremely large models?

I'm trying to build a game in Unity similar to the game Kerbal Space Program where there are large celestial bodies that the player can orbit. I'm running into a few problems though. My first issue is ...
0
votes
1answer
63 views

Task vs Thread with execution queue [closed]

My game server will have to respond to requests very often, so I consider threading a good option. But should I use Task class from .NET or have several threads that would execute requests which I ...
1
vote
1answer
60 views

Text rendering techniques for games

I'm researching text rendering techniques for 3D applications, and I'm having a hard time finding information on the topic. Do you know of any other methods of text rendering that are actually used in ...
0
votes
1answer
27 views

unity3d - Object keeps falling down

I have an object that moves towards another object using this line : transform.position = Vector3.MoveTowards(transform.position, target.transform.position, speed * Time.deltaTime); this is it's ...
0
votes
0answers
19 views

Create Plane or Quad with size set to fit dynamically-loaded texture

I'd like to load a texture image (at runtime, from web, not stored in Asset folder anywhere) and apply it to a plane (or quad, etc.) so that the plane is the same size, in pixels, as the texture. I'd ...
0
votes
1answer
65 views

Is this a good way to regulate fps?

In all of my tests I always regulate the fps by using this method. const int fps = 30; const int msPerFrame = 1000/fps; // 33 ms per frame, so it's more like 30.3030 fps while(true) { const int ...
1
vote
1answer
23 views

Unity Inspector Not Showing Serialized Variables Of Child

So I'm new to using Serialaiziblewtfever(I just cannot remember the correct spelling). In the Unity editor it works fine if I have something like: [System.Seriliabizblewtfever] Public class ...
0
votes
0answers
16 views

How to sample png heightmap in HLSL

I am working on simple parallax shader and I have problem with sampling height texture for value. My aproach amples texture and give me RGB values of picture: tex2D(TextureHeightSampler, ...
-2
votes
0answers
48 views

Is it possible to make a 3D game in Java [closed]

Hello I was just wndering if it was possible to make a 3d first/third person game in java without opengl or any added librairies. Just plain java. If so can you import models and can the game be a ...
0
votes
2answers
43 views

I can't add script in unity

I'm a beginner in unity so I got this problem. Here is the script: using UnityEngine; using System.Collections; public class Playercontrol: MonoBehaviour { public float maxspeed = 10f; bool ...
-3
votes
0answers
45 views

3D Fractal terrain generation

I have a problem with my terrain, each time I get a strange terrain. I don't know where is exactely the problem. Here is my MidPoint dispacement function: bool terrain::MPD(int x1,int y1,int x2,int ...
0
votes
1answer
61 views

How to use multiplication operation in game render delta time?

We are using delta time like this: private static final float SPEED = 200f; // Moving pixels in one second @Override public void render(float delta) { myObject.vx += SPEED * delta; ...
-1
votes
0answers
31 views

Recommendation soft like Barok? [closed]

I was surprised how beautiful is Barok Engine, but is not in English. Have someone some recommendations similar to Barok Engine? I have to do a small game 3d for a university project.
0
votes
0answers
12 views

how to trigger a ball from rotating cube in z axis

how to release ball from the cube which is rotating in z axis, ball should move in Y axis and ball should be reloaded after releasing the ball ?? Thanks in advance cheers Gokul
0
votes
1answer
34 views

How to convert pixels to meters in Box2d with Cocos2d-x 3.5?

I am using Cocos2d-x 3.5. I created a simple game with edge bodies and one circular body to test box2d. Physics wasn't working well, so i thought i should convert pixels to meters and use that meters ...
0
votes
0answers
39 views

OpenGL MD5 Model Animation. Performance issues

A time has come when i had to implement an Animation to my Engine. I started with standart MD5 mesh/anim format since i find it easy to understand. I managed to implement a simple MD5 loader and i can ...
-1
votes
0answers
41 views

Stuck in Java game development [closed]

To start with, I need some help for my homework assignment. I am developing a game. This should work as a command prompt interactive game. For example: > addplayer username, familyname, given ...
1
vote
1answer
29 views

How to play more than one background song in XNA?

The current tutorial I am using to play background songs only allows me to play one song throughout the entire game. Link to tutorial --> http://rbwhitaker.wikidot.com/playing-background-music I ...
0
votes
0answers
23 views

OpenGL - Cubemap “Rotating” Proportional To Camera Movement

I'm doing a simple planet rendering project and am running into an issue with accessing cubemap textures correctly. The planet terrain is generated using the diamond square algorithm done 6 times and ...
0
votes
0answers
19 views

Errors Generating A Plane Mesh Using A Script In Unity

In unity I have a script which is attached to a game object with a mesh filter. The purpose of the script is to generate a flat plane of 100x100 vertices. The code for the script compiles in ...
0
votes
0answers
19 views

RenderTexture not working in very specific circumstances (Unity 4.6.3)

I'm building a project in Unity that makes heavy use of RenderTextures and ComputeShaders, and I found out early on that if I tried to open the project in the free version of Unity, I got an ...
1
vote
0answers
19 views

Import Unity 2D objects in Libgdx

I'm using Libgdx to do some simple home projects. I'm trying to make a simple 2D game with Box2d using R.U.B.E as editor. I create a 2d terrain in R.U.B.E now I want to create the terrain texture. I ...
0
votes
1answer
38 views

unity3d - Fire bullet using AddForce is very slow

This is a top-down view but in 3D coordinates, I would like to instantiate and fire a bullet from the player's gun. This script is on a spawner object at the end of the barrel. void Fire () { ...
2
votes
2answers
37 views

Synchronisation on a non authoritative networked peer to peer scene

I currently have a piece of coursework that requires 3 or more 3d simulations connected via p2p to maintain a simulation that is visually consistent amoung all peers. A big issue is that I'm not ...
1
vote
1answer
36 views

Modern OpenGL Texture Displaying Incorrectly [closed]

I've been working with this code and have simplified it to the most basic form possible, and even then I cannot get a texture to display properly at all. Here is the code: ...
-3
votes
0answers
35 views

How to create a 2D Platformer game using Direct3D? [closed]

I was able to scroll a repeated background and I need to know how to create the foreground i.e the ground where the player walks and jumps. Thanks in advance.
0
votes
1answer
14 views

Unity Make sprite visible only to shaders

I have made a shader for my UI buttons, the sprites should be black and white, so they can be used as a mask when blending. They should allow for the image behind them to pass through the whiter ...
0
votes
1answer
37 views

Box platform collision

I'm working on a platform game and my collision code is to picky. I can't exactly do aabb(?) because the map is represented as metatiles. (23-24 16x16 tiles make up a 300ish pixel resolution.) My game ...
0
votes
0answers
15 views

HumanIK Z axis Up in Maya for Unreal Engine

I am pretty stumped! I want to use HumanIK in Maya to throw together some prototype animations for my game that is being developed in Unreal Engine 4.7 The issue is that Unreal requires Z axis to be ...
0
votes
1answer
45 views

How to make TMXTiledMap responsive?

I've been struggling with Cocos2d-x (C++) and finally I got to the point I feel more or less comfortable with that. My game is a 2D car-based one, with a straight infinite map where I've finally been ...
0
votes
1answer
54 views

UNITY IEnumerator Function

I am currently using the IEnumerator function to pause a for loop, in which a ball should move towards another game object. From my print statements it seems like the ball moves a little, but it's ...
0
votes
1answer
33 views

I cant get my interface to work

This is my first time using interfaces so I imagine I'm doing something dumb. I have an interface called ILoadable inside ILoadable.cs; using UnityEngine; using System.Collections; public interface ...
1
vote
1answer
56 views

unity3d - Instantiate and fire bullet realtive to player rotation in 3D

This is a top-down view but in 3D coordinates, I would like to instantiate and fire a bullet from the player's gun. This script is on a spawner object at the end of the barrel. Also tried putting the ...
2
votes
0answers
47 views

Physics: calculating angular acceleration in world vs local space

I have a pretty simple rigid body simulation written in Python. In my code I calculate the angular acceleration using formula: angAcc = torque * inertiaTensor^-1 (note row-major matrix order) Now, ...
1
vote
0answers
60 views

Transformed Vertices have wrong Z Axis

For quite some time I've been working on my open 3D game engine, to learn how this stuff works. You can see the full codebase relating to my problem here on GitHub. I'm using an OpenGL 3.3 Core ...
4
votes
2answers
139 views

How do I create a toggle button in Unity Inspector?

I want to create a tool similar to Unity's Terrain tool, which has some nice toggle buttons in the inspector: How can I achieve similar design to this? I know how to create normal buttons and ...
1
vote
1answer
29 views

main camera not covering whole screen in unity3d

I have been using unity and i got a problem where my main camera is covering only the first half of the floor i made. camera position is left and the floor is rotated ,i m posting an image please help ...

15 30 50 per page