Refers to games or art assets built in a three-dimensional space, where all positions have X, Y and Z coordinates.
5
votes
1answer
4k views
OpenGL ES 2.0: Understanding Perspective Projection Matrix
Setting the Perspective projection matrix in Open GL (including OpenGL ES 2.0) has the following general format:
glm::mat4 perspective(float fovy, float aspect, float zNear, float zFar);
Notice the ...
5
votes
1answer
2k views
Ray Intersecting Plane Formula in C++/DirectX
I'm developing a picking system that will use rays that intersect volumes and I'm having trouble with ray intersection versus a plane. I was able to figure out spheres fairly easily, but planes are ...
5
votes
4answers
2k views
Killer Game Programming [Java 3D] outdated?
I'm thinking of picking up the book Killer Game Programming by Andrew Davidson, but its pretty old now. I know Java, and I've been messing with jMonkeyEngine for a few days now, but I'm curious to see ...
5
votes
1answer
710 views
GLSL, all in one or many shader programs?
I am doing some 3D demos using OpenGL and I noticed that GLSL is somewhat "limited" (or is it just me?). Anyway I have many different types of materials. Some materials have ambient and diffuse color, ...
5
votes
2answers
813 views
How does an AAA graphical workflow look like?
So this is how I understand it:
An artist models the thing in Zbrush or Mudbox. It now has 10+ million polygon. He exports it in Zbrush as a normal map + low poly model. (this works?)
The model now ...
5
votes
3answers
951 views
Android collision detection of a 3d object based on a 2d projection
I am writing a game for android. We have an orthographic view setup, but the characters (ships, projectiles, etc). The enemies / characters will be able to rotate about the x axis. The problem is that ...
5
votes
3answers
536 views
Is there any algorithm for creating 3D lightning?
Is there any algorithm for generating lightning?
Lets say, you input the starting and ending coordinates (x,y,z) and out comes an array of coordinates to show where the lightning goes.
It doesn't have ...
5
votes
1answer
181 views
Why does my VertexDeclaration apparently not contain Position0?
I'm trying to get my code from calling each individual draw call down to using at least a VertexBuffer, and preferably an indexBuffer, but now that I'm attempting to test my code, I'm getting the ...
5
votes
1answer
2k views
How do I calculate collision response between a sphere and a plane?
I'm trying to create a simple 3D game and need to constrain the player within the limits of the game world. When the player hits the sides of the world I want the player's ship to bounce off slightly.
...
5
votes
1answer
5k views
Importing a .x file to 3D Studio Max?
I've been googling this for a while and haven't been able to find anything (blenders importer does not work). How can I import a .x file to 3D Studio Max? There are heaps of resources in converting ...
5
votes
1answer
371 views
3D isometric depth sorting
How is it possible to depth sort tiles and objects in an isometric environments without any limitations? I've been researching this for a while now and there seems to be no publicly available answers ...
5
votes
2answers
209 views
I need advice on creating animal 3D walk cycles in XNA
I want to purchase a number of 3D models from TurboSquid and animate them in an XNA game.
I wrote a lot of games from 1985-1999 and have recently become involved with XNA. Now I would like to port ...
5
votes
3answers
614 views
Arbitrary projection matrix from 6 arbitrary frustum planes
A projection matrix represent a tranformation from the camera view space to the rendering system clip space. In other words, it defines the transormation between a 6-sided frustum to the clip cube.
...
5
votes
1answer
405 views
How to attach two XNA models together?
I go back on unsolved question I asked about attaching two models together, could you give me some help on this ?
For example, If I want to attach together Model1 (= Main model) & Model2 ?
I ...
5
votes
1answer
781 views
Method of terrain in a 3d RPG
I am working on a RPG using the JMonkey engine. While I was conceptualizing the map, I realized I would have a problem with the terrain.
My problem is this: I want to have a click to move interface, ...
4
votes
2answers
580 views
If I project a sphere in 3D will it be a circle?
Assuming I have infinite vertices to represent the sphere, if I project the sphere from any position/scale in 3D to 2D, will it be a circle?
I know it will not be a circle on the screen, because of ...
4
votes
4answers
705 views
Do 3d assets cost a lot more than 2d?
I'm planning to create a game on my own and will most likely hire an artist in the future. I just want to know if making a game in 2d will a lot cheaper than making it on 3d?
Here's my plan:
If it ...
4
votes
5answers
4k views
Any reliable polygon normal calculation code?
Do you have any reliable 3d polygonal face normal calculation code?
Any language will do, I'll port it to make it work. Even if you find some code in a 3d game engine and post it here I'll be more ...
4
votes
2answers
236 views
Repairing back-facing triangles without user input
My 3D application works with user-imported 3D models.
Frequently, those models have a few vertices facing into the wrong direction. (For example, there is a 3D roof and a few triangles of that roof ...
4
votes
4answers
973 views
How do you organize your game files and classes? [closed]
Although it isn't necessary to exclude things like graphics and audio packages, I'm most interested in the organization of the folders for classes that deal with AI and game state. I'm thinking ...
4
votes
7answers
8k views
Choosing 3D modeling software Maya or 3D max?
I've am a developer whose has spent most of my programming life developing web and business applications. I want to try my hand at something more challenging (but stay in the comfort of Visual Studio) ...
4
votes
6answers
358 views
Why doesn't it seem to be any development in the field of 3D VR gear, especially with regard to gaming?
I remember that way back around 1995, there was this big craze with VR in the media, a whole bunch of (mostly mediocre) games labeled as "virtual-reality-interactive-movie (...)" were published. If I ...
4
votes
3answers
613 views
What's a good way to check that a player has clicked on an object in a 3D game?
I'm programming a 3D game (using C++ and OpenGL), and I have a few 3D objects in the scene, we can say they are boxes for this example. I want to let the player click on those boxes to select them ...
4
votes
2answers
784 views
How can I render text above a mesh in DirectX 9?
I want to render some text over a mesh in my DirectX app. It will have a similar application to health bars for units in games, just as text rather than a bar. I'm looking for the simplest way to do ...
4
votes
2answers
230 views
How do I use D3DXVec3Unproject with D3D11?
I'm having a small issue with D3DXVec3Unproject. I'm currently using Direct3D 11 and not 10, and the signature for this function is:
D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3D10_VIEWPORT ...
4
votes
3answers
604 views
List of 3D libraries based on WebGL
Is there a up-to-date list of WebGL libraries or articals with comparison?
Until now I heard only tree.js and GLGE.
4
votes
4answers
1k views
How to find two perpendicular lines given a single plane
Hey guys, i was wondering how i would go about finding the perpendicular lines relative to a surface normal.
For instance say i have (0,0,1) the expected output would be (1,0,0) and (0,1,0). What ...
4
votes
1answer
326 views
3d level creation for small teams
What sort of tools and techniques are available out there for 3D level creation?
In particular for small teams where you might not have the time and resources to make your level creation tools from ...
4
votes
2answers
168 views
3D models on 2D tilemap perspective when scrolling
I am creating a small top-down game, where the player traverses a 2D tilemap, with an illusion of depth provided by 3D models for things like buildings or trees.
Having gotten to the point where I ...
4
votes
1answer
156 views
Running geometry shader only once
(Unfortunately couldn't find the answer myself)
Does a neat way to cache the geometry shader results in Direct3D10 or OpenGL exist? (preferably Direct3D10).
I'm building my geometry based on texture ...
4
votes
1answer
512 views
How to fix odd artifacts at the edges of textures in DirectX 11?
In my DirectX 11 project, when I have textures they have odd artifacts at the edges. I've seen it before and searched online, but I can't find any DirectX examples that I can get to work.
You can ...
4
votes
2answers
262 views
Can polygon normals really be shaded?
"Unable to shade polygon normals" is a copy protection trap in Garry's Mod. I am wondering if the game developers put random cryptic graphic terms up or it is really a problem in graphics. It the ...
4
votes
3answers
422 views
What resources are available to read and share pyglet code?
I am a Python programmer (I know the ins and outs decently well), and I have dabbled with Pygame. I want to make 3D applications and games, and so naturally I've been looking at OpenGL.
pyglet uses ...
4
votes
1answer
469 views
Efficient physics and collision detection for RTS
I'm thinking about writing my own RTS game and while I'm more or less clear about how the game engine should work, I need some directions as to how to implement physics and collision detection.
Now, ...
4
votes
3answers
822 views
Render angles of a 3D model into 2D images?
Is there a tool out there that you can give a 3D model file, and it will output 2D renders of it from various angles? For example if you were making a 2D RPG but you want to make your character look ...
4
votes
3answers
705 views
Kinematics of a die roll?
I'm working on a simple 3D game. In the game, sometimes the players have to roll die (a D8 to be exact). I wish to represent the rolling die with a 3D model, and I'd like to animate it in 3D space as ...
4
votes
2answers
148 views
What is the best methodology in mounting customizables to a 3d avatar in Unity?
Someone I know suggested just making every customizable on the model then just hide the non active ones. But that doesn't sound very efficient for me.
So my question is what is the best method to use ...
4
votes
3answers
394 views
Accelerometer or on screen controls for mobile UI in 3D games?
I can think of several 2D games which use the Accelerometer successfully, but in my experience as a player, character control in a 3D environment tends to be frustrating. Mostly because a 3D ...
4
votes
1answer
134 views
Cheap ways to do scaling ops in shader?
I've got an extensive world terrain that uses vec3 for the vertex position attribute. That's good, because the terrain has endless gradations due to the use of floating point. But I'm thinking about ...
4
votes
1answer
227 views
Techniques for displaying vehicle damage
I wonder how I can displaying vehicle damage.
I am talking about a good way to show damage on screen. Which kind of models are common in games and what are the benefits of them? What is state of the ...
4
votes
1answer
304 views
Clever way to do the Sonic 2 Bonus Stage effect saving memory
What would be a good way to save memory to achieve an effect like this one?
http://www.youtube.com/watch?v=K89LkvL9JZ0
We're using pre-rendered 3D.
I'm asking this because this naive approach of ...
4
votes
1answer
603 views
How can I achieve a zoom-like camera effect?
I have a top down 3D camera:
view = Matrix.CreateLookAt(new Vector3(0,0,20), Vector3.Zero, Vector3.Up);
Now I want to achieve the effect like when I zoom in the scene and only show a section at the ...
4
votes
3answers
2k views
Getting started at 3D modelling and animation
I'm looking for book or a guide that will direct me to 3D modelling/animation for gaming. Most tutorials will go for lengths about things I don't really need for games and I want to get to the chops ...
4
votes
4answers
845 views
Physics timestep questions
I've got a projectile working perfectly using the code below:
//initialised in loading screen
60 is the FPS - projectilEposition and velocity are Vector3 types
gravity = new Vector3(0, ...
4
votes
1answer
423 views
Mixing 3D and 2D content on the iPhone?
I am at the design phase of a board game on the iPhone and am considering a couple of options for rendering the view:
Quartz to render top down views of the board with core animation to do the ...
4
votes
1answer
288 views
Calculating a child object's Position, Rotation and Scale values?
I am making my own game editor, but have encountered the following problem:
I have two objects, A and B.
A's initial values:
Position: (3,3,3), Rotation: (45,10,0), Scale(1,2,2.5)
B's initial ...
4
votes
1answer
194 views
What is the purpose of mesh optimization functions?
I remember there is a specific function in Direct3D which optimizes a mesh or a 3D object in some way. What is the purpose of this function? How does it reorganize vertices to make it better?
4
votes
1answer
345 views
3D models overlapping each other
I have a problem at the moment when I draw some models to teach me more about 3D game programming. The models at the moment overlaps each other from some angles witch makes sense since the game at the ...
4
votes
2answers
885 views
Implementing a 3d tile engine
I have a pretty decent experience with tile based 2d games and I would like to try to create a mixed 3d-2d game. To 3d elements will be very simple (ground, walls and water), all other elements will ...
4
votes
3answers
374 views
Finding closest coordinate of a pre-known set
Let's say I have a large number of conceptual objects of some kind, each of which occupies a pre-known set of points in a Cartesian 3-space.
1) What is the best combination of data structure (for ...