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
1
vote
0answers
19 views

How to solve for the angle of a axis/angle rotation that gets me closest to a specific orientation

I’m using a 3D affine transform (a 4x4 matrix of floats) to represent a combination of translations and rotations in 3D space doing a sort of 3D turtle graphics kind of thing. From this state I know ...
0
votes
0answers
14 views

Right Axis warps on 3D planet's equator

I am using JavaScript and WebGL for a game which rotates a player around a 3D planet. The problem is that the matrix's right axis vector starts locking up and spinning in the wrong direction around ...
0
votes
1answer
49 views

Why does today's "Metaverse" look equally or even worse than the 1990s 3D chat worlds? [closed]

In late 1990s and early 2000, I tried out "Active Worlds" and more. They let me register an account and then walk around in a vast 3D world and chat with people/avatars. It was surreal and ...
0
votes
0answers
23 views

How to create visibility/sight effects in 3D

In a typical 2D game with a top-down perspective or similar, it is common to create some sort of shadow-like visibility effect. This is demonstrated here: https://ncase.me/sight-and-light/ . The ...
1
vote
1answer
205 views

Techniques to make 3D models to look like oil paintings

I intend to develop a fantasy 3D game focused on warships, with a look similar to oil paintings. The reasoning behind this decision is that the art style would allow for a sense of wonder and ...
2
votes
1answer
29 views

How to implement cylindrical projection?

This question (and particularly, its answer) talked about how traditional, planar projection matches most monitors... except when it doesn't. Assuming I'm a glutton for punishment, and really, really ...
0
votes
0answers
25 views

How to unlock a level using a textbox question (with one correct answer)?

I'm currently working on a 3D Unity game that has 3 levels, but each level has to be unlocked by answering a question to walk through the door leading to the next level. I have a next level trigger ...
0
votes
0answers
16 views

Is it possible to get another public variable from another script?

I am making it so that if you click a box, it teleports over an object and that objcet detects the collision. The characters dialog script is inside of a character I made. I also have a boolean value ...
0
votes
1answer
46 views

Given a 3D grid-based map system, how to find the middle point of an edge of the mesh of a tile on the grid

I have a grid-based map system. The grid is aligned to the X and Z axes. The tiles on said map are 3-dimensional, but flat, and can be located anywhere on the Y-axis. If I need to get a Vector3 of ...
0
votes
1answer
24 views

3D Asset Creation. "Joining" parts VS Hidden/Redundant Faces?

I am trying to create a Laser Cannon in 3D art program Maya. It is for use in a game made in Unreal Engine. I have this same 'problem' with many aspects of my 3D CG Art but this is just one simple ...
0
votes
1answer
41 views

Seams between tiled cube unity

Hello i'm generating voxel map but seams are appearing between tile ONLY in camera mode, in the editor everything work fine. Here in the editor camera: Here the player camera: So i guess it has ...
4
votes
0answers
63 views

How inefficient is my ray-box-intersection algorithm?

One of the most critical parts of my raytracer is the calculation of a collision between ray-box which is done following way: ...
0
votes
0answers
12 views

How would I calculate the standard 3X3 rotation matrices for unity? (for each axis)

So I've been working with the standard right handed ijk coordinates system where K (the z-axis) is up. If you want to rotate a vector in ijk you can use these rotation matrices to rotate the vector ...
0
votes
1answer
57 views

What if 3D model voxels/polygons where limited like pixels?

First, let me clarify that I don't understand much about programming, neither about 3D modelling. And I couldn't think or find a better place to ask this, but I hope I don't make too many mistaken ...
-1
votes
1answer
84 views

Drawback of painters algorithm:

We know that to scan convert any polygon first we need to pass any 4 tests of Painter's algorithm. Suppose I have two polygon S1 and S2, which order is S1->S2.we see that all 4 tests are failed. ...
0
votes
1answer
94 views

How to visualize angle of projection in Oblique Parallel Projection?

We know that in Oblique Parallel Projection Point (x,y,z) is projected to position (x_p,y_p) on the view plane.Projector (oblique) from (x,y,z) to (x_p,y_p) makes an angle alpha. with the line (L) on ...
1
vote
0answers
50 views

Rendering 3D items in a GUI in Unreal Engine

I have various buildable 3D items in my game like so: These are just a few, but there will eventually be hundreds of them. The models of each of these items are displayed to the user as part of a ...
-1
votes
2answers
110 views

3D image projected to 2D image

We know real world images are 3D.when we projects image from real world this image projects into 2D image where Z component is constant or zero. But when capture the below image which seems to 3D(z ...
0
votes
1answer
70 views

Painter's theorem inside and outside test [closed]

I have read from Hearn and Baker computer graphics book. I read the test#2 painter's theorem which image is given below. This image showing surface S is completely behind the surface S', by checking ...
0
votes
0answers
34 views

Avoid clipping objects when looking at them close-up in the Scene view

I am making a game in Unity3D, but whenever I get about 5 meters close to an object, the camera acts like I am right by it and does not render part of the screen. Here is a screenshot: This is really ...
0
votes
2answers
41 views

How would I go about preparing my skybox for a z-up world orientation?

**Solved!** Special thanks to comments from Maximus Minimus and Jherico. Scroll down for the solution made in the shader. I am working on a vulkan renderer in rust using the ash crate. I would like to ...
0
votes
0answers
55 views

Why does this work but this doesn't even though they are the same thing?

In my game I am trying to trigger the death animation but it doesn't work when I use anim.SetBool("isDead", true); however when I use ...
0
votes
1answer
28 views

Calculating world position with parent and child transform with translation and rotation

I have two Quaternion transforms, and a viewmatrix. These are custom transforms made by Dice, and I'm working on some custom modding for an older version of Battlefield. Now, I don't have the entire ...
0
votes
0answers
93 views

Professional way to make Isometric 3D Tilemaps for an ARPG in Unity3D?

I'm was working on a top-down ARPG and now I'd like to switch to 3D Isometric. I know that I can place prefabs on Unity's tilemaps, and also have an X-Z grid, etc, but are they designed to handle ...
0
votes
1answer
41 views

How Can I Order The Scores List By Newest Added? Unity C#

I have 5 scripts to make the scoreboard. But I don't know how to order the list (the scores which are stores in a list) by newest added. Can someone please help me? Thanks :) First Script: ...
1
vote
2answers
55 views

Applying friction separately to forward and side directions

I'm making a movement-based, first-person 3D game where the player should be able to gain a lot of horizontal speed over time with WASD, but also will stop due to friction very quickly the moment they ...
1
vote
2answers
161 views

How would I actually implement A* pathfinding in a 3D world?

I have been trying to implement pathfinding in Minecraft for a while. Everything is in blocks, so this shouldn't be too difficult. I have gone through a lot of different posts and articles but I haven'...
0
votes
1answer
25 views

Compass objective indicator points towards wrong direction

I have a compass that is pointing towards player forward direction. ...
1
vote
0answers
42 views

How to project 3D meshes onto a 2D plane producing a 2D polygon silhouette?

I would like to project a number of separate 3D meshes onto a 2D plane and create a 2D polygon representing the outline of all the meshes. I would also like to to create multiple 2D polygons if the ...
-3
votes
1answer
61 views

Can anyone explain this code? C# Unity [closed]

Can someone explain this code to me? ...
0
votes
1answer
43 views

Spawn crops/3D game objects randomly on a mesh/plane surface

I am stuck on a problem that might be quite simple yet it's getting on my nerves. I want to spawn crops on different plane shapes like in the attached screenshot. So far my progress is that I am able ...
0
votes
0answers
70 views

How do I change the color of the surface where the collided object overlaps in unity?

How do I change the color of the surface where the collided object overlaps in unity? Let's take the board of directors as an example. I want to change the color of the surface superimposed on the ...
0
votes
0answers
22 views

Need an approach for mounting turrets

I'm working on a game with the ability to customize the type of turrets on your starship. My question is how would I go about positioning the turret mesh at the hardpoint locations. Do I need to ...
1
vote
2answers
130 views

I'm following a tutorial but I don't get the same result; why are the raytraced shadows not working?

I followed this tutorial called "Ray Tracing in One Weekend" by Peter Shirley. And I implemented the java version of it for studying Ray Tracing. Everything was all right until Diffuse ...
-1
votes
1answer
53 views

How to make environment art like the building interiors in Digimon World 3 [closed]

I'm wondering how to create art like this (the map, not the characters), is this 2D or 3D?
0
votes
0answers
20 views

how can I recreate the transitions in Xybots when the character turns or moves?

Xybots is a pseudo FPS game akin to Dungeon Master on the Amiga. Instead of smooth movement in any direction in a game like Doom, your player is on a grid and can move only in four directions, and can ...
0
votes
1answer
31 views

Move between two points at a constant speed in LWJGL

I've been making a game engine in lwjgl and I have been trying to get an ai to move from one point to another. I used a lerp method but the speed is dependent on the distance between the two points, ...
0
votes
0answers
42 views

How to make a select box with a rotatable camera in unity?

How to make a select box with a rotatable camera in unity? this is my camera The way the camera rotates is to rotate the main camera, which is a child object from the parent object, around the origin....
-1
votes
1answer
44 views

Rotating an object around a rotating object

Im trying to build a model for the solar system in OpenGl, and I got the planets to move around the sun, but can't get the satellites to move around their planet. I can't share my code since this an ...
1
vote
1answer
70 views

Player rotation recalculation causes jittering on edges

When my player walks around a circular planet everything works well, but when my planet is a shape like a cube or a dodecahedron, even with smoothed edges, my character jitters if I walk slowly on the ...
1
vote
1answer
37 views

Make a rigidbody walk around a planet

I have my character with a rigidbody and attracted by the planet. I am trying to move it with its velocity. I tried this script: ...
0
votes
1answer
30 views

Character rotation jitters when looking around

I want my character to walk around sphere like a planet, so in my script I rotate it according to the normal of a raycast and I also rotate my character on the Y axis when I look around with the mouse....
0
votes
1answer
147 views

How to calculate the shadow bounding box with a directional light

I'm trying to implement a directional light in my C++ / OpenGL engine, but I struggle to calculate the shadow bounding box (i.e the shadow frustum). The bounding box has to encompass the main frustum ...
0
votes
1answer
45 views

3D AxisAngle spins at 180 degrees

I am using the Axis Angle technique on objects so that they are oriented away from a planet surface like in Super Mario Galaxy. I am using two unit vectors [0,1,0] and a normal vector from the planet. ...
1
vote
0answers
54 views

Raycasting floor texture distortion problem

I'm currently working on a raycaster in construct 2. The FOV is 90 degrees with a screen resolution of 199 x 174. I used this tutorial when it comes to the floor raycasting. The floors seem to render ...
0
votes
0answers
24 views

how to change a 3D character and other assets in-game

I want to make a game in which the 3D character is customizable. For example, there will be a selection of clothes that the character can wear, and when the player clicks on one of them, the character ...
0
votes
0answers
34 views

Obj file vertex coordinates to new coordinate space

I am trying to convert the vertex positions in my obj file to a new coordinate system. I understand I need to multiply each vertex with the transformation matrix, however I am trying to figure out the ...
0
votes
0answers
27 views

Problem with rotation to normal for FPP character controller

I want to create a first person perspective character controller that allows for walking on walls and ceiling by transitioning with a slope (kinda like the anti-virus levels in Rachet & Clank: ...
0
votes
1answer
43 views

GLSL Shade a box different colors for two ends with one material in Three.js

First, I knew the following basic knowledges, GLSL Language, Learn WebGL2 ​- GLSL ​* GLSL Shaders OpenGL - Coordinate Systems, [OpenGL - Advanced GLSL] 3D Game Shaders For Beginners - GLSL ...
0
votes
0answers
59 views

Collision detection stop movement

I am making a simple first person 3D game in OpenGL with C++. I am just wondering on how you make an object stop moving when it collides with another object. This is what I am using for detecting ...

1
2 3 4 5
39