Questions tagged [3d]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
53 views

Third Person SpaceShip Camera Directx9 follows objekt but gets weird after moving object

We have the following code. It should follow the game Object in every step but it does not. In the beginning we can rotate the object where ever we want and it works but after moving it some the ...
6
votes
2answers
3k 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
0answers
42 views

What is wrong with my collision detection?

I am trying to create a collision detection system between block using this code: ...
0
votes
1answer
172 views

Unity crashes if there are more than 4 terrains

please can you help me with the issue that I face, that is, I decided to create open-world game by creating several terrains and connect them together in Unity and firstly respective size of the ...
0
votes
1answer
82 views

What to do with collision detection?

I am able to get collision detection (CD) into my game but... what do I do with it? Do I push the player back to the last location? Something else? I am programming the game in C++ using the Irrlicht ...
0
votes
1answer
80 views

Quaternion.LookRotation with Joystick

I am having an issue i cannot seem to figure out within my code. What this code does at the moment is that it rotates the 3D Model around the z axis but i need it to rotate around the y axis. Any help ...
3
votes
1answer
263 views

Rigid body falls through static mesh even though collision is detected

I'm using Jitter Physics to create a game. For testing, I have ball (a spherical rigid body) falling onto a small box-like mesh. The problem is that the ball falls straight through the floor, even ...
22
votes
2answers
6k views

How to programatically retarget animations from one skeleton to another?

I'm trying to write code to transfer animations that were designed for one skeleton to look correct on another skeleton. The source animations consist only of rotations except for translations on the ...
0
votes
0answers
18 views

Keep my 3d player from jumping if he's not on the Ground [duplicate]

I'm making a 3d game, and I have only made games in 2D before, but i have used blender before too. My player can now walk and jump, but he is not limited to only jumping of the ground. In 2D, you ...
0
votes
1answer
72 views

Camera rotation is weird when it's a child of another object

I implemented scene graph hierarchy into my 3D game engine, and there seems to be a problem with the camera's rotation when it is a child of another object. It only happens with the camera, not any ...
1
vote
1answer
52 views

When do you use StartCoroutine and when Invoke?

I am confused. Both seem to do the same thing: Delay a method. Both Invoke and StartCoroutine allow you to call a method by name (string). ...
0
votes
1answer
15 views

3D title Rendering in Maya For babylon Js Game Engine

I created a 3D title in Maya and applied color through lambert and rendering with mental ray. Problem is when the coder is rendered in the game engine, it is looking very sad. The colors are faded ...
0
votes
1answer
246 views

Swept aabb 3d incorrect collision resolution along negative normals

I have followed this tutorial and ported it to 3d with glm. Everything works fine when the collision normal is reported as positive ((1,0,0),(0,1,0),(0,0,1)) but when it is negative the player aabb ...
0
votes
1answer
73 views

How can I snap player-constructed objects in a 3d world together?

I m trying to build minecraft type of game with more complex builds like that of fortnite, so I wanted to start with the best practices i have to follow to create those builds. the blocks in ...
0
votes
3answers
130 views

How to stop player when game over?

problem is when game over myplayer not stop?? ...
0
votes
0answers
12 views

MonoGame - Model not rendering properly

I'm trying to render a model made in Blender. I export it to .fbx and import it in the content pipeline, load and draw it, but it displays like this: And this is what it looks like in Blender: Code ...
0
votes
0answers
19 views

Inclusive vs Exclusive voxel bounding box

Let's say I have a few voxel at (1,1,1) and (2,2,2), I would like to know if would be better to consider that the smallest box that contains both voxels is either (1,1,1) to (2,2,2) or (1,1,1) to (3,3,...
1
vote
1answer
233 views

2D HUD overlay drawing based on 3D coordinates and camera azimuth and elevation

Assume you have the 3d coordinates of the player and another unit N as well as the azimuth and elevation of a camera always looking at the player. In the following ...
0
votes
1answer
436 views

Bird flight simulation (physics)

I tried to search something about bird-like animal flight simulation but it looks like everything is spammed with flappy bird 2D questions. I want to have in my 3D game bird-like animals with ...
0
votes
1answer
49 views

Soft Body rendering from OBJ model

As part of my master thesis I have to do an softbody simulation. I 'm using Bullet Physics engine. I'm trying to render softbody, create from Meshes, with Shaders in OpenGL but the object doesnt ...
0
votes
0answers
19 views

OpenGL Bump map issues

I'm using Core-Profile OpenGL version 3.3 and I'm trying to implement bump mapping. I'm loading the model thanks to assimp and adding 2 textures to the material one for the diffuse color and one for ...
1
vote
2answers
2k views

How to make minecraft like world round?

I'm interested is there a game or at least example which shows how minecraft-like world turn to sphere? Idea is that there is sphere which consists from cubes like in minecraft but they are on the ...
2
votes
1answer
109 views

How to preserve Arcball rotation in c++ OpenGL?

Firts of all want to say that I've already searched for other people's answers here as same as Google and didn't found anything about it there. Also tried some others arcball implementations but none ...
0
votes
2answers
63 views

OnTriggerEnter With First Person Controller

I'm working on an FPS for my first time. I'm creating a simple terrain and instatiating 15 cubes on my terrain. (This works fine). Each cube is named "cube" and has a static trigger collider. Here's ...
0
votes
1answer
63 views

How can I export a 3D model with keyframes to use in Blender?

I'm currently trying to export some 3D data and load it into Blender, but I've encountered some problems at the time of processing the meshes. They all have keyframes (nothing too complex, just ...
0
votes
0answers
18 views

Unity creating 3d clothes for game character

I am trying to make a system where players can change out their clothes with others if they like, and even layer up clothes such as covering a shirt with a jacket, then an armored vest. I have ran ...
0
votes
0answers
17 views

Correct primitive to start with for modified cone shape

I am very new to Maya and trying to make a Nikon F camera from reference images. I can't quite wrap my head around how I would make the shape on top of the camera because it is essentially a square ...
0
votes
0answers
22 views

Is it efficient to use colliders on UI canvas in Unity?

Basically I have a task where the player will be able to drag an object (as UI Image), and place it inside a bag (another UI image). What's the best optimized way to do so? As I researched, I do not ...
5
votes
1answer
330 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 ...
0
votes
1answer
73 views

Orbital rotation equation

I am developing a space sandbox (3D). Now I am working on an asteroid belt around a planet. I have an Asteroid class and an ...
4
votes
1answer
1k views

Perspective projection with 90 degrees between X-Y axis?

I'm trying to create a game that mimics Tibia's projection style: (source: mmoginfo.com) , As you can see, a 3d point is mapped to 2d like this: So I've downloaded Three.JS and a lib to create a ...
1
vote
0answers
1k views

How can I shoot an arrow if I know the shot power and target? [duplicate]

I am trying to shoot an arrow at a target with a 100% success rate. Given the initial force applied to the arrow, the gravity, the location of the archer, and the location of the target, how can I do ...
0
votes
0answers
30 views

Unity3d:Detect a collision between an image and a sphere

So, I just realized, an image with BoxCollider2D wont detect any collision with Sphere with <...
0
votes
1answer
573 views

Planar mapping/projecting UV coordinates from normal

I've got set of vertices, and would like to calculate their UV coordinates by projecting them by a given normal. Similar to what "planar mapping" does in 3ds max. Another way of looking at it is ...
0
votes
0answers
37 views

Adding spread to velocity Vector3D

I am trying to give an object a velocity spread (e.g. shotgun bullets or particle effect). ...
0
votes
1answer
115 views

How can I create a tunnel/parallax/depth effect based on mobile device tilting?

I would like to create applications similar to what's displayed in these videos: VR Tunnel Live Wallpaper for Android The parallax view Part 1 These mobile application are supposed to react to ...
8
votes
2answers
196 views

How do I create a half-ortho half-perspective projection matrix

I've been trying to make a formula for the projection matrix where your vertical axis is projected orthographically but your horizontal axis will have perspective to it. So the view frustum would ...
0
votes
0answers
30 views

Generation of a 3D loop the loop with minimal steering required

How would I generate a surface which resembles a loop-the-loop shape like this one described here? After triangulation of the surface, lets say I start at one end with some initial velocity which is ...
0
votes
1answer
53 views

Assigning relative force to a projectile fired while orbiting a sphere

Projectile Not Correctly Inheriting Parent Velocity (Unity3D) So I am trying to incorporate the above person's changes into a script I am making although I'm no great coder and I'm not even sure ...
3
votes
4answers
2k 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 ...
1
vote
1answer
358 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 ...
1
vote
1answer
36 views

Find angle (slope) of collision plane?

I have implemented a collision and response system based on the famous "Improved Collision detection and Response" paper. However I'm having an issue with objects sliding backwards on slopes. I ...
0
votes
0answers
48 views

converting 2D radar to 3D

I'm playing a 3D game. I got a camera which can be set in first-person and third-person view. I already know how to grab entities around my main character and display them in a small 2D image, in a ...
0
votes
0answers
18 views

how to find point intersection of two segment in 3d after they collide? [duplicate]

I'm working on collision boxes project and I found a problem that when I detect the collision with the algorithm of SAT and knew that the collision was edge\edge I couldn't find the the point of ...
8
votes
3answers
9k views

How to perform collision detection in 3D space?

I've got to write, what can be summed up as, a complete 3D game from scratch this semester. Up until now I have only programmed 2D games in my spare time, the transition doesn't seem tough, the game's ...
0
votes
1answer
522 views

How do I create the terrain mentioned in GPU Gems 3

So, i want to create this style of terrain: Nvidia GPU Gems 3 - Chapter 1 However, as much as I scour the web trying to find ways to implement this inside Unity, I can't find it. My current ...
2
votes
2answers
123 views

Issue with Jumping

In my game, you have to press (or more accurately release) space bar to jump. However, at seemingly random instances the player wouldn't jump. So it is working fine most of the times but then out of ...
3
votes
1answer
260 views

Art Guide Theory: Lighting an Game Environment (Objectives, approach/workflow and mood) in PBR

What's the theory behind the Lighting an Game Environment in a Physically Based Renderer? As far my research, lighting an scene is done with different Rules and Different Ways of Lighting an Scene ...
2
votes
1answer
1k 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
298 views

Lat, Lon and elevation Conversation into unity coordinates

I have came across a very vague project problem and its feasibility report or communication procedures I have to define. And here is the current scenario: I have two applications One is built on ...