1
vote
1answer
49 views

What is the relationship between glVertexAttribPointer index and GLSL location?

I've been getting some strange results when trying to implement a normals buffer for the purpose of rendering lighting. It seems to be related to the indexes for glEnableVertexAttribArray, ...
-2
votes
0answers
43 views

How to check the Intersection the line and triangle in 3D [on hold]

For example there is a code: struct Point { public int X; public int Y; public int Z; } struct Triangle { public Point p1; public Point p2; public Point p3; } struct Line { ...
3
votes
1answer
82 views

what is the name for the category of game that use a real time clock as the game time like die2nite.com

I was looking for more game like http://www.die2nite.com and http://mush.twinoid.com/ They use real time as the fictional time. Player are given a number of action point they can use freely during a ...
1
vote
0answers
31 views

Variance shadow maps less blurred than normal shadow map

I've implemented VSM (and also ESM) in my engine but results are for me not as I expected and saw in many examples published on network. I set filtering of shadow maps to GL_LINEAR but when I compare ...
0
votes
2answers
89 views

Avoiding singletons for puzzle system [on hold]

Say for instance I have a puzzle with 3 switches that need to be in some configuration (say all on) in one room, that opens a door in another, with a load screen separating, so I can't link the ...
2
votes
1answer
58 views

How can I access a script variable from another script in Unity?

I'm creating a space shooter (think Space Invaders or Galaga) where the GameManager persists between scenes but the player and enemies don't. I need to access a boolean value from the player and ...
0
votes
0answers
11 views

How can you duplicat folders and not share old dependencies in Unity?

I have a folder with some prefabs, materials, textures, FBX, etc. My Prefabs refers to FBXs and Materials in this folder. Can I clone this folder in a way that it will save those local dependencies? ...
2
votes
1answer
110 views

Collision detection between 2 irregular shapes

I need to implement a collision system for a vertical-shotter and the bullets can have any type of shape; i've implemented the shape class with an array of choords and an array of lines which have the ...
1
vote
0answers
38 views

Shadow map shimmering, indexing outside the shadow map

I have tried to reduce shadow shimmering/flickering using technique described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee416324%28v=vs.85%29.aspx I works as I want and shimmering ...
0
votes
1answer
74 views

Why does GameComponent have an Initialize() method?

I'm not sure if this exact question has been asked before, but all I could find were questions about how to work with GameComponent, or why something wasn't working. I understand that you overload ...
0
votes
0answers
40 views

How can I store Key/Button bindings separately in a datastructure?

I want to let the player set their own keybinds, and it's working well. However, I can't tell keyboard Key from controller Button when displaying them in the menu. I store the inputs in a INI file and ...
5
votes
2answers
833 views

Are there any hex tile sizes where both width and height are integers?

I'm trying to figure out the optimal width and height (in pixels) to start building hex tiles for game development. My preference is for "flat topped" hex grids, but the math is similar for both. I ...
-1
votes
0answers
58 views

Percentage HP (100%) vs. Numbered HP (100/100) — Mobile Role-Playing Game [closed]

Just wondered what everyone's preference would be for a health bar. I am making a RPG game for android and apple phones and Im trying to get as much feedback as possible.... even on the tiny things ...
2
votes
2answers
92 views

Calculating gameObjects hit by a directional light source

I am trying to figure out in my current game whether a gameObject is lit by a directional light or not. Below is my image inside the Unity game engine As my game runs around a Day/Night cycle, I ...
1
vote
1answer
72 views

Rotate an arrow on a plane?

I'm creating a display for a GPS-based embedded system and would like to have an arrow indicating the current bearing. I'd love the arrow to have a 3d appearance by rotating it on a plane tilted up ...
0
votes
1answer
49 views

Suggestions for a game variable [on hold]

Im developing a browser game where you can build various buildings that cost varying amounts of resources, all text based. Buildings take land to build and cannot be built unless theres free space, ...
0
votes
3answers
54 views

Add a Countdown Timer that increments in JavaScript and resets per level(Resovled)

I am currently developing a Simon says type game using jquery and javascript. I have linked a fully copy of the game on github Github download and unzip to see the game fully ...
0
votes
0answers
24 views

Can't get libGDX to work! [closed]

I was just trying to make simple game using libGDX, just to try it out, but it looks like I can't set it up. I am using Eclipse+ADT bundle. I also set the android sdk location there. The only thing I ...
0
votes
1answer
65 views

Possible to create 3-D or accelerated graphics on Windows using your own library/API?

Say I want to come up with a way to replace what OpenGL and DirectX specifications do: communicate with GPU to get some functions done that help hardware-acceleration and rapid drawing of screen data. ...
0
votes
0answers
24 views

ID3D11DeviceContext Map/Unmap bottleneck

I maintain a small rendering engine that displays models in Direct3D 9. I'm currently migrating this to Direct3D 11, and I've hit a snag in how I display points on the model. Using a sphere mesh, I ...
0
votes
0answers
20 views

Tech recommendation for simple multiplayer browser games [closed]

I want to create a simple multiplayer browser game. It's basically a simplified chess game, where players would move pieces and I'd program a specific set of rules on the engine. I am proficient in ...
0
votes
0answers
79 views

3d game math problem

i'm very much new to 3d math operations. I know how to rotate 3d points certain degrees arbitrarily by any axis but we were given a strange problem to think on. I'll spare using actual numbers on ...
0
votes
0answers
36 views

Shadow mapping comparing depth in GLSL

I've been trying to figure out how to compare against my shadow map, which has a shader that just does the following: gl_FragColor.r = gl_FragCoord.z; And my vertex shader for the render pass does ...
0
votes
0answers
23 views

Artoolkit, transform pixels coordinates to be aligned to the marker

I'm working with artoolkit, i was trying to get the marker pixels using dataptr and marker_info (x,y coordinate), then i used opengl (GL_POINTS) to draw on these pixels and that was working right in ...
4
votes
2answers
283 views
+200

Should I have multiple small textures or a single big one?

I'm using SDL 2 to create a small 2D game. Based on the docs, this is what I would do: SDL_Surface *surface = SDL_LoadBMP("image.bmp"); SDL_Texture *texture = SDL_CreateTextureFromSurface(renderer, ...
1
vote
0answers
62 views

How to setup a particular blend state where the alpha channel is additive?

I would like to set a blend state to be "additive" and do the following: Result.R = Source.R + Destination.R; Result.G = Source.G + Destination.G; Result.B = Source.B + Destination.B; Result.A = ...
0
votes
0answers
32 views

Create a sprite in Unity that has a border that does not change its width when scaling

I am trying to create a box that has a 10 pixel border and when I scale that box I would like the border to stay 10 pixels no matter the size. I am currently trying to create an empty game object ...
0
votes
2answers
67 views

How to write an adjacency algorithm that compares position data?

I have a list of indexed triangles for which I need to generate adjacency data. I've already written a brute force algorithm that creates 3 edge data structures for each triangle and then compares the ...
0
votes
0answers
19 views

XNA: Does the position of mouseState matter? [migrated]

In order to get a single click response from MouseState, I use this line. currentMouseState.LeftButton == ButtonState.Pressed && oldMouseState.LeftButton == ButtonState.Released) And at the ...
-1
votes
1answer
27 views

Screen flashing while window is open [closed]

The screen renders everything in the right place but the entire screen flickers/flashes while it's open. Any Ideas? TileMapEditor class import com.stardust.main.gfx.Assets; import java.awt.Graphics; ...
0
votes
0answers
9 views

Creating bullets at tip of rotateable object? [duplicate]

I am and not very good at trigonometry or whatever it is i'm even using. My problem is that I simply cannot figure out how to create the bullets exactly at the point of my object. The object rotates ...
0
votes
0answers
6 views

Circular references in Nation-Town-Citizens chain [migrated]

Say I have three classes, Nation, Town, and Citizen. A nation contains towns, and a town contains citizens. public class Nation { Set<Town> towns; } public class Town { ...
0
votes
0answers
13 views

portable pti chamber editor

is there a portable version of the pti editor that does not rely on the p2 game files for chamber Development as i do not yet wish to use hammer or something that advanced
1
vote
0answers
61 views

Best view for 2D Android game in Xamarin [closed]

I am trying to create a 2D multiplayer turn-based cooperative game for Android in Xamarin with possible future implementations for Windows Phone and iOS. The main inspiration for my game is Pandemic. ...
0
votes
1answer
35 views

TileMap not not rendering

I have a tile map that I would like to be able to move while playing the game. In the code you will see the posX and posY variables. I used these variables so that when I complete this, I can have the ...
0
votes
2answers
40 views

Random undirected graph generation

I would like to generate graphs randomly, like this: I have found that Box2d maybe can do it to me. But I do not know, how to use it, so how can I generate bobies after world initialization?
0
votes
0answers
22 views

User interactions with game objects [closed]

Would it be smart to put how game character (in some cases player) interacts with specific game object inside that object's class? Lets say door class would check if character, that tries to interact ...
0
votes
0answers
36 views

Suggestions for porting games to a very low-rez screen [closed]

I'm working on a project where we have access to a big, very low-resolution screen. The screen is about three feet (1m) wide and eight feet (2.5m) tall. Its resolution is 24 pixels wide by 56 pixels ...
0
votes
0answers
21 views

Copyright of old music [closed]

This is a two fold question: I'm using the song "Dance of the little swans" from the Swan Lake by Tchaikovsky for my indie game. I can't find any information on who owes the copyright for music ...
0
votes
1answer
46 views

Xna 2d tile culling

I'm trying to make a simple 2d tile engine here, and I've got a problem with getting a proper cells from a tile grid map when I'm trying to cull off tiles which aren't needed to be drawn. I've got a ...
3
votes
1answer
88 views

Executing commands at the exact same time on 2 or more computers

I have an RTS game, with deterministic simulation, but if I want multiplayer to actually work, I need commands sent between computers to be executed at the exact same time. My game's networking is ...
0
votes
1answer
40 views

C# - How to properly play background songs in XNA

So I'm using the game states (enum) to change my game screens. I have 2 songs for main menu and game playing states, respectively. To play songs, I'm using an old code example I saw at MSDN, like ...
24
votes
8answers
6k views

What is a “2.5D” environment?

I don't understand the meaning of the term "2.5D." I'm specifically confused about the difference between 2.5D and 3D environments, even though I've read different definitions and articles about both. ...
0
votes
1answer
57 views

Mutlplayer game organization [closed]

I'm planning to create an RPG that you can play in multiplayer. The graphics will be simple ASCII. I will do the client C and the server in Python. Having never done a multiplayer game was wondering ...
-1
votes
0answers
22 views

perpendicular planes are too lighted [closed]

I have this problem with Unity. From some days I have the free version of Unity and this issue happened. When I look the floor or a wall, I see a lot of reflection light. It seems that there is a ...
3
votes
0answers
110 views

How do I handle rope physics with fixed ends and a sliding weight?

I've been interested in rope physics recently—I've successfully implemented a simple Verlet rope with moveable ends. Now I am trying something a little different: I want to start by recreating the ...
0
votes
1answer
28 views

Slick2d: Tiled platformer tutorial? [closed]

I am very new to Slick2d. So, I am trying to learn it while making tiled platformer game. It would be much appreciated if anyone could post a link to comprehensive tutorial. Thank you so much.
2
votes
1answer
168 views

Is there any way to change compression type of TMX file?

Basically it's all in the title, you can choose compression type then you create new tile map, but after it's done the "Save As..." option doesn't provide compression type selection.
-4
votes
1answer
63 views

Move an object based on XML/TXT file [closed]

Let's think I have an file which looks like this: 0 1 2 3 4 5 6 7 8 9 10 11 I want to create a move from this file. For every 1s(mentioned in the file) I want to move the object. Is this ...
1
vote
0answers
45 views

Easy way to set face colors with indexed VBOs?

I'm loading OBJs, which lend themselves well to setting up as indexed VBOs, since each vertex is only defined once and then a face definition will reference the same vertex more than once when they ...

15 30 50 per page