Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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

How do I move a point in a specific direction in 3D Space?

I know how to move a point in a direction in 2D space it's like this: pointX += sin(angle) * movementSpeed; pointY += cos(angle) * movementSpeed; How do I do the ...
Earthmars643's user avatar
3 votes
0 answers
278 views

Avoiding z-fighting when reimplementing Freescape games

I need to avoid z-fighting in exactly co-planar surfaces that are too close to the other solids. I'm re-implementing the Freescape engine in ScummVM (all my code is open-source, available here), and ...
Gustavo Grieco's user avatar
1 vote
2 answers
120 views

How to add natural barriers or obstacles without impeding vision?

I am working on a natural, fairly small, grassland like environment/level. I have a few natural, minimally intrusive paths (something like this) throughout it to help guide players to the main weenies ...
FrontEnd's user avatar
  • 1,707
2 votes
2 answers
102 views

In a modern game engine, what parts of the rendering process needs to be handled by the CPU?

In older systems, the CPU calculates the final vertex positions and feeds those, along with material properties, color, lighting info and uv position for each vertex and the GPU renders the image ...
NMITIMEN's user avatar
0 votes
1 answer
52 views

How can AI tools support asset generation?

I'm a newbie in game development and looking for some advice from the community about getting game assets. I've been messing around with Luma and Meshy for making 3D models, and they've been ...
chrisy's user avatar
  • 1
0 votes
1 answer
38 views

Camera rotation in TouchDesigner

I need help on something I'm struggling with very much. I am working on a TouchDesigner patch where I have a Camera COMP with rotation on x, y and z axes. I need the formulas to convert such rotations ...
Alessio Mastrorillo's user avatar
0 votes
1 answer
93 views

Kinematic "dive bomb" motion toward a moving target

Context: infinite runner, stationary player, obstacles move toward player. I have an asteroid that currently Vector3.MoveTowards a moving target e.g. a "rubble&...
David Fox's user avatar
  • 123
2 votes
1 answer
75 views

Pin object to the end of a rope

I'm trying to make a cool simulation where a rope swings with an object attached to its end. I've set up the rope using Verlet integration and used Hooke's law to attach the object. But here's the ...
Ainsley Harriott's user avatar
0 votes
2 answers
88 views

Why does everything I've made in Unity begin to vanish when I get close to it?

I've attempted looking into this via. the Unity Manual, and even posts on the Unity forum, although I've found nothing. I have already tried checking Occlusion Culling and general Object Culling. I've ...
Lee's user avatar
  • 1
0 votes
0 answers
23 views

Dimetric Screen to World coordinates

I've got a successful projection of world coordinates to the screen, but when I try to generate a ray for screen coordinates to the world, it always generates a fixed point which is invalid. I started ...
George's user avatar
  • 101
0 votes
0 answers
126 views

invert:condition "det==0" is true error with no obvious cause

For my project I am turning my CharacterBody3D 90 degrees on the x-axis towards a wall. To achieve this I set basis.Z to the <...
NEWBIE's user avatar
  • 23
0 votes
1 answer
42 views

Understanding transform.forward vs. Converting World Space Forward to Local Space for Ray Drawing

I'm working in Unity and trying to visualize the forward direction of a GameObject. I came across two approaches: Using transform.forward: ...
Abhinay Singh Negi's user avatar
2 votes
1 answer
67 views

Hide Horizon Line with Small Terrain?

I'm drawing a sky plane with an atmosphere fragment shader in front of my terrain. It looks pretty much fine at sea level, but if you move above the sea level, the illusion is quickly broken, as you ...
Scollier's user avatar
  • 124
1 vote
1 answer
46 views

Momentum of a ball on a moving platform

I'm seeking information on how to implement something. I have a ball on a moving platform. The ball has a position and momentum. Here's a gif illustrating the situation: So the way it works is, the ...
KiraHoneybee's user avatar
0 votes
2 answers
67 views

How to rotate spaceship quaternion to face target direction with constant angular speed?

I have an enemy spaceship, and I want to make it turn to face the player with (for now) a constant angular speed. The ship's orientation is a quaternion. How do I do this? Since this is totally free ...
Tachytaenius's user avatar
0 votes
0 answers
32 views

Can't delete an edge

I'm new to Maya. I mirrored my box, combined and merged the pieces and tried to delete edges in the middle. I see in the channel box that the application registers the command, but edges won't delete. ...
Endless Evolution's user avatar
2 votes
0 answers
91 views

Calculate Up Vector of Object on Surface Given Points and Normals

Context I want to find the up vector an object would have if it were leaning on a surface, given a large amount of points on that surface and their associated surface normals (i.e., an equation that ...
natSegOS's user avatar
0 votes
1 answer
38 views

How can I convert .obj files into a 2D array of [x,y,z] coordinates and color values?

I have a cool 3D model I want to use, but for this program I'm working with, I need it in array form, with each point's coordinates and color value. I've already voxelized the model using this tool, ...
Dinuka Herath's user avatar
0 votes
0 answers
34 views

How can I create a Spotlight in a Vertex Shader?

...
mueoc mueoc's user avatar
0 votes
1 answer
70 views

How to achieve camera zoom-In effect and locking view during NPC Interaction in Unity

I am currently working on an interactive game in Unity 3D where, upon pressing the "E" key, the player character interacts with an NPC. During this interaction, I aim to implement a camera ...
Cezar P's user avatar
  • 45
1 vote
1 answer
59 views

How to call every method with a certain name from a set of classes in C#

I have the following case: I have a class called App.cs and here I have a function called Render, that runs once every frame: ...
Bogdan's user avatar
  • 111
0 votes
0 answers
33 views

Ray-Sphere Intersection Always States Ray Origin Is Point Nearest Sphere Center

I am writing a simple graphics engine using Rusts WGPU. I have a Sphere rendering at the origin of my scene like so: ...
shaneB's user avatar
  • 1
1 vote
1 answer
127 views

What specific lighting property creates "the unity look"

Nearly all unity games have specific "unity" look. It is quite obvious that it is caused by the rendering pipeline and shading, but I was wondering which specific part is responsible for ...
Tribski's user avatar
  • 155
0 votes
1 answer
65 views

Vulkan Phong shader problem

Light increases its intensity as it come closer the origin model. Vertex Shader: ...
BrutaL _'s user avatar
0 votes
1 answer
72 views

Weapon jitter when playing FPS animation

I extracted drg's auto cannon, and the gun and arms are separated models. When I try to get them into unity, something wrong happened, I tried a lot of methods. Like using script to attach, using ...
Wolf Smith's user avatar
0 votes
0 answers
55 views

Concept Shader to achieve such Toon/Graphical Novel look style

Hi to all, I have no clue how to achieve this kind of style (DallE Ai picture) by having a shader and custom textures applied to a 3D object. I see an outline (maybe sobel on normals and depth), and a ...
Matthyou's user avatar
0 votes
0 answers
41 views

Cinemachine FreeLookCam stays in "bottom rig" and won't switch to other rigs

I have an issue with Cinemachine. I set it up to follow and look at the "player," and I added the script recommended by another user: ...
UnnerGG's user avatar
11 votes
4 answers
6k views

How can I help my unpaid 2D and 3D artists improve their portfolio?

I'm part of a 20 people team working on a game for free but we've got intentions of starting a company soon. At the moment, not even the prototype is finished, but we've got 6 artists, half 2D and ...
Vcoder's user avatar
  • 121
0 votes
0 answers
29 views

Bone Indices from GLB Files

ChatGPT and I wrote a GlbImporter for a simple 3d engine written in Java. I can load any Glb model and extract and apply its diffuse textures. Extracting the bone animations is a different problem ...
Susana Hewitt's user avatar
1 vote
1 answer
476 views

Collision in space between two characterbody3d

I have a characterbody3d that acts as a spaceship that I have temporarily given movement using the keyboard and then I have a characterbody3d that acts as a player that I have placed inside the ship, ...
track3r's user avatar
  • 113
0 votes
0 answers
92 views

How to stop object with joints flying away at high velocity on collision?

I am currently making a game where the player constructs vehicles out of blocks. I am achieving this through having rigidbodies for each 'group of blocks' separated by 'function blocks' (e.g. motors, ...
Renexx's user avatar
  • 1
3 votes
0 answers
163 views

How to test for intersection of a cone with infinite camera frustum (no near/far plane)?

I have a given infinite camera frustum defined by four planes, each defined by a normal (left, right, bottom, top). From those planes we can also easily get the camera position and the view direction. ...
Lukas Kalbertodt's user avatar
0 votes
2 answers
228 views

Rotate Object Smoothly When Dragging

I want to make a 3d object rotate smoothly when being dragged in a ui in Unity. My stuff currently works but I just can’t get it to rotate smoothly, I can only make it rotate instantly which looks bad....
Zagro's user avatar
  • 1
1 vote
2 answers
211 views

Rotating 2D sprite around tilted Y axis

I am building a sprite that I want to spin along an axis. I am using SpriteKit on iOS for this, but I'm sure that the question is not really tool specific. In my case, I have a sprite such as: and I ...
PKCLsoft's user avatar
  • 225
1 vote
1 answer
187 views

Raycast suspension simulation rebounds car on landing

I'm expecting the car to land and engage the suspension to dampen the landing. The code I'm using currently has this effect: ...
Lousifr Illuminos's user avatar
0 votes
0 answers
39 views

how to get all points contained in the area of an object of any shape

how would I get points contained by objects, so that I can check for intersections of points, and I also ask myself if checking for intersections each frame would be too CPU intensive?
Nathan Francisco-Ribeiro's user avatar
0 votes
0 answers
59 views

How to change the locomotive status from moving in a spline to moving in the next spline when it meets the next rail?

I want to make a train that can move in a curve. I have downloaded a Train Spline Walker unity package. That package can generate a spline, and the train's locomotive will move in the spline with a ...
Duy Hạnh Trần's user avatar
1 vote
1 answer
675 views

Generate a fully 3D NavigationRegion/pathfinding in Godot 4

I'm making a spaceship game where the enemies and the player have the full 6 degrees of freedom, so can move forward/backwards, left/right, up/down and can also rotate in all three axes. I'm wanting ...
beyarkay's user avatar
  • 127
0 votes
2 answers
94 views

Skybox looks distorted when camera nears sides of the cube

I created a cubemap for skybox, but there were problems with displaying UV for it. when I appear in the world, everything looks fine as it should, BUT when I approach one of the sides of the cube, its ...
Roolld's user avatar
  • 1
0 votes
1 answer
391 views

glm::frustum vs glm::perspectiveFov

When I use glm::perspectiveFov(90.0f,512.0f,512.0f,1.0f,256.0f) I receive a working perspective projection with 90° in both x and y, as seen below (camera is in ...
Raildex's user avatar
  • 761
0 votes
0 answers
238 views

Implementing Camera Movement and Rotation in 3D Game Engine

Apologies in advance for any mistakes on terminology, I'm really really new to this I'm completely new to 3d (and it's maths) but as a personal exercise I'm doing my own game engine that displays a ...
MiguelP's user avatar
  • 103
0 votes
0 answers
96 views

A* implementation does not work correctly

I'm trying to implement a 3D pathfinding system based on the A* algorithm. This tutorial served as the starting point for my implementation. I tried to remake it for pathfinding in three dimensions, ...
Ilya's user avatar
  • 11
0 votes
1 answer
136 views

Perspective projection not working as intended

I copied a perspective projection matrix from here (https://jsantell.com/3d-projection/) and applied it to my vertices. It looks ok but without depth. Rotation matrices also work. When I try to divide ...
Zoler1337's user avatar
2 votes
1 answer
140 views

Where is the illusion of a moving camera perspective coming from in this rotatable cube model?

Just for fun, I had been attempting to build a model cube in vanilla JS that can be moved and/or rotated. What I was going for was the simplest possible representation (so, no adjusting for ...
Quack E. Duck's user avatar
0 votes
1 answer
43 views

How important is a Flip-Y Axis setting?

I noticed many open-world games have a setting called Flip Y-Axis. I need to know the significance of adding a Flip Y-Axis setting, that makes it so that if you move the mouse down the camera moves up ...
user1345541's user avatar
0 votes
1 answer
76 views

How do i put the enemy in an idle state without breaking everything

very simple logic but my brain is fried for now, so I don't get how to ad the option for an enemy to sometimes just go idle without breaking the entire animation logic... i tried adding a randomized ...
Cei's user avatar
  • 863
0 votes
1 answer
140 views

lag spikes and low fps

fighting up to two dozen enemies at once the game runs perfeclty smooth... 30 enemies and the game starts to go from the 300-480 fps down to 30-180.... 60 enemies and all attacking at once...the game ...
Cei's user avatar
  • 863
0 votes
1 answer
204 views

floating damage text in 3D

followed this tutorial : https://www.youtube.com/watch?v=UlvBqz8bhCo the guy is working mostly in 2D, i tried to apply the same method but I'm hating working with UI in godot, everytime I seem to get ...
Cei's user avatar
  • 863
0 votes
0 answers
51 views

Scared enemies run into walls

I set up a basic pyramid shaped enemy kinematic body that runs away from the player when its health is too low and runs towards the player if the enemy has enough health. The enemy also turns to face ...
Cei's user avatar
  • 863
1 vote
1 answer
265 views

now how do I go about making a skill bar and a tool bar?

TLDR QUESTION the main thing I don't understand how do i make it so that when i press a keybind i activate not a skill but a slot in the skillbar and the slot in the skillbar activates the skill extra ...
Cei's user avatar
  • 863

1
2 3 4 5
41