Tagged Questions

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

3
votes
1answer
608 views

3D zooming technique to maintain the relative position of an object on screen

Is it possible to zoom to a certain point on screen by modifying the field of view and rotating the view of the camera as to keep that point/object in the same place on screen while zooming ? Changing ...
2
votes
2answers
906 views

How to load a terrain of connected caves into bullet-phisics engine?

I have a terrain that can not be represented as height map. Say a mountain with caves. I have it in one large .obj file. How do I load such a terrain into bullet-phisics engine? Or I shall generate ...
0
votes
2answers
733 views

Rotate point by a direction vector

Given a vector, A, which represents a point, and a unit vector, B, which represents the looking direction, how would I rotate A so that B is the axis that's looked down on? Let's say the looking-axis ...
1
vote
3answers
282 views

Material usage, one per model or per object?

Is it better (memory, time (of developer), space) to use single model that is unwrapped and uses a single material or to break a model down into appropriate bits, each with their own smaller ...
2
votes
1answer
826 views

Is it possible to billboard a sprite using a transformation matrix?

None of the current topics on billboarding seemed to answer this question. But, given a sprite (or quad) that has it's own 4x4 transformation matrix a camera with a view matrix (a standard 4x4 ...
2
votes
1answer
352 views

Create edges in Blender

I've worked with 3DS Max in Uni and am trying to learn Blender. My problem is I know a lot of simple techniques from 3DS max that I'm having trouble translating into Blender. So my question is: ...
1
vote
2answers
9k views

SDL for 3D game programming?

I have been studying SDL for a few weeks and I have succeeded in making a 2D Ping-Pong game, but I want to get started in 3D development, and I'd like to know if SDL is capable (and suitable) for 3D ...
0
votes
1answer
136 views

Map a fbx model between 2 VertexPositionColor Positions

I have created a VertexPositionColor position and drew it in the XNA like this VertexPositionColor[] backbone; backbone = new VertexPositionColor[2]; backbone[0].Position = new Vector3(0, 22, 0); ...
6
votes
3answers
2k views

XNA: Rotating Bones

XNA 4.0 I am trying to learn how to rotate bones on a very simple tank model I made in Cinema 4D. It is rigged by 3 bones, Root -> Main -> Turret -> Barrel I have binded all of the objects to the ...
2
votes
2answers
1k views

How to rotate an object so it stands correctly (back always facing the camera)

I have the following scene: And I have two 3D vectors, the camera position, and the focus position. The focus vector is always behind the monster. I know how to rotate the camera around the focus ...
1
vote
3answers
472 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
1k 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
400 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
257 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
796 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
408 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
754 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
496 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
352 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
730 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
359 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
784 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
886 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
369 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
442 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
696 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
732 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
285 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
341 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
881 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
138 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
158 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
264 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
403 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
811 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 ...