-4
votes
0answers
64 views
OpenGL parsing normals from obj gets shading wrong [closed]
I have written a simple OBJ file parser for my game engine and it renders everything correctly, but, when I try and use the normals to do lighting it gets shaded all wrong!
I draw using an index ...
0
votes
0answers
80 views
How can I fix dark banding artifacts when I turn on SSAO? [closed]
When enabling SSAO on my object ( in grey on the picture, background in green), sometimes, claimed in position of the camera, dark bands appear on my object (see picture).
The shader is written in ...
1
vote
0answers
52 views
Steering behaviour
So I found this steering behaviour code in a book but i dont really understand the last part of the code what exactly is he doing because im unfamiliar with c++. Why would you need to ...
4
votes
1answer
64 views
How to skip the sky in lighting shaders?
I recently implemented a sky in my deferred rendered game. It is a procedurally calculated sphere with a texture applied to it. Unfortunately all lighting shaders (light sources, ambient occlusion) ...
-3
votes
0answers
34 views
Farseer: Character jumps weird [closed]
I have a little problem with jumping. For example, the character(Mario) jumps from the top of a tile. The character is now in the air and not touching a tile. After that, he touches the right or left ...
-1
votes
1answer
24 views
Shader applied to Texture is not showed in GLSLES
I'm trying to learn the basic of shaders following basic tutorials in Ogre.
I use GLSL ES 2.0 #version 100
I think I have a basic concept problem. I'm trying to render a model + texture without make ...
0
votes
1answer
22 views
Android cocos2d removing a sprite after animation
I have an object going across the screen with an animation using the following code:
CCSpriteFrameCache.sharedSpriteFrameCache().addSpriteFrames("ninjastar.plist");
CCSpriteSheet projectileSheet = ...
1
vote
0answers
34 views
Move parent according to child axis in Unity?
Can I ask my parent to move according to the child axis? This means if I turn right, then right again, the parent has to be at 180° from its original position, and not only at 90° (because "Right" ...
-2
votes
0answers
72 views
Game development update for newbie [closed]
I know many topics been here before but i think mine will be the most updated question. I want to start on game development, my target platform is android. I have experienced in web desktop and ...
3
votes
1answer
91 views
Matrix represents same rotation with different euler angles
I have Transform component storing it's rotation as Quaternion.
Transform has set/getEulerAngles (rotation order oy, ox, oz).
I want to rotate object in any direction but while testing I get ...
3
votes
1answer
114 views
How do I make a tile passable in one direction only?
I want that my character can jump through some of the tiles, like Mario does in this video:
http://www.youtube.com/watch?v=zIPYzbNrNhc
In this video, Mario jumps up through orange platforms, but ...
1
vote
1answer
38 views
Which key bindings to use for switchable primary and secondary attacks?
I am making a game in which the player can have a primary and secondary weapon (like an ability). These are my current planned key bindings:
Action | Effect
-----------------
Click | Shoot primary ...
3
votes
1answer
67 views
Player ranking using ELO with more than two players
I would like to use ELO to track player rankings between matches of a certain game, however the game can be played with up to four players in a match. I have seen games like Carcassonne use ELO with ...
1
vote
1answer
59 views
Get MonoBehaviour components from Prefab
I need to assign the script values for the following Prefab in Unity 3.5
The structure is the following
Kinect_Prefab
-MonoBehaviour
·Script: Missing Mono Script
-MonoBehaviour
...
-4
votes
0answers
64 views
A simualtion task in blender (contains neural network) [closed]
I'm making a hand simulation in Blender 3d modeler. That hand will try to learn how to hold a stick vertically balanced. In Blender, I have to implement an unsupervised algorithm for this task.
My ...
14
votes
5answers
811 views
Do you actually use diagrams to model games?
I mean mostly UML but any method that works is viable. So - do you actually model your games with UML/other diagrams or different methods? I had a subject at my university about modelling with UML and ...
0
votes
3answers
126 views
How do I move a sprite to the mouse position?
So, I'm trying to make my sprite walk to the X-coordinate of my mouse click.
This is my code:
currentMouseState = Mouse.GetState();
MouseState mouseState = Mouse.GetState();
...
-2
votes
1answer
28 views
Getting started with Phaser/TypeScript [closed]
Looking for help getting started with the new TypeScript HTML5 game framework Phaser (https://github.com/photonstorm/phaser)?
3
votes
1answer
116 views
Aim prediction along a parabola - How to make a Tower Defence Mortar aim accurately
I am building a very basic tower defence game in Unity3D where one tower is your standard long range mortar/artillery.
I want the projectile it fires to follow a parabola curve to make its movement ...
-3
votes
0answers
34 views
Farseer: Difficulties with polygons [closed]
I want to create a polygon but I get many error messages. I don't know what to change.
What is wrong?
The size of my texture(polygonTexture) is 350x150 pixel. ...
6
votes
2answers
257 views
How to define areas filled with water?
I would like to enhance my little game engine with nice looking water simulation. To start working on that I need to find a proper way to represent water in the game. Unfortunately I don't know much ...
-2
votes
1answer
34 views
Farseer: are you missing a using directive or an assembly reference?
I want to create a polygon in Farseer. I found an example in the documentation but it's not working because I get this error message:
The type or namespace name 'Vertices' could not be found (are you ...
0
votes
2answers
170 views
2D Water Shader
I am trying to build a 2D Water shader and I am using Unity but the plateform isn't a problem.
Here is an example of what I am trying to reproduce :
Limbo water shader
Are there any good tutorial or ...
-2
votes
2answers
84 views
Cross Platform HTML5 Canvas game engine [closed]
I want to build a puzzle game,I want to develop it for Browsers, Android, iOS, And PC. Please help me and let me know is there any game engine that is useful for making cross platform HTML5 games..
2
votes
1answer
154 views
How should a programmer get started with creating 2D Sprites? [duplicate]
I am a programmer. Given a sprite sheet, I can code game as per the requirements. But I do not know how to create these sprites. I use Cocos2D. And I do not know where to begin. I have never done ...
1
vote
1answer
39 views
How to handle scaled aspect ratio multiplayer player coordinates
I'm building a cross platform multiplayer game. I'm using pixel graphics and starting at a small 256x144 16:9 aspect ratio That gets scaled up to larger 16:9 resolutions. The graphics look ok however ...
5
votes
1answer
93 views
Slow glReadPixels
I have implemented a lense flare for my game, and it looks great.
The first draft used individual sprites each with its own draw call. This was very slow, so I reengineered it to use a single draw ...
7
votes
3answers
195 views
Collision detection problems using AABB's
I implemented a simple collision detection routine using AABB's between my main game sprite and various platforms (Please see code below). It works great, but I'm now introducing gravity to make my ...
-6
votes
0answers
43 views
What's happening with Unity boards? [closed]
I've recently run into the same image when trying to read any posts from the Unity boards, stating that "something went wrong" (which is not descriptive at all).
Is there some maintenance update ...
0
votes
1answer
47 views
Farseer: Ball is not getting slower
The ball is not getting slower when it rolls over a straight platform. I added friction but that changed nothing, the ball still gets not slower. I want that the ball gets slower and slower and stops ...
1
vote
0answers
56 views
JMonkey - Create health bar?
How can I create a health bar in JMonkey? Is there some documentation that can help?
I am working on a game, specifically “Battleship”, using the JMonkey Engine (JME3). I want to add health bars on ...
-1
votes
0answers
36 views
Odd errors w/ disabling game objects with C Sharp in Unity
I'm having problems with properly disabling game objects in Unity. Right now, they're disabling, but I get a "NullReferenveException" error whenever the first object to be disabled is disabled.
The ...
5
votes
2answers
126 views
How to create a font from an image for a game?
I found a font in a free pack of sprite as an image:
I'm wondering what would be the best way to use it in a game?
Is there tools to create a font from this image? Do i have to code it myself? I ...
2
votes
2answers
55 views
Relevant file paths for reading in from a file?
Working on something in XNA, need to be able to read in data from a text file for something.
Trying to figure out how I can shorten this pathname down, so instead of it always checking there, it just ...
1
vote
2answers
67 views
LibGDX GestureDetector touchUp
I am using to GestureDetector to detect drag gesture and determine vector based on position my finger first touched the screen and position when my finger left the screen. I already know that I can ...
4
votes
3answers
409 views
Copyright infringement in game title [duplicate]
I'm a wanna-be indie developer, and I am working on my first flash game. But, before I even start with the code, I want to know this: When determining the title of my game, how can I decide if it is ...
-1
votes
0answers
23 views
Applying the vector of a swipe movement to a box2d object
Hi I'm trying to achieve game functionality where the player can place their finger on an object then swipe in a certain direction and apply the speed and velocity of the swipe to the object they have ...
3
votes
2answers
58 views
Why is there a different set-constant-buffer function for every shader type?
Why are there VSSetConstantBuffers(), GSSetConstantBuffers(), PSSetConstantBuffers() (and so on) instead of just one SetConstantBuffers() for all shaders?
Should I have completely separate constant ...
0
votes
1answer
63 views
Farseer: Ball is not bouncing realistically
I created a ball that is rolling over platforms. When it falls from one platform to another, it should bounce just like in real life, but the ball keeps bouncing constantly and I don't know how to ...
2
votes
0answers
55 views
Detect collision in Blender
I am trying to write a Python function for Blender(2.66) game engine, that permits me to detect collision between two objects.
I tried to read the documentation, but it's very confusing, and I don't ...
0
votes
0answers
57 views
Building Turn-based Multiplayer Architecture [closed]
I started to make multiplayer game but as I have no expirience I tried it different ways but something doesn't feel right to me.
So, I really need an advice about which ...
0
votes
0answers
26 views
XNA 4.0 DepthStencil Buffer problem [closed]
I am trying to manage deferred rendering in my project. Esspecialy the skybox and clouds which has to be rendered behind everything and for sure the skybox+clouds will not be passed by deffered ...
1
vote
1answer
123 views
Optimal FPS for best user experience/battery life
I'm currently developing a game for Android. The "graphics" I'm using is not very CPU/GPU-expensive thus it runs with high FPS. Because on Android devices, saving energy is important, and I want to ...
-1
votes
1answer
88 views
How do I animate images with OpenGL? [closed]
I've been thinking about using set of PNG images (representing frames) and continuously change between them to look like an animation.
Is there a simpler/better way? (maybe using GIF?)
1
vote
1answer
44 views
How to make camera rotation independent from frame rate?
I multiply the mouse movement by a given number to get camera rotation of a desired speed. But it only works at 60 FPS. When I don't limit the frame rate I get around 350 FPS and the camera rotation ...
1
vote
2answers
184 views
How do I create a “flying through space” effect?
On the Final Destination stage in Super Smash Bros Brawl (and SSB Melee) the players fight on a platform seemingly moving through space:
I see particle effects, but I don't understand how they made ...
5
votes
2answers
143 views
What perspective is suitable for sharing a screen across a table?
I'm thinking about a 2 player 2D arena game for a mobile phone, but I have the obvious problem of gripping. To avoid this, I think it shouldn't be a problem to play one in front of the other with ...
0
votes
2answers
68 views
Moving camera along generated terrain?
I'm generating my terrain on the GPU, using diamond square subdivision (no height map involved). How can I anchor the camera's position to always be on top of the generated terrain?
Thanks
0
votes
0answers
34 views
JavaScript “Floats”, or ThreeJS wrong positioning?
I want to learn how to use Vectors with 3D.
Here is a strange Error I have encountered today.
Instead of stopping exactly on the other Cube, I get this:
When I change the IF to (cube.position.y ...
0
votes
1answer
52 views
Android Loop : Draw Loop : How to pull off smooth FPS?
I am writing 2D side scrolling bullet hell-like game.
I am at a point where I struggle to pull off smooth fps.
I have separated loop that manages drawing.
However I want update the position of ...


