Questions tagged [3d]
3D refers to three dimensional space where coordinates are represented with X, Y and Z values.
2,035
questions
0
votes
0
answers
70
views
3D AABB vs AABB discrete collision - How to choose resolution axis?
I'm working on a simple 3D collision system that only needs to handle dynamic AABB vs static AABB. It needs a sliding collision response, but it doesn't need to sweep (i.e. doesn't need continuous, ...
0
votes
0
answers
35
views
Implementing pyramidal "half-voxels" to smooth terrain (not marching cubes)
I need pointers and advice about this idea. I know next to nothing about coding, but I like to design games and come from the art side. I'm designing a survival 3d game which so far doesn't feature ...
1
vote
0
answers
126
views
How to use screen space coordinate of the mouse to set a model position in game?
I'm trying to make a movement system in my game where you click the mouse and your model moves towards where you clicked on the landscape, my understanding is the normalized screen coords go from [-1,...
0
votes
0
answers
18
views
I want to change the tint of my panoramic skybox for daylight cycle
So i am trying to create a daylight cycle, where it switches between two panoramic images. The change happens slowly one over 2 minutes and the other over 3. During this the fog and light changes ...
0
votes
1
answer
42
views
Rotating SDF rectangle with Matrix4
Hei
I'm trying to create my own UI renderer from scratch using SDF functions,
got it working pretty good without any transformations, but now I would like to add ...
0
votes
0
answers
32
views
Even after changing Default Behaviour Mode to 3D, my scene still remains in 2D. Why?
I had created a new scene, which didn't have sky and directional light.
To solve this, I created a new skybox, then added to the maincamera. But there was no difference to scene & game view.
...
0
votes
1
answer
32
views
BSP Tree Troubles and Unpredictable Results
I've been trying to fix this problem myself for ages, but I really do need help. I'm creating a BSP tree for my 3D game (baked in the map files, quake style) to replace my existing naïve collision &...
1
vote
0
answers
25
views
Get all the vertices my game object covers
I want to get all the vertices of an 3D object.
I'm using this:
...
0
votes
0
answers
44
views
How can I map out multiple decals on a reel?
So I want to map out multiple Decals on this reel. How can I map it out aesthetically and mathematically correct ?
Looking for a math god to help me with this calculation.
So far I have hardcoded the ...
0
votes
0
answers
70
views
Why is my Gouraud Shading not working correctly?
I am trying to write a 3d Renderer in C using SDL and cgml but my shading seems to be not working correctly. When rendering the teapot I get seams and when I want to render a cube I get a bright white ...
1
vote
1
answer
81
views
Octree as struct not class
I was wondering (as I could not find any implementation online),
if anyone here would have an idea of how to create an octree as a struct and not a class.
The problem is that Octrees are usually ...
0
votes
0
answers
18
views
Select polygon (and create submesh) by color of texture?
For a procedural unity mesh operation:
What is a performant way to select polygon (and create submesh) by color of texture?
Raycast hit a point on the mesh, then paint bucket search for the same ...
0
votes
0
answers
46
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 ...
3
votes
0
answers
309
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 ...
1
vote
2
answers
133
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 ...