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.

0
votes
0answers
23 views

How to implement floating behavior on player character

Lets say I have a body of water with the level of the water at each frame, with waves that basicly go up and down. How would you implement the computation of the velocity to keep the object/npc/player ...
0
votes
0answers
20 views

How to find volume of convex 3D shape

I'm not sure what can be said that isn't in the title. The gist of it, is that I have a convex mesh delimited by polygons (can have more than 3 sides), and I want to find it's volume. Is there an ...
21
votes
1answer
2k views

Why do transformation matrices always have an extra dimension? [duplicate]

In 3D math I always see matrices with one additional dimension. For example, in 3D graphics, matrices are always 4x4 and in 2d they are 3x3 matrices. Can anyone explain why?
0
votes
0answers
34 views

is that a pbr Shader?

im not sure about one thing: In my engine i have a shader wich takes: Diffuse, Specular, Normal, Metallic, Roughtness, Refraction,Height, Detail and Emission maps. The lighting is calculated using ...
0
votes
1answer
65 views

Collision not smooth in unity3d

I am working on a project(Racing car). When it hit an object the object should be destroyed. The Object is being destroyed when it is hit, but the car stops for a moment after hitting like an obstacle....
0
votes
0answers
44 views

If my game is free, do I still need licencing? [duplicate]

Studying 3D model development at the moment, and one of my ideas is to make a game in a near future. I like cars, I like games, and if I could I would be pleased to make my own racing game. But that ...
0
votes
0answers
91 views

How can I raycast a floor in a simple raycasting engine?

I've been following the infamous lodev raycasting tutorial for a little while now but I can't make heads or tails of how the raycasting for the floor/ceiling works. He seems to be drawing the floor ...
1
vote
1answer
37 views

Aim/Scope Oscillation Algorithm

I have been struggling to find an algorithm to implement something that will make a direction oscillate within a cone constraint, in a helix-shaped fashion as in photo (it will always go back to the ...
1
vote
1answer
111 views

I don't understand code that builds 3D sphere

I'm trying to learn some lwjgl and opengl, and I was trying to make a 3d sphere etc, I found a code to do that, but I don't 100% understand the code and the math behind it and would like to get some ...
1
vote
0answers
26 views

Switch Vector 3 x,y,z Components Based on Rotation

I have a cube that moves by rotating on its edge. I want my code to also work for cuboids. The following code is what I'm using to rotate my cube: ...
1
vote
0answers
153 views

Is there a way to convert a shader code to shader graph?

I would like to ask if there is a way to convert a Coded shader into the new Shader graph, beacause i want to edit my shaders in more efficient way. Any help is appreciated.
1
vote
0answers
31 views

How can I move the camera to create a parallax effect?

Right now I am making an application which can be described as model viewer for iPad Pro. The client wants to have an orbiting camera around the object and in addition he wants to have a parallax ...
2
votes
2answers
326 views

How can I generate the smallest enclosing sphere from a mesh?

I have a polygon which is defined by a set of vertices and I need the smallest sphere encompassing the mesh. The spheres are defined by a position vector (x,y,z) and a radius. Is there an algorithm ...
1
vote
1answer
259 views

libGDX 3D rendering

I'm currently working on a FPS 3D game using libGDX. I aim to have maze-like levels (like the original Doom and Duke Nukem 3D) so I'm making a level editor with a top-down view and lets you stretch ...
0
votes
1answer
264 views

Getting the winding order of a mesh

I'm doing some topological operations on my mesh and I need to know the winding order for my mesh. Since I will be importing models from different sources I will need to know whether the winding ...
2
votes
2answers
103 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 ...
0
votes
0answers
28 views

3d animation that changes state - what's best practice

I'm a developer with a little bit of 2d game experience, but the need has come for me to do a bit of 3d work and I wanted to understand some best process. I'm primarily working with blender and ...
0
votes
2answers
23 views

Unity GameView Differrent with CameraView - Dont have 3D environments

Now on my existing project, if i create new scene, automatically i got my gameview like below : above game does not have 3d environments outlook, i'm expecting like below (my old existing scene) : ...
0
votes
1answer
32 views

3D infinite platform generation: Can't increase space between platforms. (Unity)

As seen in the images, changing the value of 'spawnZ' affects the distance between the initial platform and the first generated platform but afterwards it has no affect whatsoever. ...
0
votes
1answer
23 views

How to orient a layer to connect 2 points AND facing the camera

here is my question, which I hope will be in general interest: If you have got 2 Points in 3D space and want a plane to connect those, you can quite easily use a function similar to "lookAt" to ...
1
vote
2answers
106 views

Is clipping done before or after projection?

Is clipping applied after projection or before? How can it be applied after projection when a vertex is behind the camera and projected therefore mirrored? At this time I clip the triangle before ...
0
votes
0answers
29 views

Artificial, deliberate, per-object aliasing

I'm making a 3D game with a retro feel1 and would like to shade a single object in such a way that the edges and colours look aliased: that is to say, it should look like the spatial sample rate of ...
1
vote
0answers
124 views

Screen-space shadows?

Is there such a thing as screen-space shadows? I know that most shadow projection comes from rendering the world from the viewpoint of the light source, projecting the shadows onto a large square ...
0
votes
0answers
16 views

two 3d right square prism in collision(AABB), how to check which faces are colliding?

To calculate which faces are colliding with two cubes, I did 1- substract the center of each AABB = 3d vector distance. 2- if |x|(absolute value of x) of this vector is the biggest, this represents ...
1
vote
0answers
24 views

HTC Vive Grabbing Object Trigger

I'm doing a HTC Vive VR game with Unity. I have 3 objects, and I want to trigger different events when the player pick up different objects. Since I set the rigidbody to the controller and don't ...
0
votes
1answer
37 views

Import 3D model into Unreal Engine 4

(Sorry if I misunderstood the context of what I want, I'm currently noob in game development). I want to retrieve a 3D model from let's say Saints Row 3, and import it to Unreal Engine 4, is it ...
1
vote
2answers
98 views

What issue in the shot in unity 3D?

when the start game in the client [localserver], the bullet can't forward in the space just fixed in the Gun, here image about what I say:https://imgur.com/prWNxBx "image" network manager https://...
0
votes
0answers
25 views

Calculate 3d object size to fill all screen.

I have a 4 rectangle 3d objects with size of entire screen that make a cube together and rotate. And i have problem with responsive on different aspect ratios and rotating. A calculated the size ...
1
vote
1answer
28 views

How to find the largest bounding boxes in 3D array to cover all cells?

I'm trying to generate colliders automatically from a 3D array where each cell represents a constant-sized piece in a world (like a voxel). I'm trying to optimize the number of colliders, so I want to ...
1
vote
0answers
45 views

Unity3D: Simple animations ending with a bit of offset

I'm trying to make a simple game with some cubes rotating 90º when the user clicks on them. I've setup an empty game object, a simple cube nested, an animator, and two animations: RotateClockWise, ...
0
votes
2answers
164 views

Is it good to use 24 fps animation in 60 fps game?

Is it normal to use 24 fps animation in 60 fps game or it will hurt perfomance or create bugs?
2
votes
0answers
115 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 ...
0
votes
1answer
101 views

What is the difference between Character Modeling and Level Design?

I'm thinking of either focusing on character modeling or level design, but I'm not sure what the differences are. Do companies consider them as separate jobs because I don't know that either. My ...
0
votes
0answers
48 views

Coroutines with OnTriggerEnter in Unity

Hey Guys need your help with coroutines used with onTriggerEnter, that is, the game logic is like this when a player enters a trigger there has to appear a UI text and then that UI text has to ...
0
votes
0answers
48 views

Setup golf ball physics

I am developing a simple Golf game as shown in the below image. I am facing below issues: Even if I apply small amount of force, the ball continuous move along the grass? Grass friction is not ...
1
vote
0answers
87 views

How to use model matrix with integer coordinates

I'm trying to generate a real-sized planet with WebGL. After researching, I came to the conclusion that the best way to get around 32-bit float precision issues (since GPUs don't support double ...
0
votes
2answers
94 views

how to make image disappear in Unity 3D

Hey guys need your help with the scripting in Unity, that is, in my game there are several, say, buildings that a main character has to free from enemies and I put a kind of a logo above all those ...
0
votes
0answers
15 views

Change 3D collider dynamically

I have created one golf course as mentioned here. When the ball is over the hole, I changed the table's collider to mesh collider. When the ball lefts the hole, I set the table's collider to box ...
1
vote
1answer
182 views

Project 360 video on the inside of a iso sphere / polygon sphere

I'm creating a game in Unity. I have a iso sphere or polygon sphere, and I want to project a 360 video on the inside of the polygon sphere. I've learned thow to put a 360 video on the inside of a ...
2
votes
0answers
48 views

Weird texture applied

So I applied the baked texture (on the right side of screen shot) but it shows in this manner. What is the problem? I made the model in Blender and also the baked image. The house consists of ...
0
votes
0answers
101 views

Vive SteamVR Stereo Rendering mirror doesn't reflect lineRenderer lines steadily

I'm creating a SteamVR game in Unity. I'm using the Vive SteamVR Stereo Rendering Toolkit to create the mirror effect. I also wrote a script to render three lines between headset, and two controllers, ...
0
votes
0answers
124 views

How to each button click using 30 degree perspective camera rotate left,right,up,down direction in three.js?

I am using three js. I used PerspectiveCamera camera and orbit controller. I used left, <...
0
votes
0answers
60 views

Designing collider for a table with a hole in it

I want the help to design the collider shape for a table. This table has a hole at its center. The table mesh file itself has the hole. The collider design should be such way that the ball can fall ...
0
votes
0answers
22 views

Use eyeray trigger to speak with NPC in Unity3D for Vive

I'm developing a first-person-player game in Unity for HTC Vive. Basically, I want my NPC to speak when my player looks at him for more than a second. I didn't find any eyeray tutorials to achieve ...
0
votes
0answers
93 views

Collision physics error

I am working on a game developed using Scenekit (iOS). I am facing some strange issues with collision physics. I have added one 3D table (with a hole at its center) to the scene. I am setting physics ...
1
vote
1answer
27 views

How can I calculate the new vector of an object trying to push into (move along) the ground?

Say I have a sphere (planet). If I have object on the surface, I want to limit movement so that it can only travel in directions along or above the surface. Imagine a coin on a table. If I were to ...
0
votes
0answers
67 views

fxgl 3d rendering with movement

I'm using javafx through the FXGL game engine and I'm wondering if anyone knows how to render the 3D visuals. For instance, when I'm doing it in my other applications I use a camera along with the ...
1
vote
1answer
62 views

How to smooth rotations?

I have a semi-regularly (15fps to 60fps) sampled source of position and orientation to which I am using dead reckoning to fill in gaps. However, I would like to smooth it further to eliminate any ...
0
votes
1answer
69 views

When a quest is completed in my game, money gets re-set rather than added

I have two quests in the game I am trying to create and each of the quests gives 50 coins if the quest is completed successfully and when I finish the first quest, I am given 50 coins and all is cool! ...
0
votes
2answers
379 views

Finding the normals of the planes of a View Frustum

Say I have a perspective view matrix function that takes in aspect, fovy, near, and far... Transforming the view into a frustum. Typical OpenGL stuff, right. But say then, that I would like to find ...