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

14
votes
1answer
1k views

How to gain accurate results with Painter's algorithm?

A while ago I asked how to determine when a face is overlapping another. The advice was to use a Z-buffer. However, I cannot use a Z-buffer in my current project and hence I would like to use the ...
7
votes
2answers
956 views

In Unity, why is adding a Vector2 and a Vector3 ambiguous but assigning isn't?

Given the following two vectors: Vector3 v3 = Vector3.one; Vector2 v2 = Vector2.one; This line is ambiguous: v3 += v2; // Unity reports dimension ambiguity whilst this assignment isn't: v3 = ...
0
votes
1answer
88 views

Calculate 3D “up” vector to align ship to an arbitrary axis

I'm writing a script to control the movement of a 3D ship in a game. Given the ship's position and the coordinates of the destination, I've successfully calculated the Yaw and Pitch necessary to aim ...
5
votes
3answers
20k views

How do I create a 3D model based on 2D drawings?

I'm a programmer. I have a great draftsman, but I don't know how to take his drawings to 3D. My gut feeling is to have him draw different view angles, then work based on those, adding each dimension ...
0
votes
1answer
46 views

XNA Rendering Blocks

I am currently building a little game in XNA and found something strange. I want to draw many blocks next to another (1x1x1 with a texture on the side) So what happens when I do it this lines ...
1
vote
3answers
4k views

Will I have an easier time learning OpenGL in Pygame or Pyglet? (NeHe tutorials downloaded) [closed]

I'm looking between PyGame and Pyglet, Pyglet seems to be somewhat newer and more Pythony, but it's last release according to Wikipedia is January '10. PyGame seems to have more documentation, more ...
1
vote
1answer
200 views

Simulation of ball movement in a 3d landscape. The easiest way?

I have a landscape(generated via Perlin noise) and a ball. I want the ball to move along the geodesic(implementation of basic physics: gravitation, friction). I thought to do raycast around the ball ...
0
votes
2answers
210 views

How to stop 3D model from reflecting light like plastic

I was browsing SketchFab and found a 3D model I decided to try in Unity. This is how the model looks in SketchFab's viewer: When I put it in Unity, I used a Directional Light object: As you can ...
6
votes
3answers
2k views

How to texture a surface generated by marching cubes algorithm?

I'm working on a voxel game, and I have some problems with texturing. I have read the related questions on this stack exchange, but they seem adressing a generic problem (using triplanar texturing), ...
0
votes
2answers
219 views

A*Pathfinding lose target after spawning from script?

I have been using A*Path finding to enable object tracking. It works fine if I have both objects on the scene at the same time. However, if I were to use a script to spawn the seeking object ...
8
votes
1answer
1k 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, ...
-2
votes
1answer
84 views

Unity skips menu screen and goes to next scene

I am using Unity 4.6.1 and I am working on a game project. I created a JS script with Application.LoadLevel to go to the next scene. Here is my code for OnGUI: function OnGUI () { { ...
0
votes
1answer
36 views

Given a ray-intersect position on morphed mesh, how to compute that position at each morph target?

I'm working on an annotation system that allows a user to click on a mesh to attach a pin with a label hanging off it. It must be possible to pin an annotation on an object that's being morphed with ...
4
votes
2answers
525 views

How to customize a character with new objects (clothes, body parts) in a 3D game?

how do we customize a character in a game by adding, for example, a different clothing? The character has an armature, made in Blender, if I add a new object with the game engine, I would have to copy ...
2
votes
1answer
192 views

Simple Doom style engine question

I've just started making a 'raycast' engine, a pseudo 3D FPS engine similar to Wolfenstein/Doom. I haven't done much reading so my implementation is likely very naive. My current working prototype ...
0
votes
1answer
278 views

How do 3D games create the illusion of depth?

How do libraries like OpenGL convert three dimensional coordinates into the two dimensional pixels we see on our screens? I'm not talking about the 3DS or games that require 3D glasses, but rather the ...
2
votes
1answer
157 views

Get quaternion between two objects on sphere

In a planetary gravity environment objects are represented in the following way: struct object { struct quaternion quat; // quaternion to represent the rotation between the object and the center ...
1
vote
1answer
201 views

My .FBX model is not picking the .TGA texture file

I'm at a complete loss. An artist has sent me a 3D model so I can test it in Unity. This is exactly what I got: - Guy.fbx - Guy_DIF_512.tga Alright. So I move the folder into the Unity ...
1
vote
1answer
177 views

Creating a 3D mushroom cloud [closed]

Hi I am trying to create a mushroom cloud animation for my strategy game. Something like this. I have been looking at info for creating explosions in general, and the way to go seems to be using 2D ...
1
vote
1answer
99 views

How to make a textured tree model outside of unity that can be used in unity

So I am trying to make a 3d model of a tree that is textured that can be used in unity. So far I have tried two separate ways to do this and they both didn't work. The first time I used blender's tree ...
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 ...
1
vote
1answer
189 views

DirectX 11 vertex shader incorrectly sending <0, 0, 0> normal vector to pixel shader

I'm following the Rastertek tutorials. I'm unable to get diffuse lighting working from http://www.rastertek.com/dx11tut06.html. I think the NaNs in the following screenshots is just from stuff ...
1
vote
1answer
105 views

Position and rotate a 2D point array into a 3D world

I have a set of 2D points (defining a flat 2D 'connect the dots' shape). I want to calculate the 3D positions for these 2D points at a specific 3D position and rotation. For example, say I have five ...
4
votes
2answers
362 views

How can I achieve a pseudo-3D camera effect like this?

I am trying to achieve a pseudo-3D camera effect similar to this: I have gotten the following results using a 3D camera and billboards: I am now running into the following problems: In the ...
0
votes
0answers
97 views

Modern OpenGL, rendering multiple obj objects not working

I am currently working on a 3D Game Engine that loads a level from an OBJ file and renders it with OpenGL. My problem is related to understanding how to render each object individually when i have ...
3
votes
1answer
164 views

How to render a pseudo-3D view like in the game Biosys (1999)? [closed]

Biosys is a PC game released in 1999, where navigation through its environments is done by clicking an "exit" on a scene, taking the player to a new scene. The player can't move in a scene, and ...
6
votes
4answers
2k views

What is the simplest way to calculate distance in a 3D environment?

What is the simplest way to programmatically calculate difference between two points in a 3D game environment? I am trying to sort a list of light sources by how close they are to an entity, so that ...
0
votes
0answers
119 views

Insert 3d text to the front face of a cube GameObject

I want to add a text to a cube in Unity. I have a cube which has a 3d text as a child. I am using the below javascript to write on the 3d text: #pragma strict function Start () { } var countdown : ...
2
votes
1answer
503 views

Processing - implement a first person camera?

First off, I'm sorry if there are duplicates of this. I did an extensive Google search but was unable to find anything that made sense to me. (I am new to 3D rendering and such.) I want to make a ...
1
vote
3answers
455 views

Why does unity obj import flip my x coordinate?

When I import my wavefront obj model into unity and then draw lines over it with the same coordinates in the obj file, the x coordinate is negated. I don't see any option in the importer that might ...
1
vote
1answer
244 views

Creating a 2d look sprite sheet and textures out of 3d models [duplicate]

I'm trying to make a 2d game (rpg top down), and I've got no 2d artists help me out making 2d characters and textures, but I have one who can make 3d stuff (using Blender and 3d Max), I was wondering ...
1
vote
0answers
119 views

How do I implement realistic recovery from weapon recoil?

I want to create an equation determining how fast a gun recovers back to its center after it has fired. I have a weapon system functioning based on constants (recoil amount, bullet spread, etc.) ...
1
vote
2answers
375 views

Does PBR mean only one, right technique to view 3D scenes?

For example if I call Unity 5 render pipeline a PBR (Physically-Based Rendering) and Unreal Engine 4 render pipeline as well PBR, does it mean that the same model with the same PB textures will be ...
0
votes
1answer
1k views

What are “view frustum”, “focal length” and near plane distance?

I've been reading through "Mathematics for 3D game programming and Computer Graphics" lately. Specifically definition of the view frustum and how the APIs generally process it, author introduces the ...
0
votes
0answers
32 views

Rotating between two coordinate frames

I have two coordinate frames, A and B. I want to create the rotation matrix RAB which takes you from A to B. A is a right-handed system, and B is a left-handed system. Furthermore, after moving from a ...
53
votes
8answers
14k views

Where to start with game development? [closed]

To anyone who finds this question on Google or elsewhere 3 years after asking this question I've had a lot more experience with game design, and I have a good idea what I was lacking in ...
1
vote
0answers
71 views

Find the largest empty space inside a cube populated with a point cloud?

Lets say we have a set of points (x, y, z) where we know 0 < x < 1 (same for y and z). Now that 3d space is populated with monsters, players or what not. The points represent their location. We ...
0
votes
0answers
52 views

possible way to bring canvas 2d animation in canvas webgl context

when added 2d animation canvas in 3d webgl canvas as texture, 2d animation and 3d animation both stopped working. Any reference for this.
-1
votes
5answers
4k views

Too much animation work for 2d characters. Creating 2d character animations by prerendering an animated 3d model?

I've read a bit about creating assets for games and the consensus seems to be that 2D is cheaper than 3D in all aspects with the exception of character animation. That's caused by the need of ...
1
vote
0answers
42 views

Zoom to Mouse on a Globe using a Perspective Projection

I am trying to create a strategy game that takes place on a globe (i.e. a textured sphere). I would like to be able to zoom to mouse like on google maps. My camera always points towards the center of ...
2
votes
1answer
349 views

Frustum culling with an octree: one AABB per bone or one AABB per object?

I've constructed an octree for use in frustum culling. The question is, should I insert an AABB for each bone of each object, or just the one AABB for the object?
4
votes
3answers
276 views

Extract smaller frustum from camera frustum?

Background: I was thinking of implementing multiselection by performing a frustum culling on a sub-part of the screen. Problem: Given total screensize, a rectangle on the screen (pos, size), and ...
0
votes
0answers
41 views

Check if an axis aligned cube intersects with a 3d triangle?

Check if a point is inside a cube: def is_point_in_cube(point, cube): return ( p.x > c.x and p.x < c.x + c.size and p.y > c.y and p.y < c.y + c.size and p.z > c.z and p.z ...
2
votes
2answers
543 views

How to synchronize damage with attack animation in a RTS game?

I have been working on a RTS game in unity and did damage deal through code and a timer but it does not fit with the animations quet well. The damage is dealt in the beginning of the animation and ...
1
vote
0answers
62 views

XNA/DirectX: Advanced 3D Sound

Im currently working on an xna game with c#. Ive been looking into 3D Sounds recently as this is the next objective on my list. Ive found several tutorials online and they dont work to the standards ...
1
vote
1answer
201 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
121 views

Is the rendering of distorted point clouds more complex?

I have two point clouds of n points: A dense ball-shape point cloud with many points inside A spherical point cloud with points on its surface. Is there (really) any difference between rendering ...
-1
votes
1answer
109 views

3D OBB vs OBB Collision Detection and Response

I need to know how to do collision detection and response for 2 3D OBB objects. I will also need to be able to have certain objects disabled (no collision, incase I need to test something like a ...
0
votes
1answer
89 views

Multiple Vertex Layouts

I have different vertex layouts I'm using to render things in DirectX and as of now I've just used the same vertex layout for every mesh I load in. But now I want to have the vertex layout change ...
1
vote
1answer
222 views

Drawing Projected Vertices/Faces In Order

I recently created a 3d engine, and have gotten to what is (as I've found) the hardest part so far. I need to sort the objects and then draw them. I've looked at sorting algorithms, but my case is ...