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
0answers
29 views

3D visual effects on videos

I'm trying to get some hands-on experience with 3D visual effects on videos. Similar to those AR apps, I want to add a 3D model with effects, say a dragon, to a video. Something like this famous demo: ...
0
votes
1answer
406 views

Change Unity 3d viewport shortcuts to match Blender?

The shortcuts in Unity are more similar to Maya (Alt+Middle for 3d orientation, LeftClick select, etc). I've looked into Edit -> Shortcuts but couldnt find them. Is there any way to do this?
0
votes
1answer
31 views

An error comes up in console when trying to enter play mode in unity

Hay folks, i pray for everyone's wellbeing. I want to ask a question that whenever i enter playmode in unity, error message is displayed even though there is nothing in the console. This doesn't get ...
0
votes
1answer
521 views

Unity3D - Despite using Time.deltaTime, my camera and player move faster at higher framerates

I'm pretty new to c# and Unity so I wouldn't be surprised if I had made some stupid mistakes, but as far as I know, I don't think I misused Time.deltaTime. Any help would be greatly appreciated. ...
1
vote
1answer
129 views

How to sort polygons without a depth buffer

Please help me getting understanding how did they sort polygons in old games from the eighties. They did not use z-buffer or anything like this, thats for sure. Please look at the screenshot. How ...
0
votes
0answers
92 views

Saving mesh and instance data on the GPU?

I am trying to optimize drawing a large number of voxels by using GPU instancing in Unity. I am currently using Graphics.DrawMeshInstanced in a script Update(), but it occurred to me that I am still ...
0
votes
2answers
122 views

Can a game world be made using a 3D editor?

I'm just wondering it it's possible to create and render a game world in a 3D modelling program, such as Blender, with landscapes and trees and such, and then import it into a game engine? Is that how ...
0
votes
1answer
69 views

Animation via AnimatorController created in script does not play in Unity

I have created an empty GameObject and assigned it a script: Main.cs. ...
0
votes
1answer
38 views

Rotating projectile in direction it is moving

I am using a parabola curve to launch my arrows: ...
3
votes
0answers
44 views

How to find the smallest distance between two 4-sided objects in 3D space?

I was wondering if there is a way to calculate the smallest distance between two 4-sided objects in space. In this specific scenario, the only information I know about both of them are the 4 points ...
1
vote
0answers
47 views

What's wrong with my normal map implementation?

I'm trying to write my own 3D engine from scratch in C, and right now it can render spheres, but I wasn't able to perfectly implement norl maps. All of the resources I've found online about normal ...
0
votes
1answer
105 views

Cube doesn't render as expected when rotated (representing 3D in 2D)

Cube. When I rotate the object around OZ moves to the left. Rotation around OX - the cube rises up. Rotation around the OY-the cube is compressed. The function I use for rotation: ...
1
vote
1answer
62 views

Calculate UV sphere vertices (altitude)

There is an fantastic answer by DMGregory here where he explains how to calculate and generate the vertices of an UV Sphere: OpenGL calculate UV sphere vertices Based on his code, how can we change ...
0
votes
0answers
286 views

Can I set the unity camera to have the same position in a real world?

I have a problem about setting the camera in the unity to have the same extrinsic parameters as my real world camera to the origin. So let's me describe my problem step by step. I have a camera in a ...
4
votes
3answers
1k views

How does 3D mesh morphing work?

In the Sims 4, you can drag to reshape the face and body when you create a sim. You can see a similar system implemented in this Body Visualizer. How can I implement similar geometry morphing in my ...
0
votes
0answers
27 views

How can I draw filled triangles with the illusion of color?

So I have used the code of this website for drawing filled triangles. But I would like to improve my game by adding the illusion of color. Well sadly I made my game for the monochrome Nokia 5110 ...
0
votes
1answer
157 views

How to create pixel graphics in 3D?

I stumbled across this game on itch.io: Backland After trying to find information on how to accomplish the same graphics, I found this tutorial: Youtube Video How can I accomplish this 3-dimensional, ...
0
votes
1answer
36 views

3d points to rotation matrix of orientation

I have a vector in a 3D view, defined by a point p1(x1, y1, z1) and a rotation r1(x1, y1, z1). I can get a direction and a yaw. I need that vector to point another point p2 (x2, y2, z2). So I need a ...
0
votes
0answers
127 views

Is making an acceptable 3D engine possible using only SDL_* functions?

I've been watching Javidx9's 3D engine series and I decided to start making it with SDL because it was something I had heard of and seemed simple enough. I'm not going to implement too complex ...
0
votes
1answer
2k views

What is the best way to create a square grid in Unity?

So I need to create a square grid like the one below. And be able to click on a square, the square you chose then is filled with a different color as well as all the squares right and below the square ...
2
votes
0answers
57 views

Avoid shaking artifacts in 3D continuous collision detection

I am programming a 3D game physics engine that uses continuous collision detection to avoid my objects from being able to "tunnel" through the geometry. Here is basically how it works: Execute a ...
0
votes
0answers
57 views

Implementing W-buffering in modern GPU

I was trying to figure out how perspective projection matrix works, and somehow I ended up in this rabbit hole of depth buffer precision. It seems to be some interest in a depth buffer where the ...
0
votes
1answer
35 views

Algoritm for scaling an 3D model with fixed edges

I am looking for an algorithm that allows me to scale a 3D model with certain fixed edges. For example scaling up a window should have the frame remain a fixed width while the length of the frame ...
3
votes
1answer
212 views

Why when I do an isometric projection do I get a "dimmetric" view?

First of all I would like to apologize for my poor English. It is not my native language. I have some doubts about isometric projection that perhaps I do not know how to describe them and I would ...
0
votes
1answer
42 views

Mathf.Round returning wrong values

I want to check if the Y position is changing or not for the player and the enemy. If it has changed in the frame I want it to return true and if it didn't I want ...
0
votes
1answer
123 views

Make enemy follow player intelligently

I was trying to make a script to make my enemy follow my player intelligently (but not too much) and I want to know if there was a better way to do it (of course there is but I wanted to find a way ...
0
votes
0answers
41 views

Unity: Stop Rigidbody from moving in one direction [duplicate]

I move a rigidbody by moving the mouse. I want my rigidbody to stop moving in the x direction when it exceeds a certain range. To do that I set the x velocity to 0. If I log the velocity, the x-value ...
1
vote
0answers
21 views

Programmatically create a trigger within abnormally shaped room

So I'm trying to create a trigger in each of my rooms. These rooms can be created by players. Basically, I need to know all the objects in a room. These rooms can be shaped in weird and wonderful ways....
1
vote
1answer
40 views

What does 'AlwaysResetOnEntry' do, and where would it be used?

In Unreal Animation Blueprints, each state has an option for AlwaysResetOnEntry. The tooltip text for this is: ...
0
votes
0answers
28 views

How to code simple Goomba-like AI for 3D Platformer?

I'm making a 3D Platformer and have an enemy similar to a Goomba in terms of AI. How do I get the enemy to walk around and then follow the player when they're in range?
0
votes
1answer
67 views

AI does not stop walking like it is supposed to, instead spins in place and lags game

I've got this very simple enemy AI that follows the player and is supposed to stop and shoot at the player when he enters a trigger, however it doesn't seem to do that it doesn't stop or shoot. This ...
1
vote
1answer
65 views

Unprojeting a line on the screen

I have a line connecting two points of my model. I see a projection of this line on my screen and a want to map a point of that projection to the corresponding point in my model PoV. Let ...
1
vote
1answer
478 views

Perspective projection and ultrawide resolution

The problem I'm going to describe did not occur to me until very recently, when I got a super ultra-wide monitor (32:9 aspect ratio) and tried playing videogames on it. TL;DR: the scenery is ...
0
votes
3answers
1k views

Move with velocity based on rotation

So I have a simple script to move a character. The problem is that no matter where i'm looking at (my y rotation) it always makes me go the direction if I try to go forward, but I want it to go toward ...
0
votes
0answers
69 views

OpenGL obj loader doesn't work

I made my own obj loader,i tried other's obj loader,but nothing works. Here's my obj loader: ...
0
votes
2answers
158 views

How does lookAt matrix math work?

Can someone provide me an explanation of how the lookAt matrix works? ...
3
votes
2answers
704 views

Why isn't more culling being done on the GPU?

I'm interested in game development and 3D graphics; however, I'm not very experienced, so I apologize in advance if this comes across as ignorant or overly general. The impression I get is that quite ...
1
vote
2answers
247 views

How to calculate plane corner vertices from plane origin point and plane normal?

I have an origin point, and normal vector of a 3D plane. I want to calculate 4 vertices to use as the corners of a 2 triangle quad to render the plane.
0
votes
1answer
53 views

How can I modify a static humanoid asset?

I am new to Unity 3D. I bought an asset from the Unity Asset Store recently. It came in a "walking" stance. I was wondering if it was possible to modify this stance to become fully supine; so can I ...
0
votes
1answer
1k views

Draw onto an object's texture based on a raycast hit position in world space

I am trying to get the world position of a pixel inside a fragmented shader. Let me explain. I have followed a tutorial for a fragmented shader that let's me paint on objects. Right now it works ...
2
votes
1answer
76 views

How to make shadows softer as distance increases?

I'm trying to make shadows become more blurry as the distance between the caster and receiver, so they look a little more realistic. What method can I use to achieve this?
1
vote
1answer
65 views

How do i put apps on sleep while my game is running in an Android Device

How do i put apps on sleep while my game is running in an Android Device. I m a Game Developer (intermediate Level). And i Wanna know the Can i put apps of phone running in background to sleep to free ...
0
votes
0answers
418 views

Camera looking around with mouse - Unity, C#

I am building a script in C# for camera logic in Unity, the camera is supposed to follow the player (a 3rd person character) around and the user should be able to look around using the mouse, so far ...
0
votes
3answers
634 views

How to switch between multiple cameras in a Unity Scene, Silent Hill-style

I have 3 cameras in a practice scene that I want to switch between. Currently, I have a meshless cube acting as a trigger with the following script ...
1
vote
1answer
2k views

What are spline input keys?

There isn't a really adequate explanation of these anywhere on the internet, so I thought I'd ask this question here. What are spline input keys in Unreal? How are they represented in Unreal? Also: ...
11
votes
2answers
5k views

Is it a good option to simultaneously work on a game and a game engine? [closed]

I'm considering this, now I work on 3d game but I want also to make in slow tempo, iteratively a game engine is it a good choice? The game what I working on is with non custom engine (Unity, Unreal ...
0
votes
0answers
73 views

Randomly generated maze in Unity not generating nor throwing errors

First and foremost I am very new to Unity, my issue may be attributed to my incompetence however it is still an issue nonetheless. My goal was to create a randomly generated non-euclidean maze. Since ...
0
votes
1answer
393 views

Can a GameObject be both 2D and 3D?

In all Unity games I saw so far, every object is either 2D (with RigidBody2D and Collider2D components), or 3D (with RigidBody and Collider components). This makes sense, but I wonder if there is any ...
1
vote
0answers
36 views

Real-time 3D Scene-reconstruction into Physics Engine

I am trying to create a game where the user scans the room using RGBD camera and reconstructs 3D scene. This scene would be integrated into physics engine, after an object recognition algorithm tells ...
2
votes
0answers
55 views

Compute spheres 2D speeds in perspective projected animations

I created two animations that consist of spheres moving in a perspective projected 3D space, which means that the size and speed of the spheres vary with the distance: they increase when they are ...

1 2 3
4
5
38