0
votes
0answers
12 views

How to parse HTTP response (JSONdata) in cocos2d-x

I am making a HTTP request to a server and I am getting data from the database. Now I want to parse the JSON data and get the data into variables like this: std::vector<char> * buffer = ...
0
votes
0answers
49 views

Octree Frustrum Culling

times came when i had to implement some culling into my engine. I started by reading some stuff and so far so good. I managed to create an octree which can effectivly divide my geometry's vertices ...
0
votes
2answers
37 views

particle - interpolate

I want to make a particle that interpolates in Alpha and velocity. public class Particle extends GameObject implements Updateable { int time; int lifetime; int Alpha; double dx; ...
4
votes
2answers
79 views

Which parts of game should belong to engine and which should belong to scripts?

Often, the game is splitted into engine code (i.e. C++) and scripts (i.e. Lua). The question is which parts / modules of game code should typically belong to engine, and wchich should belong ...
0
votes
0answers
12 views

Python & Pygame: How do I use this animated gif as background surface?

How would I go about putting an animated gif into my game in Pygame? I'm following along on the tutorial at inventwithpython (source) slidepuzzle.py My code is very similar, as I'm just beginning how ...
0
votes
1answer
33 views

A Star pathfinding on oblique map

I'm making an RPG and want to make npc ai to navigate the city. I am using polylines for collision detection, and my map is 2D, but oblique styled. I am considering using the A* algorithm to help them ...
1
vote
1answer
29 views

libGDX fileHandle cannot readString()

I have created a text file called "useraccounts.txt". All I want to do is to read the file using the filehandle class but I always get this exception: Exception in thread "LWJGL Application" ...
3
votes
3answers
104 views

What exactly are “tight controls”?

I hear in many game reviews, how gamers complain about the controls of a game, when they hate it, or how they praise them when they work right. This expression comes up: "Tight controls". It seems ...
2
votes
1answer
39 views

Getting the Volume of an Uneven Mesh

Let's say I have a cube, and that cube breaks apart into 100 different unevenly sized pieces. How can I get the volume of each of those pieces compared to the cube's volume? Using this in order to ...
3
votes
2answers
76 views

Unity - Water Cube (to 2D game)

I wonder if you can create a cube of water within the unity! I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial ...
1
vote
1answer
62 views

A* Path Finding Loops Forever

For, hours, I've been following these instructions. public PathFinder(IntegralLocation loc, final int dest_x, final int dest_y) { boolean found = false; final List<Node> open = new ...
0
votes
1answer
49 views

Why would this scaling matrix have no effect?

To draw a simple model using the DirectXTk, I'm doing the following. It all works perfectly, draws correct, and so on. Except changing the scaling factor makes NO difference, and I can't figure out ...
-4
votes
0answers
21 views

Rearranging std::multiset Container [on hold]

In my program when I make a change, I want to reorder my set but when I call these two alternative functions I get an iterator not incrementable error. I realised that the problem occurs when I call ...
0
votes
2answers
29 views

How to use pre-made particle effects in Unity5?

I downloaded some particle effects from an asset store but I don't know how to use them in my project. I instantiated them but I can't control their effects and duration/time.
3
votes
1answer
32 views

Strange depth map projection

I'm trying to implement depth-only SSAO and for that, I render a depth map into a texture and pass it to my SSAO shader which then uses it. The problem is that when I try to output the depth map ...
-2
votes
0answers
28 views

Getting size of Unity3D scene (bounding box)

I have following problem. I need to get bounding box of Unity3D scene in order to both making it impossible for character to fall endlessly if he happens to get out of the scene, and to calculate AI. ...
0
votes
1answer
30 views

Problem with ID3D11DeviceContext::CopyResource method - How to properly read a texture CPU-side?

I am trying to make a full copy from a render target texture to a staging one but it seems my data length ends up being only 4 in length instead of 921600 (1280 * 720). Here is my textures ...
4
votes
1answer
61 views

Predictive Collision Detection - Find Time Of Impact

I have a green box at a starting position A. It can move along two paths A to B is linear motion A to C is under the influence of gravity (non-linear) The thin vertical line is a fixed ...
0
votes
0answers
21 views

Create sprite sheet (texture atlas) from video with alpha

What's the best way to make a sprite sheet (texture atlas) from a video? In my case, I have videos of animated character expressions (e.g., smiling, frowning, sad, excited), which I intend to use as ...
2
votes
1answer
630 views

Creating a Static function inside my class to handle small housekeeping tasks

I have used Unity 3D for quite some time, and a lot of my game programming experience originates from using UnityEngine. Writing in XNA, I am setting up a nested list of objects. Each object will be ...
1
vote
1answer
41 views

How to Slice the external Spritesheet programmatically by using C# in Unity

I have a sprite sheet like this: I am using Unity Engine to develope my game. I would like to load this external spritesheet outside and slice it as Grid type programmatically instead of using ...
-2
votes
0answers
37 views

Java - How to implement Graphics into a JFrame [on hold]

Currently I have a class in Java in which I have a JFrame setup. I want to be able to implement Graphics onto the JFrame. How do I do this? My Code as of so far: package com.graphics; import ...
1
vote
3answers
111 views

AI Random Path Genenrating

I would like to make an enemy walk randomly around a map I have made and if the player is in his zone of sight the enemy to change state to attacking/following. So how would I accomplish something ...
1
vote
1answer
29 views

Where to put the screen dimensions to make it accessible for all on screen objects?

I'm starting game development to learn a new language (SDL2, C++) and would like some opinions on the best way to handle a probably very basic problem. I don't want my player to go off screen, so I ...
0
votes
0answers
9 views

Oculus Integration on Unity 5.1.2 not showing Oculus Lenses (like two black boxes) when debugging/editor

I added Oculus Utilities for Unity 5.1.2, created a simple scene, added OVRCharacterController prefab, it works fine like normal fps controller but as far as I know, it should show something like 2 ...
0
votes
0answers
27 views

I've developed a very large and extensive browser game in PHP/MySQL, but a mobile app game would be better. Do I need to start over?

I have developed a very large browser game in PHP and MySQL. (Bootstrap/HTML for client side) Every time I build another piece of it and solve the issues, I keep realizing that the game will be much ...
1
vote
1answer
73 views

Are shaders always faster?

Will using shaders or some other way of talking directly to the GPU always be faster than drawing to the screen in whatever language a game is being (mainly) written in? I guess that code with lots of ...
1
vote
1answer
50 views

2D grid based game merging boxes

Basically what i have at the moment is a tile based game with a grid containing a number of colored cells. this is what i've done so far The prinipal idea of the game is that the user has to ...
0
votes
2answers
70 views

3d projection help?

I've been wanting to know how to do 3d projections. Can someone explain how i can use this to find the position for x and y on the 2d plane that is 600 * 600 pixels.
-1
votes
0answers
17 views

Java slick 2D error update

i have an error in java game slick when i try to use sprites : Game.update() failure - check the game code. This is my code: import org.newdawn.slick.Animation; import org.newdawn.slick.BasicGame; ...
1
vote
0answers
20 views

Vbo 3d triangle opengl w/ LWJGL

So i am using lwjgl, took me about 4 hours of hard work to achieve triangle rendering and vbos, now i want to render a triangle in 3d space. I know you have to use projection matrices. But when i have ...
-2
votes
1answer
50 views

How can I make a gameObject “stick” to another gameObject after it has collided with it?

How can I make a gameObject "stick" to another gameObject after it has collided with it? Right now the gameObject just passes through! [C#]
0
votes
2answers
48 views

Unity - Determine direction vector3 from a point in space and an angle in eulers

I have a ball positioned as Vector3(x, x, x). I was able to get the direction of the ball to the mouse clicked position with: Code (csharp): Vector3 direction = Direction (clickPos2 - startPos); ...
0
votes
1answer
23 views

Unity Application.LoadLevel freezes the game on Android device

I'm developing a game using Unity. The game has a single level and after the player wins/loses, I simply want to reload the same scene. Here's the code I'm using: private void OnLevelFailed() { ...
0
votes
0answers
14 views

camera or position issue when render sphere with cocos2d-x 3.7

See code below bool HelloWorld::init() { [....] auto size = Director::getInstance()->getWinSize(); // setup camera auto camera = Camera::createPerspective(30, ...
0
votes
1answer
32 views

Is there anyway I can make a plane visible from both sides?

In Unity i have a model of a tree with leaves made of a plane and a texture, when I upload it to unity the texture is only visible on one side so how can I change it to be visible from both sides ...
1
vote
1answer
24 views

How to implement constant acceleration and collisions without gravity

I am learning game development and i am trying to implement the AndEngineBox2D Extension such that my character is always moving at a constant velocity, when it collides with a body sprite, the ...
0
votes
1answer
23 views

Unity2D Sprite gone / not visible when flipped using Vector3.x

I have create game object with code using UnityEngine; using System.Collections; public class CharacterBehaviour : MonoBehaviour { private bool facingRight = true; private float moveDirection = 0; ...
0
votes
1answer
80 views

How does orbital math work?

I'm writing a 2d space game, and I want the players to be able to 'orbit' objects and other players (if they're fast enough, of course), but I'm having trouble coming up with the right way to think ...
0
votes
0answers
29 views

Faking Perspective/Depth using 3D images converted to 2D sprites - Can't work it out!

after a lot of searching/reading/viewing old school game videos I am still unable to work out how to achieve the effect I am after. I am currently working on a 2D "overhead view" sci-fi RPG, using a ...
0
votes
0answers
16 views

Use Lerp Position and Slerp Rotation together

This is what I try to do, When I click on a UI Element, the camera smoothly rotate (to look at the target) and simultaneously move on top of the target. To perform that I use a two Coroutine one for ...
-1
votes
0answers
13 views

Maya vs 3dsmax for game asset design

I am just getting into game design but wish to eventually sell my games, which means I need to consider commercial licences for my software. I have been comparing 3dsmax and maya. It seems like these ...
0
votes
0answers
21 views

XNA4\ Monogame 3d Collision detection Help please

i have been trying to get 3d collision working for a while and i think(hope) you people can help me so for my project i have created a 'sprite3d' kinda class which is called ModelEntity and there ...
0
votes
1answer
16 views

Using glm to rotate the modelview matrix based on the cursor position

I am rendering a 3D model of an object, and I want the user to be able to rotate around that object by dragging the mouse. To do this, I want to use the cursor position to continually update the ...
0
votes
1answer
39 views

Scene management

I viewed sources of rendering engines (ogre, irrlicht, openscenegraph) but I can't really grasp the the main ideas of their scene management systems. I also read many articles (including Game Engine ...
0
votes
0answers
15 views

What is dynamic branching in shader? And How to check which runs on android phone?

Is it simple "for" or "while" in loop with variable? Is it standard term? I have errors on some android devices with "for"-terms. [0020.31] Log: Compiling Shader 0x8200000000_0x3000000000000000, ...
0
votes
2answers
13 views

unity - get component variable from object in trigger

i want to get a component value from the game object which collides with my trigger's object script. this is my code on the trigger: void OnTriggerEnter (Collider obj){ ...
3
votes
4answers
97 views

Special Pathfinding Algorithm

I need help with following pathfinding Task: I have a grid (7x7 squares) and the starting square is always on the far left side (column 0) and its target is to reach the far right side (column 6). ...
1
vote
2answers
34 views

Camera controll in Libgdx

I've a condition in my game where, I want my camera to follow the Player(its a body from Box2d) and in some not. This is the start screen of my game: Now, when i press a button(space) the player ...
0
votes
1answer
22 views

add the variation of the angle to its current angle: trouble with 180 and -180

I need to rotate a character, I would like to add the variation of the angle to its current angle. But my values are between 180 and -180. So if my character is at -179, then he goes right, it arrives ...

15 30 50 per page