Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [3d]

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

2
votes
1answer
64 views

How to achieve single animation for different charcters?

I've been playing a game called Marvel Contesnt of Champions for android. In that game two opponent fights with each other in most 2D view but the game is developed in 3D. Each character has their own ...
2
votes
1answer
701 views

3D objects with animated bones Monogame in the year 2017, is it possible?

I've been working on a game for quite some time now and suddenly it seems that I've hit the great wall of.. In the earlier XNA there were possibilities to use animation exported with the 3D object ....
2
votes
2answers
59 views

How can I move a 3d object to a known Cartesian point on the surface of a sphere?

I'm trying to figure out how to move an object from one Cartesian point to another located on the surface of a 3D sphere. So that the object will follow the spherical coordinate system (Theta and Phi) ...
1
vote
1answer
430 views

How to clamp the rotation between two values in unity 3d

How can i clamp the rotation of cube between two values and then rotate between them gradually Details Of what i Want When I press A or D keys cube should Rotate On Y Axis from 0 to 13 deg ...
0
votes
1answer
95 views

Moving 3D object over Spherical terrain

I'm trying to control a 3D object (just a box for the moment) moving over a spherical 3D planet, I'm using a Ray to find the triangle in the sphere under the object. I'm calculating the surface normal ...
0
votes
2answers
1k views

Drawing a simple triangular prism in opengl in 3D

Is there a simple way to draw a triangular prism in opengl? I'm using lighting and a non-orthographic camera. I basically need a 3d object, not just vertices. edit: well I've tried searching, and I ...
0
votes
1answer
383 views

How can I blend grass decals in a transparent alpha channel in 3D? LibGDX

I'm new to 3D and trying to create grass simulation using decals in libGDX. I'm following the logic outlined here. Atm my grass decal is a billboard of grass stems with a transparent background. I'...
1
vote
2answers
98 views

How to clip 3D object in projection (octants)?

In example we've wrote some code in Pascal (graph unit) which rotates 3D object in oblique frontal (dimetric) projection in all octants positioned in center of them. The projection's type: The code ...
0
votes
0answers
54 views

3D Player x positon problem

I`am make Runnig 3D game and i made to move left and right and when i move left or right i have problem with position X and rotation Y its change every frame, can someone help me to this direction. ...
0
votes
2answers
67 views

My cube goes through side walls on android device

I have a cube and it's on the ground and there are two walls (Plane) next to the ground. Like in the image there is a ground and in side there is a wall. Here is my code: ...
2
votes
0answers
290 views

JavaFX import 3D models

I want to import some 3d models to my javaFX application. In javaFX I can create rectangles, traingles, circles, pentagons. Those figures can be filled with color or filled with image. They are ...
0
votes
1answer
2k views

How to move my cube left or right using touch Inputs (C#) in unity

I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. ...
3
votes
1answer
246 views

2d Scale width and height based on distance

I'm drawing a health bar on top of each player. I transform 3d position to 2d. I would like to draw it smaller when distance increases. Any simple math for that? Let's say bar width is 30 and height ...
0
votes
1answer
69 views

Why are Monogame models tied to effects?

When I load a model in Monogame using ContentManager, the model contains effects on each mesh (mesh.Effects). This is confusing ...
1
vote
0answers
219 views

LibGdx: Texturing cube results in jagged transparent edges

currently I'm in the works of programming a game - surprise xD I'm using LibGdx for this manner but I've encountered a very unknown bug I guess. I wasn't able to get any further by searching the ...
0
votes
1answer
192 views

Poor performance with LWJGL VBO triangles

I'm new to OpenGL and LWJGL & I have a question about rendering using VBOs. I rendering 50*50 objects using VBOs. Each object has its own render method where binding of the position, rotation. ...
1
vote
0answers
101 views

LibGDX: Draw a pie chart?

I'm new to LibGDX, my goal is to render a 3D pie chart, my idea is to draw a Cylinder and somehow define slices that can have different material and transformations. I can render a cylinder already ...
2
votes
0answers
98 views

Creating “Run over by car” effect in unity using spotlights only

I'm doing a project where I need to simulate a car running the character over. It's happening in a completely dark space, so I want to create it using spotlights moving towards the camera until the ...
0
votes
1answer
79 views

Any reason 3D character models aren't split into multiple models / files?

I'm just curious if there as any reason why artists are so resistant to split their 3D models into multiple fbx files. I just find the code design much cleaner if 3D models are split up into multiple ...
3
votes
1answer
174 views

How to 'point' an arrow in the direction that it's going?

I am relatively new to OpenGL and 3D environments and am having trouble creating a rotation matrix that will rotate an arrow model so it 'points' in the direction that it is going. I am using GLM as a ...
0
votes
1answer
280 views

Is my 3d terrain moving?

I generate a 3d isometric terrain with the help of badlogicgames. I pass a perspective camera to the spriteBatch projectionMatrix, but when I move my player (perspective camera follows my player) it ...
0
votes
1answer
179 views

Shadow Shimmering When Moving Objects

I am having a shadow shimmering in my scene when using a shadow mapping technique. I know that there is a lot of posts over the internet dealing with this subject but my issue is slightly different. ...
0
votes
0answers
204 views

Lat, Lon and elevation Conversation into unity coordinates

I have came across a really vague project problem and its feasibility report or communication procedures I have to define. And here is the scenario: I have two applications One is built on Unity3d (...
0
votes
1answer
158 views

AI not pathing correctly with pathfinding

I have implemented A* pathfinding to use in a game that im making for a project. The issue is that the AI that's using the pathfinding does not seem to wanna follow the path correctly. as displayed in ...
0
votes
1answer
45 views

Quaternion Translation

I am writing a small game and I need some help with my quaternions. If I have an object at rotation A (quaternion) And I need it to be at rotation B (quaternion) in 10 steps how would I work out the ...
1
vote
1answer
318 views

Player movement vs world movement in infinite runner game?

Well I'm developing a Temple Run or Subway Surfer style infinite runner game. Which is more good? -Moving the player and make the Main Camera follow, or keep the player in one position and move the ...
2
votes
2answers
104 views

Moving spotlight (or object) between 2 coordinates (image included)

Given the origin position and direction for a spotlight. How can I smoothly move a spotlight between two 3D coordinates? Please use the picture below so I can easily comprehend this. I would like to ...
0
votes
0answers
83 views

How to position a 3D crosshair on an objects face and set its angles **outward** from objects face?

What I have right now, is a ray tracer for my cursor on my canvas, when I click on the object, it gets the vector of my selection in the 3D space on the object I had my mouse on. The ray tracer ...
0
votes
1answer
400 views

Fixed camera rotate to follow character

I have a camera in a fixed position in the middle of a field, and I would like to rotate the camera to follow the character as it moves around. There is no point lower than the camera, but I would ...
0
votes
1answer
72 views

How to simulate camera turbulence for in-game cinematics [closed]

Are there any good algorithms for generating a convincing turbulence effect that can be applied to an in-game camera. For example, in use cases such as the viewpoint of a plane flying low and fast ...
0
votes
1answer
161 views

Why Are These 3D Square's Pixels Spaced?

So i'm currently attempting to write a 3D renderer. From no prior knowledge because I want to challenge myself. But I'm stuck here, and thought I'd bring it to StackExchange because I always see ...
0
votes
1answer
49 views

Setting collider in 3D map (blender file)

New to gamedev and I also have no idea about 3D files but, I'll try to explain the best I can. We are using our own custom engine built in C++ with OpenGL (glm, gl3w, glfw, entityx) We have a 3D map ...
0
votes
1answer
85 views

Perspective View using Spritesheets

I am creating a Top-View 2D game. However, the only way i can get a good view of the objects, such as houses, trees, is to make the game in orthographic view. The same way games such as Pokemon games ...
1
vote
2answers
313 views

Huge memory size with huge amount of voxels

I'm currently using a tridimensional grid for pathfinding, think of it as a huge cube with voxels (3d nodes) inside it, each voxel ita a class containing information about the voxel, if its an ...
0
votes
3answers
99 views

Predicting the route a rigid body will take when force is applied

I'm learning 3D game development with some kind of mini golf game. It is working well so far: I have a sphere, and I am using AddForce on its ...
0
votes
1answer
83 views

Oscillate an object's scale

I am able to scale an object using a scaling function I wrote. Internally it builds matrices that are multiplied by each of the vertices to transform them. The parameters I give the scaling function ...
1
vote
1answer
98 views

3d complex collision and trigger detection [closed]

I'm a Unity developer and I use monobehavior functions to dot things like collision detection. I have read about articles about collision detection. Most of them work with geometrical structures like ...
1
vote
2answers
655 views

Help to understand positive rotation direction on left/right handed cord spaces

I began to study 3D math and noticed about left/right handed cord spaces and clockwise/counterclockwise rules. I understand that left-handed use clockwise positive rotation and right-handed ...
1
vote
1answer
30 views

In unity, some part of mesh doesn't show only in play mode

This is screenshot of not playing mode. You can see the the speedloader and bullets inside of the revolver. And this is when playing mode. As you can see, I can see the speedloader and bullets in ...
1
vote
1answer
51 views

Why “polar angle” should be restricted to the range of [0,PI] when moving camera?

In the sample code d3d12book-master\Chapter 6 Drawing in Direct3D\Box\BoxApp.cpp of "Introduction to 3D Game Programming with DirectX12 : Frank D. Luna", the camera ...
0
votes
1answer
880 views

How do you compute the tangent space vectors with normals given in the mesh?

Suppose you are given a mesh with normals for each vertex. These normals might not correspond to the face normals, as the artist could have tweaked them. In this case, how would you go about computing ...
3
votes
0answers
591 views

Engine for 2.5D Voxel Based City Simulation [closed]

We're looking into making a game where you're part of a city and you're interacting with its economy and people. The world should be an open and procedurally generated sandbox to enable players to the ...
2
votes
1answer
239 views

How does mouse input work in 3d games? [closed]

How does a game process cursor movements? I know it calculates offset from the middle of the screen, but how? What constraints is that cursor having? Is it locked to the middle of the screen/a ...
1
vote
0answers
42 views

XNA Further faces are shown through closer faces

I'm trying to draw a 'axis' model named 'XYZ'. The problem is that it is rendered wrong (screenshot below). You can see that the blue face can be seen through the red face. The black, green and red ...
0
votes
0answers
132 views

How to reset a libGDX PerspectiveCamera?

I'm having problems setting a PerspectiveCamera values when changing scenes. Let's say I set a PerspectiveCamera as follows for level 1 in a game: ...
1
vote
2answers
61 views

Compute Corners of Cuboid In 3D

How can I compute the eight corners of a cuboid given a Depth and Height and two points: A(x,y,z) and B(x,y,z)? Is it possible to calculate the eight corners/points of a cuboid given only a limited ...
2
votes
1answer
55 views

Model disappears when viewing from up vector

I'm sure there is a simple explanation for this behavior that makes mathematical good sense, but I need a way to look at my model along the up vector. I have tested it with the three unit vectors to ...
1
vote
0answers
26 views

Algorithm for clipping convex quadrilaterals

I'm dealing with hardware that uses quads as its polygonal primitive. Not triangles. A triangle can be expressed by setting 2 of the 4 equal to each other for a degenerate quad. For the 3D engine, I'...
1
vote
0answers
102 views

Problems exporting meshes to Unity 5

After creating a tree (Scots Pine) in SpeedTree Cinema v7.1.1 I exported it as a .FBX ascii file to Unity 5 and I encountered a problem; the leaf material, while viewing it in Unity 5, can only be ...
1
vote
0answers
240 views

3D Flight with pure local rotation without roll creep

I'm working on a flight race game with a specific constraint and cannot find a solution. Hereinbelow, an image of a test scene. My ship has a cylinder (children) in front of it from which I get a ...