Refers to games or art assets built in a three-dimensional space, where all positions have X, Y and Z coordinates.
0
votes
1answer
746 views
as3 3D camera lookat
I'm making a 3D camera scene in Flash, draw using drawTriangles() and rotated and translated using a Matrix3D. I've got the camera to look after a specific point, but only on the Y-axis, using the x ...
2
votes
1answer
433 views
When to use Euler vs Axis angles vs Quaternions?
I understand the theory behind each but I was wondering if people could share their experiences in when one would use one over the other
For instance, if you were implementing a chase camera, a ...
0
votes
1answer
622 views
Trouble with Collada bones
I have a Collada file with a rigged mesh. I've read the node tags in the library_visual_scenes tag and extracted the matrix for each node and stored everything in a hierarchical bone structure. My ...
5
votes
2answers
211 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 ...
8
votes
3answers
602 views
What exactly can shaders be used for?
I'm not really a 3D person, and I've only used shaders a little in some Three.js examples, and so far I've got an impression that they are only being used for the graphical part of the equation.
...
0
votes
1answer
122 views
What is a correct step by step logic of exporting scene with baked occlusion for loading it at runtime?
I wonder what is a correct step by step logic of exporting scene with baked occlusion (Culling data) for loading that scene at runtime (on fly from the internet for example))?
So currently my plan ...
-1
votes
1answer
150 views
Camera not working
I made a camera in DX9. To move forward I press the Up arrow. To rotate on the Y axis I use the mouse. When I perform these movements on their own the camera moves at the speed I want.
However, if I ...
2
votes
2answers
144 views
Get all triangles that are < N dist from you?
Does anyone know of a way I could add a radius to this code for p? Like basically saying "this is true if the triangle is < N dist from the point"
public boolean isPointInTriangle( Vector3f p, ...
2
votes
1answer
214 views
Transform 3D vectors between coordinate systems
I've got 6 points in 3D space: A,B,C,D,E,F, that represent 4 vectors. AB is perpendicular to AC and DE is perpendicular to DF.
I need to find a transformation matrix M, that transforms AB to DE and ...
0
votes
0answers
125 views
way to do if(x > x2) x = x2 with rotation?
Alright, so I got this walking code, and some collision detection, now the collision detection returns a Vector3f of the closest point on the triangle that the projected position is at (pos + move), ...
0
votes
1answer
335 views
Attaching two objects and changing their world matrices accordingly
I'm having a hard time wrapping my head around the transformations required to bind two objects together in either a two-way or one-way relationship. I will need to implement both types.
For the ...
0
votes
1answer
144 views
Better way to go up/down slope based on yaw?
Alright, so I got a bit of movement code and I'm thinking I'm going to need to manually input when to go up/down a slope. All I got to work with is the slope's normal, and vector, and My current and ...
0
votes
0answers
181 views
iOS : Creating a 3D Compass
Originally posted here: iOS : Creating a 3D Compass
Hi everybody,
Quite new in this forum.Posted the same question in stackoverflow and there some people suggested to shift it here, so that I can get ...
0
votes
2answers
233 views
What techniques can I use to render very large numbers of objects more efficiently in OpenGL?
You can think of my application as drawing a very large ball-and-stick diagram (or graph). At times, this graph can get very large, where the number of elements even outnumbers the pixels on the ...
3
votes
5answers
1k views
How are realistic 3D faces created and animated in video games?
I'm interested in being able to create realistic faces and facial expressions for the 3D characters of a game I'm working on. Think something similar to the dialog scenes in games like Mass Effect.
...
3
votes
3answers
837 views
Quaternion dfference + time --> angular velocity (gyroscope in physics library)
I am using Bullet Physic library to program some function, where I have difference between orientation from gyroscope given in quaternion and orientation of my object, and time between each frame in ...
1
vote
1answer
399 views
Transform 3d viewport vector to 2d vector
I am playing around with 3d transformations and came along an issue.
I have a 3d vector already within the viewport and need to transform it to a 2d vector. (let's say my screen is 10x10)
Does that ...
0
votes
2answers
201 views
Matrix loading problems with jbullet and lwjgl
The following code does not load the matrix correctly from jbullet.
//box is a RigidBody
Transform trans = new Transform();
trans = box.getMotionState().getWorldTransform(trans);
float[] matrix = new ...
-3
votes
1answer
129 views
What graphic programs are used in Wind-up knight [closed]
What graphics programs does Android support? i.e. what graphics programs did Robot Invader use to create Wind-up Knight?
Any hints or clues are appreciated
Cheers
David
-4
votes
1answer
705 views
2D top down game - XNA or Unity? [closed]
Hey I want to develop a top down 2D game, probably with Sprites (although 3D models with a fixed camera is an option too).
I know it's not a very specific question - but generally speaking which is ...
3
votes
1answer
296 views
3d Picking under reticle
i'm currently trying to work out some 3d picking code that I started years ago, but then lost interested the assignment was completed (this part wasn't actually part of the assignment).
I am not ...
-1
votes
1answer
263 views
Create plane matrix from three 3d points
I have three 3d points (x, y, z). I am trying to create a 3d plane and get a 3d Matrix from those points.
The XYZ values are not accurate in this case but should give an idea on what I am looking.
...
3
votes
2answers
113 views
How can I simulate multiple depth channels?
Here's what I'd like to achieve:
Rendering a first pass of objects in my scene, using standard depth comparison
Rendering another pass of objects in the same scene, but with the following rules:
A ...
2
votes
1answer
373 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
479 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
435 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
166 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
389 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
222 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
2k 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
109 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);
...
2
votes
2answers
911 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
583 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
375 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 ...
14
votes
3answers
723 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
310 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 ...
-3
votes
1answer
207 views
Why do FPS games have a 3rd and 1st person mode when doing animations? [closed]
I noticed how in FPS mode you have cool looking skins on the gloves and weapons but in 3rd they are screwed. Why does a game need this sort of structure ? And also where do you learn how to rig ...
0
votes
2answers
128 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
481 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
138 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
294 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
475 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
3k 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
488 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
411 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
240 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
647 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
728 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
443 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
176 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 ...