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

1
vote
3answers
461 views

Missing z-axis rotation for transforming between two vectors

I'm trying to rotate a cube so that it's facing up, but am getting hung up on the final implementation details. It now reliably will rotate the x,y axis to the correct side, but the z-axis is never ...
16
votes
3answers
990 views

Can the solar system be accurately represented in 3d space using doubles (or longs)?

I would like know to how to best manage coordinates in a 3D game whose aim is to realistically model the entire solar system, yet be able to handle the smallest movements in a "ship" (ie: perhaps we ...
2
votes
2answers
398 views

AI: Updating AI use a lot of CPU

Let's say I got 100 Orcs in my 3D world. They all have the goal to kill each other. That means For 1 Orc I have to check collision with the 99 others. That will give me the number 99^2 which is about ...
0
votes
2answers
231 views

Rotate 3D camera relative to what's on screen (in threejs)

I'm trying to have a camera in Threejs react to respective left/right/up/down/forward/backward keys, always based on the direction the camera is currently facing. It works fine left/right ...
0
votes
1answer
758 views

OpenGL : Suggestion on handling collision detection and vertex data?

I was thinking how to do collision detection in my OpenGL application and came to conclusion that I should keep two copies of my geometry data. 1)First copy : Only for OpenGL rendering purposes.This ...
-5
votes
2answers
152 views

Advice on OpenGL 2.1 [closed]

I'm looking to finally get into OpenGL to bring some game ideas of mine to life! As I want to aim for lower class systems I'm probably looking at OpenGL 2.0/2.1 using JOGL (as I know Java the best). ...
0
votes
2answers
405 views

Collision, then what?

I know how to check collision for example 2 spheres. But my question is how do I use the collsion response in a good way? How do I make my character unable to walk in to the Sphere? I've got to the ...
1
vote
0answers
743 views

How to turn a 3d camera (in HTML5 2D Canvas)

A few years back I started experimenting with 3d in canvas. Everything went pretty well untill I had to to turn the camera, I couldn't get it done. A few days back I just happened to stumble upon ...
0
votes
2answers
5k views

Scaling Model in XNA, keep position

I am trying to create a little fun 3D game in XNA, but I am having some problems with scaling my models. I use models from random sites, so my battleship is for an example 10 times larger than my ...
0
votes
1answer
1k views

View frustum, “focal length” and near plane distance

I've been reading through "Mathematics for 3D game programming and Computer Graphics" lately and just when I'd got used to author's lack of qualification of important notions, he striked again. On ...
2
votes
4answers
489 views

3D: How how handle like 500 NPC

I'm currently working on a 3D game. My game have like 10 NPC's and a really small world. But if I want to have a larger world with lots of NPC's? I think it's not a good idea to update and check ...
7
votes
3answers
342 views

Sort Polygons in order - not working?

I'm fairly new to programming in a 3d world. I'm trying to create a canvas where all the objects are drawn in order of furthest-to-closest and from bottom to top - so they don't overlap each other, ...
1
vote
2answers
1k views

Render a polyline with rounded joints

I have a list of points (3D) and want to draw a line connecting all points with a specified width. The line should be rendered in OpenGL (using OSG) as triangles. The real challenge of this task is to ...
3
votes
3answers
2k views

How to calculate the inverse of a 4*4 opengl transform matrix

I am transforming my camera like any other object. I would like to set the view model matrix to the inverse of this so that I can draw the rest of the objects relative to the camera. How do i ...
1
vote
2answers
708 views

Rotate 3D cube so nearest side is facing user

How do I figure out the new angle and rotation vectors for the most visible side of the cube? Why: The user can rotate cube, but when finished I'd like the cube to snap to a side facing the user. ...
1
vote
2answers
192 views

How to export deform modifier animation into a game engine?

Hi we animated a simple plane with deform modifier to give a folding cloth like effect. How do we export it from maya so that we are able to import into our game engine. Can we export them as a ...
3
votes
1answer
355 views

Procedural mesh generation from raytracer

I'm interested in applying the following technique: Define game objects using a object definition DSL similar to what you would use for a raytracer (e.g. POVRay) Use a specialised raytracer to ...
0
votes
2answers
4k views

Why is 3D game development supposed to be so hard? [closed]

This may be kind of a dumb question. I have little experience in programming and no experience in game programming. I've only done simple "if, then" programming and simple circuit board chip ...
0
votes
2answers
1k views

3D: First Person Movement

I've searched and searched for a solution today but haven't found one. I have a Camera with Vector3 and also the camera has an angle. If I use this: hero.position.x += speedX; hero.position.z += ...
3
votes
2answers
767 views

What has the most efficient intersection test against an AABB tree - OBB, Cylinder or Capsule?

I'm currently trying to find collisions in 3D between a tighter volume than an AABB and a tree of AABB volumes. I just need to know whether they are intersecting, no closest distance or collision ...
-5
votes
3answers
867 views

Is it possible to combine Blender with PHP? [closed]

I want to build a web game with Blender and I know PHP. Is it possible to mesh Blender with PHP?
4
votes
1answer
368 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 ...
2
votes
1answer
421 views

multiply matrix by vector: what to do if need to change y-up to z-up?

I multiply a matrix with a position vector to get a new position, however, now I need to change my matrix from y-up coordinate space to z-up. Changing only the matrix won't work: how to apply the ...
0
votes
2answers
678 views

How to compute acceleration by using Kinect device joint positions

I have an application which uses the Microsoft Kinect camera device. At each point I can obtain the position of my hand in the 3 Dimensional space ( X - Y - Z ) and I want to compute acceleration of ...
4
votes
1answer
2k views

Moving a rotated model in XNA

This seems like a simple problem with an equally simple solution that is invisible to me. I have a model that spawns at the origin and looks at my player model wherever it goes. I would like it to ...
0
votes
1answer
1k views

How to create modular/replaceable game/engine code interfaces with c++

I've spent some time when I can spare it experimenting with c++ and at the same time learning a bit about game programming. I like most thought I'd start with creating a simple game engine but with ...
4
votes
3answers
697 views

Model in Maya looks strange, what went wrong?

I am modeling a tank and I don't know what key I've pressed, but now the object in Maya is looking very weird. Does anybody know how to solve this problem?
1
vote
1answer
272 views

3D/perspective Top down shooter bullet issues

I'm developing a top-down shooter with multiple levels (ground for ground units, middle level for buildings, top level for air unity). The problem is the collision. Though I can make the collider ...
2
votes
2answers
2k views

calculate new vertex position given a transform matrix?

How can I get the new position of my vertex given a 4x4 transform matrix or simply 9 floats (positionX, positionY, positionZ, rotationH, rotationP, rotationR, scaleX, scaleY, scaleZ)? Usually I can ...
5
votes
3answers
2k views

Height Map vs 3D Model Mesh

I'm currently working on a 3D PC game (written in C++ and DirectX 9.0) and I'm trying to find the best way to store level data in the memory. The game's action takes place under the ground, so ...
4
votes
1answer
336 views

Translation from one coordinate system to another having Z-offset issues

I'm using ARToolkit to do an augmented reality application, but my problem is really with the 3D coordinates. In this application, I use my webcam to generate the scene. I have two markers (printed ...
0
votes
4answers
875 views

XNA transparent objects?

I've working on a voxel like game like Minecraft, but I'm not sure how I should handle alpha. I've got the world split into chunks and I render each chunk, I have things like leaves which have alpha ...
1
vote
0answers
136 views

Ardor3D creating items such as guns…? [closed]

I am using Ardor3D as a game engine, but I can't seem to find anything anywhere about creating items that the player holds. My game is in first person. I want to make a gun that is always visible on ...
0
votes
1answer
157 views

Directional and orientation problem

I have drawn 5 tentacles which are shown in red. I have drew those tentacles on a 2D Circle, and positioned them on 5 vertices of the that circle. BTW, The circle is never be drawn, I have used it to ...
0
votes
2answers
263 views

Is screenplay for a low budget to no budget indie game necessary?

i'd love any advice about knowing if screenplay for indie games are necessary or not. i've seen loads of successful and unsuccessful games that dont require them, the only issue is, im a 3d artist ...
-1
votes
1answer
393 views

Rotating points on a circle

I have drawn a 2D circle in X,Y,Z. I wanted to draw something on specific vertices of that circle and I managed to do it. When I wanted to move the circle, I wanted the vertices to get the updated ...
10
votes
2answers
2k views

Unity Occlusion Portals: What and How?

(Here I eat my words on Meta about posting Unity questions on Unity Answers... since that site is less responsive than this one.) Unity provides cell-based Occlusion Culling (via Umbra, I believe). ...
5
votes
2answers
288 views

Mobile 3D engine renders alpha as full-object transparency

I am running a iOS project using the isgl3d framework for showing pod files. I have a stylish car with 0.5 alpha windows, that I wish to render on a camera background, seeking some augmented reality ...
10
votes
3answers
805 views

Prevent players from wallhacking in an online FPS?

Why do we still moan on wallhackers in multiplayer first-person shooters? Isn't it possible to perform occlusion culling for all players server-side? For example, send player xyz information to ...
5
votes
1answer
2k views

How do I calculate the normal of a plane defined using homogeneous coordinates?

I can define a plane in 3D space using three 3D points (p0, p1, p2) that all lie in the plane and that form a non-degenerate triangle. Calculating the normal of the plane is as simple as calculating ...
-1
votes
2answers
617 views

How do I pick correct tile in isometric 3D map?

I want to know how to pick the correct tile on a isometric map in 3D space. Here is a 2D example. They use a colour key map to correctly pick the coordinate. How can I achieve this in 3D space? Is ...
16
votes
3answers
2k views

How to programatically retarget animations from one skeleton to another?

I'm trying to write code to transfer animations that were designed for one skeleton to look correct on another skeleton. The source animations consist only of rotations except for translations on the ...
1
vote
1answer
202 views

Converting a DrawModel() using BasicEffect to one using Effect

Take this DrawModel() provided by MSDN: private void DrawModel(Model m) { Matrix[] transforms = new Matrix[m.Bones.Count]; float aspectRatio = graphics.GraphicsDevice.Viewport.Width / ...
3
votes
1answer
94 views

Triangle Picking Picking Back faces

I'm having a bit of trouble with 3D picking, at first I thought my ray was inaccurate but it turns out that the picking is happening on faces facing the camera and faces facing away from the camera ...
15
votes
1answer
686 views

Keystone Correction using 3D-Points of Kinect

With XNA, I am displaying a simple rectangle which is projected onto the floor. The projector can be placed at an arbitrary position. Obviously, the projected rectangle gets distorted according to the ...
4
votes
2answers
775 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 ...
2
votes
1answer
596 views

Why is my primitive xna square not drawn/shown?

I have made this class to draw a rectangle, but I cant get it to be drawn, I have no issues displaying a 3d model created in 3dmax, but shown these primitives seems much harder I use this to create ...
12
votes
2answers
3k views

Why did the old 3D games have “jittery” graphics?

I've been playing MediEvil lately and it got me wondering, what causes some of the old 3D games have "flowing" graphics when moving? It's present in games like Final Fantasy VII, MediEvil, i remember ...
0
votes
2answers
216 views

Which optional features would you recommend for a raytracer? [closed]

I'm developing a basic triangle mesh raytracer on a short deadline. This means I can't implement every feature I come across, so I'm looking for some feedback about which features you think are most ...
2
votes
1answer
744 views

How can I import a .3ds file into JMonkeyEngine 3?

I am trying to import an animated character body (with skeleton) from 3D Studio Max to JMonkeyEngine 3, but while we succeeded at importing some animations, we cannot seem to export the skeleton to ...