Refers to games or art assets built in a three-dimensional space, where all positions have X, Y and Z coordinates.

learn more… | top users | synonyms

-2
votes
2answers
194 views

How do I make a game that can transition from 2D to 3D?

My plan is to start from an really old game and build my way up to todays graphics and games. So for example start with Pong and then go to Space Invaders, then go to Zelda and Super Mario. But then I ...
1
vote
1answer
463 views

What is the logic behind a 3D Projection 'Camera Perspective'? [closed]

Suppose I had a 3D Cube on a 2D plane (screen). And I wanted to use the keypad to move and rotate it. Without referring to a 3D Game Engine that could do this for me can you explain me the logic or ...
2
votes
1answer
139 views

Edges drop out when rendered at a long distance

I have this weird effect when rendering small objects at a long distance. I already tried using anisotropic filtering but maybe I am not doing it right. Material script: material Platform/Border { ...
1
vote
1answer
137 views

Android Object get Jagged at the border

I am new to OpenGL ES 1 in android. My 3D Model border getting Jagged. Please help me to look like a smooth border instead of jagged. Screenshot : http://i.stack.imgur.com/1Gq83.png private class ...
1
vote
1answer
81 views

Variable sized cube texture stretching problem

I have a 1x1x1 cube made in Blender with a simple UVW mapping. It represents a 3D platform of variable size. The thing is that this cube gets resized a lot, and I want to draw a "border" of a ...
1
vote
1answer
103 views

How to render models using a personalized projection matrix?

I'm creating a game with a great sprite demand. Out team is considering automatizing the sprite generation using 3D models. The problem is we have a very particular ortographic projection: We have ...
0
votes
1answer
172 views

XNA ModelMesh.Draw vs GraphicsDevice.DrawIndexedPrimitives

I am using XNA 4.0 and I wonder if drawing models with multiple meshes is better by filling the vertex and index buffers first and calling GraphicsDevice.DrawIndexedPrimitives() or by simply using ...
0
votes
1answer
80 views

How to rotate the camera to point to a specified location?

I have a quaternion based camera class (which controls a view matrix) and would like a function to rotate the camera to face a specified point. The best approach I can come up with is that I rotate ...
0
votes
1answer
196 views

Collision Issues

When I run the collision code, there are no errors, but when I shoot the enemy nothing happens..... Any problems that are blindingly obvious? Class Level Variables public Model model { get; ...
-1
votes
1answer
242 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
1
vote
1answer
66 views

Export object or scene with textures

Is there a way to export or publish some work to a folder so somebody else can open the .max file and does not have to reassign all the textures again? My problem is that i used lots of textures ...
4
votes
1answer
211 views

What is faster — full size with AA or reduced to screen size with no AA?

I wonder what is less expensive resource-wise: Drawing a usual modern 3D game scene with some geometry at 100% scale, with some AA; Drawing a downscaled scene (to fit the screen, but originally a ...
1
vote
2answers
642 views

How to check for cube collisions?

I want a method, which takes two "ObjectBox" objects (A "ObjectBox" has .getX() .getY() .getZ() .getSizeX() .getSizeY() .getSizeZ() methods) as a parameter and return true if the two Boxes are ...
2
votes
1answer
424 views

jMonkeyEngine Pros and Cons

I want to know some good reasons to use jMonkeyEngine for a Java 3d game development tool instead of just creating a game with LWJGL myself? I want to know a good reason I should choose this tool. ...
0
votes
0answers
106 views

Is JavaFX suitable for making 3D games? [duplicate]

JavaFX has 3D graphics capitabilities. Is it possible to create 3D games with it?
12
votes
3answers
652 views

What caused “falling out of the world” and what fixed it?

A lot of early 3D games had the problem where you'd be trundling merrily along and suddenly everything was black, with an island of what looked like the hollow facade shell of the scene you'd been ...
3
votes
1answer
215 views

Collision detection in games in 3D - edge to edge cross product

I am having trouble understanding why, in a game collision detection, separating axis determination requires checking for the cross product of edges of the two polytopes as additional potential ...
2
votes
1answer
241 views

How to correctly represent a bone system?

I'm currently representing my bone system as follows, in pseudocode: root = {} root.rot = v3(0,0,0) root.pos = v3(0,0,0) function create_child(parent,rot,length): child_bone = {} ...
5
votes
2answers
646 views

How do collision meshes work in games like Zelda on the N64?

I was recently reading about the technology of Ocarina of Time/Majoras Mask and discovered that world collision is done using a single triangle mesh (vertices, normals, etc) for an entire area. There ...
0
votes
1answer
151 views

Using a Vertex Buffer and DrawUserIndexedPrimitives?

Let's say I have a large but static world and only a single moving object on said world. To increase performance I wish to use a vertex and index buffer for the static part of the world. I set them ...
0
votes
1answer
109 views

Tangent basis calculation problem

I have the problem with seams with calculating a tangent basis in my application. I'm using a seems to be right algorithm, but it gives wrong result on the seams. What am I doing wrong? Is there a ...
1
vote
2answers
224 views

What am I missing? (Converting 2D mouse coords to 3D space)

I'm making a networked game which has a birds-eye view and I'm trying to convert the 2D mouse coordinates into 3D space. Right now I have a perfectly flat grid and it intends to remain perfectly flat, ...
4
votes
4answers
819 views

Face-Click Detection ( like in Minecraft )

I am working on a box-based game engine like minecraft and I was wondering how to detect the "clicked face" when placing blocks. I have created this engine in C++ ( DirectX / D3D ), C# ( XNA ) and ...
0
votes
1answer
1k views

Parsing Blender obj with Opengl And C++

I wrote an example attempting to parse blender *.obj file in OpenGl/C++ , to get it done : I have to open the file, exploding it's lines ...and returning the result. This is how the shape.obj file ...
2
votes
3answers
1k views

How to find the entity I'm looking at?

I am currently making a mod for Minecraft but I have come to a stop because I am lacking in some knowledge. I need to get data for the entity I am looking at, which I believe requires the use vectors, ...
0
votes
2answers
461 views

First person camera: problem

I have created a simple camera class, moved it from my C# (XNA) source to C++ for d3d. Commonly it is okay, but something is wrong with rotation. If i increase its pitch/yaw values, according to ...
3
votes
3answers
3k views

what is more expensive 2D sprites or 3D models?

Me and my friends are programmers.We decided to try ourselves in game design. As we don't want to find ourselves in debts, we decided to avoid investors. We want to develop and publish a couple of ...
1
vote
0answers
71 views

Textures occasionally rendering twice on a particular face [closed]

I am learning how to render 3D objects using webgl (no third-party libraries). I am currently facing a very confusing situation however, where my textures are rendering apparently twice over a ...
2
votes
3answers
294 views

Why Index Particles?

This is a general question, but as a specific example, I'll use the XNA Particles3D sample (http://xbox.create.msdn.com/en-US/education/catalog/sample/particle_3d). What is the point of the index ...
1
vote
0answers
84 views

Rotate view matrix based on touch coordinates

I'm working on an Android game where I need to rotate the camera around the origin based on the user dragging their finger. My view matrix has initial position of sitting on the negative z and facing ...
1
vote
1answer
139 views

Whats the point of this LPDIRECT3DDEVICE9 reference?

I'm going through the DirectX 9 MSDN documentation Which lead me to something rather peculiar, do you need a class reference in DirectX 9? Can someone tell me what the point of the class ...
1
vote
1answer
166 views

How can shears/reflections/enlargements be represented by 4x4 matrices? [closed]

I understand that 4x4 matrices can represent transformations on a 3d point (represented as x, y, z, w) Eg, a translation is [1 0 0 0] [0 1 0 0] [0 0 1 0] [x y z 1] where x, y and z are the amount ...
3
votes
1answer
242 views

Do GLSL 4.x subroutine variables cause any performance overhead?

There's not too much deep information about them on the web. How are they implemented and how they work under the hood? I'd like to know that they cause any performance overhead or not, especially in ...
1
vote
1answer
524 views

How to make minecraft like world round?

everyone! I'm interested is there a game or at least example which shows how minecraft-like world turn to sphere? Idea is that there is sphere which consists from cubes like in minecraft but they ...
0
votes
2answers
88 views

Need transform matrix to translate the center of the view to a custom position within the target texture

My problem is as follows: I want to use a single render target texture for drawing 16 viewports where I want to display the 16 different combinations of the marching squares algorithm with my 3D ...
2
votes
2answers
362 views

How can I actually understand Instanced Geometry Rendering - so that I can implement it the way I need it

I'm stuck trying to implement instanced mesh rendering in my project. Particularly because I am failing to understand how certain components actually function - and how the drawing routine is actually ...
2
votes
1answer
308 views

XNA 4.0 Multiple Textures on same Vertexbuffer

I have been messing around with XNA for a long while now, but have never really done much more than just copy/pasting tutorials and editing those. Since a bit I have been trying to really start to ...
7
votes
3answers
558 views

How do I target a tank turret with an offset barrel?

I have a tank model consisting of multiple parts, a body, a turret and the barrel of the gun. The turret is offset from the body origin and can rotate around the Y axis(up). The barrel is connected to ...
1
vote
1answer
265 views

Rubik's cube array rotation

I'm about to make a 3D Rubik's cube based game in Flash AS3 and Away3d. I don't really know how to manage the 2D arrays of the Rubik's cube. For example, how do I rotate the corresponding arrays if ...
0
votes
0answers
71 views

Has “Killer Game Programming in Java” by Andrew Davison been rendered useless? What new tutorial should I follow? [duplicate]

Its pathetic how it was created in 2005 not so long ago when the Java 3D 1.31 API was released. Now after downloading the source code off the books website and implementing it onto my work-space it ...
18
votes
4answers
833 views

How to prevent “underwater sight” in games

In many games where the player can go underwater, it seems like when you look where the top half of the screen is in the air, and the bottom half the screen is in the water, it's almost like the water ...
0
votes
0answers
122 views

Handling 3D perspective for different aspect ratio

I have problem for supporting different aspect ratio in developing Mobile Game. I was developing on 2:3 screen which is iPhone 4 (Retina). When I use width and height for screen size and use fixed ...
1
vote
1answer
153 views

How to grab textures from a texture atlas to be applied to 3d objects

Fairly basic question, but I'm having trouble on finding information on this sort of thing for beginners. I'm just trying to make cubes with different textures on the sides as a starting point. I have ...
5
votes
1answer
498 views

Efficient foliage rendering with OpenGL

Rendering foliage usually involves "hanging" triangles and textures that have completely transparent areas. I'm interested in knowing how are these usually handled by a 3D engine. The first thing ...
3
votes
1answer
111 views

Vertices shaking with large camera position values

Basicly when i set the position of my camera (my character in game) to a high value, the geometries seems to be shaking, the higher the position value, the more they shake. On low position values you ...
0
votes
1answer
101 views

3D drawing precision problem. XNA

I have a simple scrolling camera positioned 2000 units about the 3D 'floor' that moves forward by 1 unit every frame and looks down on the floor at a point that also moves forward by 1 unit every ...
1
vote
2answers
89 views

Moving models with a matrix

Currently I have a playerWorld matrix which holds the position of my player, just a simple sphere. When I press a key to move the model, it does some crazy thing and flies off the screen really fast, ...
1
vote
2answers
144 views

How do I derive the angular movement for a craft

I have the regular (linear) motion implemented like this: class Craft{ ... Vector location, velocity, acceleration, angularVelocity, angularAcceleration; ... //the move class responsible for linear ...
1
vote
1answer
156 views

How can I find the location of OpenGL object after rotation?

I have a rotating object, a cube, which I rotate in OpenGL as follows: gl.glPushMatrix(); gl.glTranslatef(400.0f, 300.0f, 1300.0f); gl.glRotatef(m_x, 4.0f, 0.0f, 0.0f); gl.glRotatef(m_y, 0.0f, 4.0f, ...
-1
votes
1answer
120 views

Ray picking gives inversed results

I'm trying to do a simple ray picking implementation to allow a user to select a cell in a grid rendered in 3D. I'm almost there, but I've ran into an issue which I can't seem to solve. Consider the ...