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
64 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
36 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
249 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
47 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
151 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
71 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
61 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
30 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
73 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
67 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
598 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
2k 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
200 views

How does lookAt matrix math work?

Can someone provide me an explanation of how the lookAt matrix works? ...
3
votes
2answers
848 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
319 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
55 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
79 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
67 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
565 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
732 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
6k 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
1answer
495 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
42 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
59 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
vote
1answer
131 views

How to align a 3D object with four points?

I'm sure there's a better way to articulate this question, but I lack the vocabulary. Imagine a skateboard. As it rolls straight down a road, the "deck" is aligned with the road, just offset a few ...
0
votes
1answer
68 views

How can I match the delta rotations of two objects?

Here is the code I'm starting from: ...
0
votes
1answer
79 views

How to calculate the transformation such that two points with different position, orientation and origins line up?

Let's say you have two different 3D Objects which both contain a node that is off center (not at the origin) and have an orientation. How do you calculate the transform for one of the object so that ...
1
vote
0answers
62 views

How can I apply my camera to all graphics objects?

Is there a way to have the camera be applied to all objects? Can you have the camera effect objects that where made with glVertex3f(); This is the fourth time I ...
0
votes
0answers
32 views

Workflow to have character look like : Tokyo ghoul:re [Call to exist]

I am looking into a lot of different software and now that I got my head around most of them, I was asking mysel if someone knew what has been used to create the characters in the game I mentionned. ...
0
votes
0answers
29 views

Unexpected changes in Ai population

I've been trying to do my first evolution script. I want my population to learn to walk in 3d space. I am getting issues with the movements and the mutation. In my script, they evolve based on certain ...
0
votes
1answer
28 views

Unity3D in WebGL the Player doesn't have animations

I using Unity 2019.2.14f1 to create a simple 3D game. I want to build the project for WebGL, but, even though the player has animations on Unity, in the web the Player doesn't have animations even ...
0
votes
1answer
396 views

Downsides to automatic UV unwrapping

I have seen several software packages that offer auto UV unwrapping as an option. My question is why would you ever manually UV unwrap if there is an automated tool to do so? Are there any ...
0
votes
0answers
26 views

Unwanted rotations with transform.RotateAround

I didn't tough i would have issues with this, but unfortunatly I did. I have a Character (which is more a pile of cube) with a body, a empty GameObject for each leg attached to the body with a join ...
1
vote
2answers
925 views

Can I use the 2d physics engine in a 3d game (or viceversa) in Unity?

This is entirely for performance. The 2D physics are less expensive, but I require 3D for some scenes. I never need both at the same time. I know you can have 2D with an orthographic perspective in a ...
0
votes
0answers
24 views

Prefabs x coordinate of position is getting mysteriously updated after destroying and reinstantiating them

Project brief I am trying to make a gamified version of to-do where the player enters tasks and is rewarded with points and a tree grows with the progress. What I am trying to do I have a list of ...
1
vote
0answers
281 views

How to have a point light with no falloff in Unity 3D?

Does anyone know of a good strategy to make point lights with no falloff, eg. anything in the radius of the light will be 100% illumination while anything outside the radius will be 0% illumination. ...
0
votes
1answer
62 views

TMP Square Characters when adding Chinese

I'm trying to implement Chinese language in my app. But I'm seeing nothing but squares. I've tried to create from file and hex. They can't be added. For example, there are 3000 letters but only 17 are ...
0
votes
0answers
58 views

Unity 3D Image Distortion

I'm trying to make a 3D tour for cardboard. I'm putting my 3d image inside a sphere with a shader but I've noticed this problem. And the middle of the image is looking kinda wavey and distorted.
0
votes
0answers
64 views

What is a good algorithm for generating a linear regression of positions in 3D space? (for getting the direction of a thrown object in VR)

I'm trying to get throwing to feel right in my VR game. I don't plan on actually using physics to do this; my idea is to accurately determine the lateral direction of the throw, then move the object ...
1
vote
1answer
782 views

How to handle forward/backward movement in an oblique top-down view

I'm making a pseudo-2D top-down game, where my assets are actually 3d but I use an orthographic projection to introduce more depth. I saw a picture of how the game "Enter the Gungeon" was actually ...
2
votes
1answer
1k views

3D line segment AABB collision, with hit normal?

I'm embarrassed I can't find this, but I'm wanting to detect intersection with a 3D line segment (not an infinite ray) with a 3D AABB, the AABB being defined as two Vec3f's which represent the Min and ...
0
votes
2answers
850 views

Creating 3D water on Unity for iOS/Android

I want to render an ocean where players can change waves’ amplitude in real-time. Initially, I would render rolling waves (see picture). As the amplitude increases, I need to transition the rolling ...
1
vote
1answer
96 views

Can I put real monuments like white house, statue of liberty in my open world game? [duplicate]

I'm currently working on open world game. But I am confused about one thing that, is it ok if I put real monuments and sculptures like white house, statue of liberty etc. in my game? Please help if ...
0
votes
0answers
79 views

RayCasting picture noise render method

I'm creating a RayCasting tutorial on github (click here to access it) and I'm following a lot of tutorials, implementations and other render methods in the web. One game made with it is the "Prelude ...
1
vote
1answer
195 views

To split or not to split large 3D objects?

I have a fairly simple question for which I'm seeking guidance: Should large 3D objects be splitted into smaller ones? By wide, I mean an object that would be as wide as a game level is, below is ...
0
votes
1answer
252 views

How do I implement the parallax effect in 3D graphics?

With a perspective projection matrix and camera system already in place, I have a scene with a small jet fighter flying high over a wide and deep canyon with many cliffs and rocky surfaces; these are ...

1
3 4
5
6 7
39