Questions tagged [3d]
3D refers to three dimensional space where coordinates are represented with X, Y and Z values.
2,006
questions
0
votes
0
answers
19
views
I have a question about 3D in Java. How to upload and display non-skeletal animation? [closed]
I have a question about 3D in Java. I need a program to show a 3D model, which is a panel with buttons, a screen and toggle switches. When you click on a button or toggle switch, the corresponding ...
0
votes
1
answer
44
views
Vulkan Phong shader problem
Light increases its intensity as it come closer the origin model.
Vertex Shader:
...
0
votes
1
answer
46
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 ...
0
votes
0
answers
35
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 ...
0
votes
0
answers
17
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:
...
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 ...
0
votes
0
answers
22
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 ...
1
vote
1
answer
252
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, ...
0
votes
0
answers
61
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, ...
3
votes
0
answers
71
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. ...
0
votes
2
answers
109
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....
1
vote
2
answers
121
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 ...
1
vote
1
answer
118
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:
...
0
votes
0
answers
33
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?
0
votes
0
answers
45
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 ...
1
vote
1
answer
345
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 ...
0
votes
2
answers
62
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 ...
0
votes
1
answer
100
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 ...
0
votes
0
answers
105
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 ...
0
votes
0
answers
77
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, ...
0
votes
1
answer
85
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 ...
2
votes
1
answer
116
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 ...
0
votes
1
answer
39
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 ...
0
votes
1
answer
63
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 ...
0
votes
1
answer
91
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 ...
0
votes
1
answer
98
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 ...
0
votes
0
answers
41
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 ...
1
vote
1
answer
139
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 ...
0
votes
0
answers
31
views
How do i put an entities x,y and z coordinates to a variable(?) in Blitz3D?
I'm making a TEST 3d platformer where the camera follows the player from above. Normally I would make the camera move at the same time when the player moved, for example:
...
3
votes
1
answer
486
views
How can I map a texture around a sphere without a seam?
I am attempting to wrap a texture around a sphere without any warping using Unity's Shader Graph. I have been following this StackExchange answer, and have semi-successfully converted their shader ...
7
votes
2
answers
5k
views
Can I just convert everything in godot to C#
Does godot 3.5.1 support C# fully ?
Like does C# for godot have all the same methods that GDscript has?
I'm asking because I remember trying to learn gamedev a long time ago with C++, I was overwelmed ...
1
vote
1
answer
128
views
teleportation...how to not teleport inside walls
when the player uses the teleportation skill, he is instantly teleported X distance in the direction of movement so front, back, left and right depending in which direction the player wants to go.
the ...
0
votes
1
answer
51
views
How to carry other players and NPCs and Objects?
In my game you don't have inventory slots, you can hold two things if your player has 2 arms and so on, you can hold more things if you equip a bags on your belt or backpacks... and you can carry even ...
0
votes
1
answer
46
views
how to move a mesh to be the child of another node?
if i import an item directly unto a bone attachment for some reason it becomes so small it is invisible even tho the bone attachment has a scale of 1 to 1 and was never re-sized
also the rotation is ...
0
votes
1
answer
89
views
how to load all players once?
In tera online when you enter a battleground or go into a city with hub with hundreds of players all in one place, The game has to download the faces, hairstyles... armors and weapons of every single ...
0
votes
1
answer
154
views
simplest combat system i can do with code?
This is my actual set up, and for the moment I'm using this tutorial : https://www.youtube.com/watch?v=Mek4XtMhcMs&t=4s
which is one of a kind, never found any other guide on how to make 3D melee ...
1
vote
1
answer
252
views
How to add weapon trail to sword swings?
I want to add the translucent blue swish following the sword when it is swung, but I don't even know what to call it, so I can't search it.
1
vote
1
answer
54
views
Minimap doesn't see the terrain
The minimap does follow the player movement and does everything a minimap should be able to do... except it doesn't see the land...only the sea even tho land and sea are on the same maks level
Camera ...
1
vote
1
answer
116
views
Rigid bodies sliding off slopes
Kinematic bodies have a simple class that makes the player not slide on slopes, but for rigid bodies? I tried using rays and areas, either to lock the player on an axis or to just straight up disable ...
2
votes
1
answer
2k
views
How to increase Godot render distance?
I've tried changing the viewport far distance under view > settings, from 500 to 500 000 and nothing changes in game. The player can only see roughly 90-120 ...
0
votes
1
answer
364
views
CharacterBody3D gravity isn't working, and player won't touch the floor
I'm trying to create an isometric game with Diablo-like control, but gravity isn't working. The CharacterBody3D won't touch the floor, the print(is_on_floor()) always results false.
Here's my code for ...
0
votes
2
answers
58
views
Arrows that deal more damage to targets moving towards them and less to targets moving away
In real life if you shoot an arrow towards a target that is running towards you.
The targets velocity increases the damage that arrow's velocity would cause.
If the target is moving away from the ...
0
votes
0
answers
52
views
creating an open world island: Am I doing this correctly?
replicating minecraft but with better graphics is a pain (even very simple things using minecraft like chunks lag incredibly), so I'm just creating an open world that can be destroyed using some ...
0
votes
1
answer
441
views
How to set attack speed
I was checking the new animation with that Mixamo right I made for combo attacks at various speeds.... and I realized I never thought about how implement it in-game.
Is there a simple, fast and ...
0
votes
0
answers
71
views
Sequential Impulses in 3D with friction
I'm currently writing a physics simulation in 3D, that uses sequential impulses. I've managed to implement normal impulses, but I can't get friction impulses to work. As I understand I first get two ...
0
votes
1
answer
141
views
GPU and CPU mode, how do games do that?
I'm playing a lot of older games lately to learn new stuff, mostly private servers.
A game called metin-2 has the option to use mostly CPU or mostly GPU... in GPU mode the game runs faster and lighter ...
1
vote
2
answers
97
views
In a 3D projection, how to find 'w' for every y point on the screen
I have a standard 3D rendering pipeline. Let's say I have a camera looking down at a flat plane that represents the floor. (in my game, z = height, so this is a plane where z == 0), and for ...
3
votes
0
answers
74
views
Smooth self shadow on dense foliage
I don't know how to achieve or research smooth lighting on foliage, like in this screenshot of theHunter: Call of the Wild.
The grass is translucent, but blocks light smoothly when it's tall and ...
0
votes
1
answer
55
views
mix and matching hats and hairstyles
I making a character creation scene, I learned how armors work and how to cut the players in pieces to mix and match everything.... but matching hair styles with hats is incredibly tedious... since ...
0
votes
0
answers
58
views
How to mod position of camera when crouching in 7 Days To Die?
I am talking about the first person camera. It is not glued at the player's head position; it moves away a bit. It seems linked to the 3D model and not to the capsule collider that shrinks when we ...