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
5answers
354 views

What is this type of camera called?

I am trying to find a name like "perspective view" of how a camera like this is called: It is 2d and 3d at the same time. I'm having a hard time trying to find the name.
0
votes
1answer
221 views

Aim at moving target (or predicting target's position at time it takes for projectile to hit it) [duplicate]

I have a game where I know the location and velocity of my target. I know my own location and the speed of my projectile. I want to determine either the location of the intersection between my ...
0
votes
0answers
213 views

Adding 2d hud/gui to a 3d game engine which has no 2d features

I have been following the 3d game engine tutorial series made by theBennyBox for a few months now, and have finally decided to create a game with it. My problem is that it is a 3d only engine which ...
1
vote
1answer
118 views

Mapping a 3D texture to a standard hollow-hull 3D model

I have 3D models which are typical hollow hulls. If such a model also had a 3D volumetric/voxel texture map then given a point P inside such a model, I'd like to be able to find its uvw coordinates ...
0
votes
0answers
66 views

Cube projection composed of smaller cubes not lining up

I am trying to make a cube projection composed of other cubes, similar to a Rubik's cube but completely static. I can get one cube to work, but when I join multiple, they don't line up. I am using ...
3
votes
2answers
171 views

OpenGL - Index buffers problem

I have a custom file format that has all the needed information for a 3D mesh (exported from 3ds Max). I've extracted the data for vertices, vertex indices and normals. I pass to OpenGL the vertex ...
4
votes
1answer
461 views

How to efficiently render a large terrain mesh?

Recently I've been stuck on a problem thinking about the best way to generate a terrain into my game. In another projects I normally used heightmaps, so all the core-work was based on the engine used, ...
1
vote
0answers
104 views

How to make 2D sprites from 3D models [closed]

Hi I'm making a top shooter game and I'd like to what programs are the easiest/fastest to make 3D models and sprite sheets ? Here is an example of I what I want to do ...
0
votes
1answer
75 views

3D Background for a Verticle Shooter: Making it loop?

I know how to scroll a background using spritebatches + 2D background images, but how would I do it with a 3D model?
0
votes
2answers
282 views

Converting xnb files to fbx files

All the while I can only find how to convert from FBX to XNB but not the other way around. Does anyone know how can I do that?
4
votes
1answer
942 views

Is a game like Subway Surfers suited for 2D or 3D?

I imaginated a mobile game and now I'm getting doubts as to whether its possible for my idea to be developed in 2D. Here's a crude illustration of the game scene: It's pretty much like Subway ...
1
vote
2answers
143 views

Find closest point from an origin, in a mesh

I want to do something similar to a raycast. With a raycast, you can set an origin and a destiny, and check where the ray collides with something but only with a line. What I want to do, is given an ...
0
votes
2answers
124 views

What dimensions should you use for a perspective projection frustum?

What dimensions should you use for a perspective projection frustum? Initially I created a perspective matrix based on the width and height of the screen, with a calculated zNear value based on a ...
1
vote
1answer
149 views

Can I render some vertices as an object instead?

I am generating vertices at runtime that represent terrain. I've always drawn the vertices as triangles with GraphicsDevice.DrawUserPrimitives<VertexPositionColor>, but I'm wondering: Can ...
2
votes
1answer
104 views

How to get a Coordinates of a 3D Object in Android

How is it possible to click on an area of a 3D Model (.obj-File) for example a cube, where you can get different Events of the six sides. For Example the orange area of the picture gives me a value of ...
0
votes
0answers
109 views

How to rotate a line in 3d space?

I am trying to figure out direction vectors of the arrowheads of an arrow. Basically I'm given a normalized direction vector (u,v,w) and I need the normalized direction vectors of the its two arrow ...
0
votes
3answers
148 views

OpenGL: glRotatef cause performance drop while rotating -x and -y

I have made a rotating cube and I got some performance drops while using two glRotatef calls. So basically this code is giving me 80FPS: //code 1 GLrotate_x += 0.4f; GLrotate_y += 0.4f; ...
0
votes
0answers
59 views

3D model editor manipulators

I'm trying to make my own 3D model editor to better learn 3D programming. I have my translate manipulators and I'm trying to calculate the Vector2 that the mouse would have to move in order to move an ...
1
vote
2answers
85 views

Can you adjust the proportions of a 3D model via scripting?

We are developing a game in Unity where the character is different ages in different levels. Would it be possible to use a single 3D model asset, and alter its proportions via scripting to achieve ...
8
votes
4answers
798 views

Infinite 3D Cave in Unity

A friend and I are hoping to make a game in Unity in which you fly through an infinite 3D cave that can twist and wind in any direction (though obviously not to the point that the turns are impossible ...
1
vote
2answers
117 views

How to use blender files in your own engine?

It is not trivial to use your own shader on blender, so I've created a good-looking webgl shader. Now, what do I need to use the things I made in blender on it? An obvious first idea would be to parse ...
2
votes
2answers
629 views

How does the Unity3D entity system work?

I saw the Java Artemis Entity Component System and thought of the entity system in Unity3D. In Artemis for example you can only add one component type to each entity and the logic is not in the ...
0
votes
1answer
48 views

How to find the right direction to plug a sword into a rig's hand after projecting it?

I've downloaded BVH animations and projected it following a book. I can now see a 3D moving rig and it looks alright. The problem is, now I want to plug a sword on the hand of the rig, but I don't ...
3
votes
1answer
143 views

Understanding and editing HDR light environments in Photoshop

I'm working with an in-development system that uses .hdr environments (equirectangular projection) to provide image-based lighting (IBL) to a 3D rendering. I'm trying to understand what range of ...
0
votes
1answer
42 views

How to use mocaps in your game if they don't loop smoothly?

Following suggestions on IRC, I've downloaded, parsed and incorporated the Free Release of 2500 mocaps to my game. I've noticed, though, that none of those loop perfectly. It does not connect and thus ...
0
votes
1answer
43 views

What is the actual formula to find the vertices of an animation frame in using a BVH file?

I've read this tutorial and tried many formulas to build the skeleton. I am able to build it without the rotations, but those break everything. This, for example, is a simplified code for one of my ...
1
vote
1answer
103 views

DirectX Bullet Tracer Effect

I'm wondering if anyone knows some common and efficient ways to do a fast tracer for an instant bullet. I've seen people speak on forums of using primitive lines with DirectX, but I doubt this ...
2
votes
1answer
431 views

3D Camera Rotation

Please, forgive me, but I need help and I've been stuck on this for a few weeks now, I'm making no progress and everywhere I go and I see a different answer, everything I try doesn't work. I've had ...
3
votes
1answer
198 views

What is wrong with my smooth shading code?

I am having trouble getting smooth lighting to work in Java Monkey Engine. My terrain is voxel-based, with an iso-surface generated via Marching Cubes over the data field. Up until now, I have been ...
2
votes
2answers
209 views

How can I determine the pixels covered by a transformed triangle (without drawing it)?

I have three points that form a triangle in a 3D scene. I want to apply an arbitrary rotation/translation transformation to this polygon and later check in which pixels of an image they would be ...
18
votes
5answers
2k views

Why do we use 4x4 matrices to transform things in 3D?

To translate a vector by 10 unit in the X direction, why do we have to use a matrix? We can just add 10 to the mat[0][0], and we got the same result too.
2
votes
1answer
316 views

Conceptual - What is the optimal way to combine steering behaviors with rigid body physics?

I am working on a simple 3D space simulator that makes use of the Bullet physics engine. The spaceships are rigid bodies that have a mass and hitbox so that they can be considered for collisions. At ...
1
vote
1answer
87 views

Which nodes of the Collada DAE are most relevant for game object/character use?

I'm really new to game dev / D3D. And I was looking to choose an intermediary format to work with and convert to my internally used format. Collada DAE seems to be good as it can export animation too ...
0
votes
2answers
122 views

What does a Mesh consist of?

I have seen various implementations of mesh loaders in a few open source game engines. But all of them behave meshes differently. Is there a general definition for a mesh that explains what meshes ...
0
votes
1answer
125 views

How to change colors of texture in lwjgl? [duplicate]

I have the following texture: The black pixels are characters, the background is transparent. How do I change the black pixels of the characters to another color? I use this texture as a bitmap for ...
1
vote
3answers
195 views

How do I correctly multiply an XMMATRIX by a scalar?

Using DirectXMath and its XMMATRIX structure in C++ and Direct X 11, how does one multiply that matrix structure by a single float scalar? I want to implement the operation B = A * f; where A and B ...
3
votes
2answers
178 views

Optimal way to store coordinates of a random point in 3D space in a texture?

A quick question: there is a well-known approach to store 3d point in space in a texture as a distance between camera and an object (deferred rendering). But it implies that the object lies on a ray, ...
0
votes
0answers
142 views

Calculate parameters for orthographic matrix for directional shadow mapping

I am struggling with how I can fit my scene in an orthographic projection, based on what is visible by the camera. All tutorials so far explain almost everything in perfect detail, and then for the ...
0
votes
1answer
50 views

Getting the position of a directional light w.r.t. a moving object.

I have a forward vector of my object, which is a bike, and its position, and I have a directional light direction. I would like to know where the light is with regards to the bike ...
2
votes
3answers
521 views

SharpDX/D3D: How to implement and draw fonts/text

I am playing with SharpDX (Direct3D for .NET) without using "Toolkit", already finished with basic rendering 3D models. But now i am wondering how to program/create fonts for game (2D), or how to ...
0
votes
0answers
99 views

Shadow Mapping: How to calculate Axis Aligned Bounding Box?

I am trying to implement Shadow Mapping, which is actually working with an AABB that always covers my entire scene, but (obviously) it gives very blocky graphics. So I figured I need to calculate a ...
1
vote
1answer
120 views

Most common format & good practice for 3D models for a placeholder in a PC game [closed]

I'm soon starting programming my first 3D game in OpenGL, C++, for PC. It's going to be a top-down space-based game. Early on I want to create basic placeholder 3D models for my objects, and then in ...
1
vote
1answer
142 views

Where is the error in my perspective projection implementation?

My question is not really a game development question, but since it's based on 3D programming, I thought it would fit best here. I've got a line made out of Point3D objects where the value of x, y, ...
2
votes
1answer
308 views

3D-Physics of a Rubber Ball (Squash)

I'm trying to simulate the environment on a Squash Court on Android with my own physics and using OpenGL for visualization. Basically, its about a rubber ball bouncing around in 3d, not just on the ...
0
votes
0answers
40 views

How do I apply a specular/reflective map in Rhinoceros?

I'm designing a 3D model using Rhinoceros 5, and after having created the UVMap with UVLayout, I've imported the .obj file back into Rhinoceros to apply materials to it. I've successfully added ...
1
vote
1answer
298 views

LWJGL SlickUtil Texture Binding

I am making a 3D game using LWJGL and I have a texture class with static variables so that I only need to load textures once, even if I need to use them more than once. I am using Slick Util for this. ...
6
votes
2answers
584 views

Triangle-triangle continuous collision detection

I am making a 3D game engine and I use continuous collision detection. I am using Sphere-Trees to cull primitive collision checks to a minimum. However, I'd like to perform continuous ...
1
vote
1answer
150 views

Ice sliding physics

I am trying to implement ice sliding physics on a plane for my game. There are a lot of N64 games that implemented them perfectly well, like Banjo-Kazooie, Super Mario 64, Zelda: OoT and MM, etc. ...
6
votes
1answer
249 views

overlapping 3d particles not blending nicely when at the same z

I'm working on a 3d particle emitter. It's going pretty good but I'm still having a problem with triangle sorting. As you can see in the photos, there are some particles that are not blending ...
1
vote
1answer
160 views

Creating a vehicle using a physics engine [closed]

What is the theory behind creating a generic 3D vehicle in a physics engine? What I would like to know is what parts should I stick together to make the vehicle, how they parts should stick together, ...