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

0
votes
1answer
36 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 ...
0
votes
1answer
35 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
1answer
128 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
0answers
17 views

where should i go for documentation of 3d in cocos2d-x [closed]

Help me out friends, can't get enough even on google.Suggest me some material regarding this,be it any book or any course.
-2
votes
1answer
38 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
29 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 ...
1
vote
2answers
130 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
79 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
184 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 ...
1
vote
1answer
39 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
46 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 ...
4
votes
1answer
106 views

What direction is forward when the rotation is (0, 0, 0)?

I'm representing the rotations of my actors (or gameobjects) with euler angles (one float for each axis). And I've always considered the vector (1,0,0) (x,y,z) to be the actor's direction if all ...
1
vote
0answers
38 views

Rotating a 3rd person camera toward a target

I have a 3rd person camera that doesn't look directly at the player but somewhere in front of him. When the user enter shooting mode, I want the camera to turn around the player to face the target. ...
1
vote
1answer
57 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 ...
1
vote
1answer
63 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 ...
0
votes
1answer
86 views

Create a continuous flight path on a Bezier Curve in Unity3d

I am working on a game in which a butterfly is flying along some path. What I am trying to do currently is create a Bezier curve starting from the butterfly's position(previous curves end point) and ...
0
votes
0answers
47 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
143 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 ...
1
vote
1answer
116 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 ...
0
votes
2answers
119 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 ...
0
votes
0answers
70 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 : ...
1
vote
0answers
76 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
1answer
123 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 ...
0
votes
0answers
25 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 ...
4
votes
2answers
318 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 ...
1
vote
0answers
41 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
23 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
vote
2answers
181 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
26 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
203 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
52 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
votes
1answer
46 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
69 views

Center a 3D model to cursor's position

I am having a hard time understanding how to go about this. I have a 2D game with some 3D models in it. I want to move a 3D model to where the mouse cursor is currently at in every frame (In other ...
0
votes
1answer
59 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
42 views

Finding the side of a shape a ray intersects

For some simple 3D shapes (cubes, prisms) how can I determine which side a ray intersects, knowing the direction of the ray, and the normals of the shapes' sides. I thought of using plane ...
0
votes
0answers
28 views

How to import smoothing groups from 3D max to ZBrush

I need to import model from 3D max to ZBrush with smoothing groups because I need to have some smooth edges and some sharp. As I remember it was possible to make it in ZBrush 3.0 by using plugin ...
0
votes
1answer
55 views

Draw 3D model on top of another one

I am trying to draw a 3D model I made with Blender in Monogame/XNA and this is the result I get when I draw 2 of them on top of each other How can I make it so that the colors don't add up, but the ...
0
votes
0answers
22 views

How does collision detection work? [duplicate]

I was curious on how hit collision works in games. I know there is a simple method that gives every object in a 2D or 3D world a recengular hitbox that makes it easy to detect a collision, but when ...
0
votes
1answer
209 views

A* pathfinding in 3D

I've looked through some A* pathfinding algorithm examples, but as far as i know they work with grids e.q -> http://qiao.github.io/PathFinding.js/visual/ But how can I use this algorithm in my 3D ...
0
votes
0answers
54 views

Calculate future 3D Position of object(Unit)?

I've looked around and almost all examples is see have a velocity vector which I do not have, or at this point am unable to figure out. Im trying to find the 3D position where i can launch a trap in ...
0
votes
0answers
41 views

Stuck on a steering problem

i'm building a car game, and currently working on the steering. i would like to change the motion of Z rotation so that the car rotates around the Z axis when the wheels are turned. I can't set the ...
0
votes
0answers
28 views

What map projection is needed to transform a shapefile into a 3D earth?

I'm looking for a way to create a 3D earth in Flash, something like the wonderful SolarSystemScope, only in my map the countries should be clickable and whatnot. To get started I've got map data from ...
2
votes
2answers
132 views

How to calculate a 3D orientation from 2D vanishing lines on an image?

Let say I have a image that represent a 3D scene. I did not have the 3D camera orientation of that scene (left, up and forward vectors) and i'd like to calculate it. On that picture, I draw the ...
5
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
1answer
60 views

Implement a Vision cone in 3D

I'm looking at how to implement a vision cone for my AI. Everything I look at talks about a forward vector, but in my situation, and I'm not that great with math, I have a vector but it doesn't give ...
1
vote
0answers
80 views

DirectX graphics issues [closed]

When you see something that looks like this And it's actually supposed to be like 100 models of asteroids. What would you say is wrong with it? Index Buffers messed up. Vertex Buffers? Projection? ...
1
vote
1answer
65 views

“aim at” in 3D space algorithm

I'd to calculate the cartesian rotate values of "aiming" one point at another in 3D space. For example, assuming rotation order of XYZ: Point A is at [0, 0, 0] Point B is at [2, 2, 0] If point A was ...
0
votes
3answers
141 views

How to render grid properly, especially over distance?

I'm drawing a grid, pretty much like one can see in the Unity editor itself or any 3D-editor, many 3D-related applications and some games. But it doesn't look pretty in my case. I put a few random ...
2
votes
1answer
118 views

Easiest way to make a 3D overworld [closed]

Using something like Blender, would it be easier and more time and space efficient to create 'tiles', and use some kind of software like Tiled to use these tiles in the various maps, or would it be ...