3D refers to three dimensional space where coordinates are represented with X, Y and Z values.

learn more… | top users | synonyms

40
votes
4answers
8k views

Why do modern games use a render-to-texture approach for mirrors?

When looking at old games like Mario64 or DukeNukem3D, all the mirrors in the game are essentially just holes in the wall with a mirrored copy of the geometry in front of the mirror put behind them. ...
1
vote
0answers
32 views

Is there a way to rotate a TexturePaint?

I wanted to add a grass texture to my 3D polygon-based game, and thought the easiest way to do it was to use a TexturePaint. Currently, the texture stays fixed while the world rotates which isn't the ...
0
votes
1answer
33 views

Unity detecting edge of mesh or end of mesh

I'm trying to create procedurally generated tiles and I've reached a point where I need to figure out the boundaries of the mesh or the outer vertices of the mesh. RaycastHit hit; if (...
2
votes
0answers
43 views

How to disable and enable a randomly generated prefab in an endless runner 3d

Hi all I have been experimenting the endless runner game for some time and needed to optimize it. I read some articles about optimizing my game and it says that once you instantiate the prefabs in the ...
6
votes
2answers
145 views

How to orient a hexagonal tile on a geodesic sphere (Goldberg polyhedron)?

I've recently ported the hexasphere implementation by Rob Scanlon at https://github.com/arscan/hexasphere.js to objective-c for use in a project I'm exploring. As a port, it works very well, and I ...
-2
votes
0answers
36 views

Faster way of creating character animations [on hold]

We need to create a computer game for our Artificial Intelligence subject. I decided to choose 2D Fighting games because I thought it would be easy. As I continued researching about this game I found ...
4
votes
1answer
61 views

How to make one 3D object face another?

I'm writing a simple 3D engine myself and I cannot figure out how to make one object face another. The problem begins with identifying which direction the target object is in relation to the second. ...
13
votes
3answers
13k views

OpenGL ES 2.0 Point Sprites Size

I am trying to draw point sprites in OpenGL ES 2.0, but all my points end up with a size of 1 pixel...even when I set gl_PointSize to a high value in my vertex shader. How can I make my point sprites ...
1
vote
1answer
69 views

How do you render planets without distortion?

I've recently been working on a little spaceship flying sim in Unity and want to add planets. Up till now, I've been hand modeling them in Blender. But I want to have a way to generate large planets ...
1
vote
0answers
24 views

Advice on mapping tiles to a height map/3D world

I've been attempting to think of a way to map tiles to a height map. Where a grid can be either layered or integrated into the world data. However, since I am not using voxels I could use some advice ...
8
votes
2answers
308 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. ...
7
votes
2answers
465 views

OpenGL Fast-Object Instancing Error

I have some code that loops through a set of objects and renders instances of those objects. The list of objects that needs to be rendered is stored as a std::map>, where an object of class ...
1
vote
0answers
23 views

Unity3d Isometric moving forwards

I am making an isometric game using unity 3d and 3d graphics. I have been able to figure out how to create and isometric camera that follows the player, and a basic isometric moving script for the ...
1
vote
1answer
73 views

Game Modeling good practice regarding quads and ngons

I'm asking myself if using quads is really the better practice instead of using ngons (for flat surfaces!) when it comes to game modeling. I often read this and saw models that look like this (96 ...
3
votes
1answer
64 views

Reflection areas on texture

I have a wheel model. It's use Reflected Diffuse shader and only one texture and only one material. So it should seen like that, right? But it's seen like that: I'm really curious about that. What ...
1
vote
1answer
40 views

Texture mapping artifacts on certain surfaces

I am currently working on a 3d game engine, but am complete stumped on a problem involving texture rendering. Here is the rundown. My game engine renders meshes of the OBJ wavefront type. I have ...
2
votes
0answers
16 views

Problem Rendering a Wireframe Cube and Grid with DirectX 11

I am trying to draw a 3D Wireframe (just the lines that connect each vertex) Cube and a 10x10 grid with D3D11. So far, this is my code //************************************************************ //...
1
vote
1answer
528 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
0
votes
1answer
80 views

Is 3d game development advantageous/possible in SDL2? [duplicate]

I think this is not appropriate, but as the given video in the link, the youtuber name Bisqwit creates his own 3d engine from scratch in C and SDL2. How much is this advantageous is real 3d game ...
0
votes
1answer
37 views

How can I fix the face/normal direction of my 3d mesh in blender/UE4?

So I am playing around with UE4 to make some concept art for a game. I extracted the model I wanted to use from the game's files and imported it into blender. It's a tank with 4 parts: the hull, the ...
0
votes
1answer
33 views

What is the best way to animate a jumping motion in Unity 3D?

I am creating a a simple 3D game in Unity with a character who runs, walks, jumps, swims, shoots etc. I am pretty satisfied with my results in all the motions except jump. I need to know at what ...
1
vote
1answer
47 views

Combining skydome and fog

I am developing a 3D game in DarkBASIC Professional, and I have a theoretical problem with the combination of skydomes and fog in general. My question is not specific to a programming language, so I ...
1
vote
1answer
32 views

Add UVs back into a model

I built a 3D model in Autodesk 123d design, then exported it as an stl. When I convert it into an obj, however, there were no UVs in it. Is there a way I can add the UVs back into the model using a ...
2
votes
1answer
56 views

Possible to make/use a “preset animation” on multiple 3D characters?

So im new into game developing, so I'm sorry if this is a stupid question. The thing is, that I'm currently making a game, and I'm done with my 3D characters. The only thing that is left, are the ...
1
vote
1answer
130 views

Making Cave system in Unity 5

I know there are many threads about this but none of them seems to work for me and I spent like 2 days already on that problem. Things that I've checked: http://wiki.unity3d.com/index.php/...
1
vote
1answer
55 views

Unity Vector3.Angle() direction

I have a space fighter AI. I need to determine how to pitch, yaw and roll the craft to aim at the target. My current solution: To obtain the Yaw angle to position the target above the fighter, ...
3
votes
1answer
38 views

Is this process for generating an OpenGL perspective projection correct?

I have been programming OpenGL for a while now and I have successfully created a perspective camera, however, I can't help but shake the feeling that I am doing it wrong. The code I am using is below, ...
1
vote
1answer
43 views

Handling movement on sloped surfaces - clamping character to sloped surface

I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
1
vote
1answer
29 views

How to map control key to a specific angle or orientation?

At the moment, I basically have built out a large hash table of various angles and what direction they map to, if the user would press right, up, down, left. This is needed, in my case, as I have a ...
0
votes
1answer
32 views

Z buffer for large vs small objects

Are there common, tried and tested techniques for making sure that when displaying very large and very small objects, in a 3D environment, those objects don't display in front or behind each other? ...
10
votes
1answer
185 views

Draw the middle half of a sphere programmatically

I'm trying to create the middle half of a sphere. Basically to create a sphere, stack numbers and slice numbers are given, and there are two variables phi (for slices) and theta (for stacks) ...
3
votes
3answers
16k views

SDL for 3D game programming? [closed]

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 ...
1
vote
2answers
102 views

FBX animation works in 3DSMax but not with Assimp [closed]

I have an FBX file that represent a plane with an animation of the gear opening. In my editor 3DSMax or in the Unity editor, the file and animation seem good, but when I use Open 3D Model(the official ...
4
votes
2answers
231 views

How do I induce collision events in LibGDX 3D?

In the code below I've put an example of something I want to do. I have the camera and I want it to stop moving whenever it hits one of the boxes, how do I do this? public class Main extends ...
0
votes
0answers
15 views

Hi! How do I do optimized raytracing on a ds_grid heightfield terrain?

I want to do optimized ray tracing, the terrain is a grid, each gridcell has 2 triangles with vartiable z. What's the most optimum way for raytracing collisions? This site has the answer but it won't ...
1
vote
1answer
62 views

manipulating camera with mouse

I am writing a OpenGL game engine and also an editor for the engine. In my editor, i can import 3d models from fbx/collada as a scenegraph. Now i want to implement the option for the user to rotate ...
1
vote
1answer
30 views

IgnoreCollision while Dodging & Colliding

I'm working on a mechanic to allow the player to dodge through enemies. However I'm running into the issue where the player is only able to dodge through enemies while their already dodging when they ...
1
vote
1answer
76 views

Multitexturing depending on given variables?

Im having trouble with rendering multiple textures. Using XNA gamestudio: working with 3D meshes and texturing. Effect.fx HLSL I do have a map/level that loads from a heightmap. - This works I have ...
8
votes
3answers
5k views

How do I calculate collision response between a sphere and a plane?

I'm trying to create a simple 3D game and need to constrain the player within the limits of the game world. When the player hits the sides of the world I want the player's ship to bounce off slightly. ...
0
votes
1answer
54 views

How can i show all edges in monogame?

I am using Monogame 3.5 and i have simple model of cube. I use BasicEffect to draw it. I want it transparent so i use effect.Alpha = 0.5f. Is it possible to show all edges something like on picture?
1
vote
0answers
41 views

Having problems drawing entities the right way in my isometric game

I am making an isometric game where I have moving Entities's not bound to tiles, and a 3d ArrayList map which is populated by Block's which forms a tower-like structure in the middle of the map. My ...
0
votes
0answers
35 views

Mesh Collider in Monogame

I try to implement a few complex objects and want to achieve that they collide based on everything the player is able to see. Therefore I am not able to use the basic BoundingSpheres. Has anybody an ...
1
vote
1answer
61 views

Quaternion based camera pitch freaking out, and Z-axis drift

This is the code I use to control my (first person) camera's movement and rotation. Translation successfully keeps orientation in mind, so that up and left and such are always in the expected ...
4
votes
2answers
1k views

Matrix rotation wrong orientation LibGDX

I'm having a problem with matrix rotation in libgdx. I rotate it using the method matrix.rotate(Vector3 axis, float angle) but the rotation happens in the model orientation and I need it happens in ...
0
votes
1answer
150 views

How do I create the terrain mentioned in GPU Gems 3

So, i want to create this style of terrain: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch01.html However, as much as I scour the web trying to find ways to implement this inside Unity, I can'...
16
votes
4answers
13k views

What exactly is UV and UVW Mapping?

Trying to understand some basic 3D concepts, at the moment I'm trying to figure out how textures actually work. I know that UV and UVW mapping are techniques that map 2D Textures to 3D Objects - ...
2
votes
1answer
148 views

How to fix my camera collision, C# XNA

I am having some weird issues with my camera. I am trying to make it so it is a first person camera, that when the user presses the W or Up key, it moves towards where the camera is looking. My issue ...
2
votes
1answer
58 views

How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)

I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
14
votes
2answers
50k views

How to merge two objects in Blender

What I've Done I created a Cube object with Subdivision Surface modifier in order to model a spehere. I created a cuboid object looking like a angled, longish baton. What I Want to Do I want to ...
0
votes
1answer
136 views

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...