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
votes
2answers
39 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
0answers
19 views

Painter's theorem inside and outside test

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
25 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
31 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 ...
-1
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
23 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
19 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 ...
-1
votes
1answer
38 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: ...
0
votes
2answers
52 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
120 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
35 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 ...
-4
votes
1answer
50 views

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

Can someone explain this code to me? ...
0
votes
1answer
35 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
58 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
21 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 ...
0
votes
2answers
128 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
51 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
23 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
41 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
34 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
27 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
97 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
43 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
35 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
30 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
26 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
36 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
50 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
votes
1answer
64 views

Implementing wet and dirty materials [closed]

How you would implement wet and dirty materials or material overlays that you can clean like in PowerWash Simulator.
1
vote
0answers
24 views

Perspective of a Point Light

I'm trying to calculate shadows by projecting the silhouette of each object seen by the light source. (The shadows are just going to go on planes.) To get each silhouette I take a snapshot from the ...
-1
votes
2answers
37 views

Rendering to BufferStrategy gives absolutely no output despite following instructions

I am following this YouTube tutorial by TheCherno to make 3D graphics using Java Standard Library. Display.java ...
1
vote
0answers
48 views

Struggling with 3D math concepts. Would like practice [closed]

Hello fellow game developers! I graduate this October with my Bachelor’s of Game Programming and Development. I took the required Calculus and Linear Algebra. While I passed the classes I feel like I ...
8
votes
4answers
4k views

How to determine if a 2D image represents what player sees in 3D game world?

I'm working on a game idea where the player is shown a 2D image (say, a "photo") and the player must find a spot in a 3D world where the view is about equivalent to that photo - not ...
0
votes
1answer
31 views

How can I create a good physics colliders for these models in Unity3D

I need to make a 3D colliders in Unity with those forms. I don't want to use any Asset Store asset if it's possible. There are two models: both are cylinders but they have some deformations (see image ...
0
votes
0answers
27 views

3D to 2D transformations with numpy

I am trying to create my own game in the python terminal, but I just can't find something I can use in python. I found something on https://www.gamedev.net/forums/topic/59091-projection-matrix-amp-3d-...
0
votes
0answers
34 views

Rotating around pivot so target is 25% away from top of screen

I have a camera which rotates around a pivot (green dot) that is always a constant X units away from that pivot. I want to find the pitch to rotate around that green dot so that the target (red square)...
0
votes
0answers
44 views

Enemies not disappearing when shot by a bullet

I learning how to use Godot. I've run into a problem though: when I shoot the enemies they don't disappear. This is my bullet script: ...
0
votes
0answers
65 views

Why is the vieweing field a frustum instead of a pyramid?

In 3D games, why would the viewing field be a frustum? Why not a pyramid? You would still have to do culling to figure out what's in the field, and to me it seems a pyramid field is no harder to do ...
0
votes
1answer
38 views

Surface-Sphere collision response

I'm making basketball throwing simulator and I have two questions about the collision response. To make collision response with any surface like the wall or ground, I'm using the following formulas to ...
0
votes
0answers
24 views

Rotating two types of cubes -- one cube's sides disappear

I had a cube that had 8 vertices and 12 triangles and the visibility of the cube was okay. When I rotated, I was able to see all visible sides of it. Here is my old cube: ...
0
votes
0answers
30 views

Particle effect continues to loop even with looping off and "Destroy" set as the stop action

I have a particle effect set to play on click. It's a muzzle flash for a gun. It continues to loop once I fire for the first time despite looping being turned off. I have a ...
0
votes
2answers
92 views

In a 3D grid of cubes, how to calculate index of a cube if we only know it's coordinates and the way cubes are generated?

I have a code that generates a grid of equally sized cubes in a cubic volume of given limited size, intended to be used for 3d path finding. Let's say cubes are objects stored in an array called ...
0
votes
0answers
17 views

How to ensure that a randomly-generated velocity vector moves the camera forward within a valid arc?

I spawn a camera in a scene using random coordinates for x and y and setting z=0 and orient ...
0
votes
0answers
8 views

The fov changes back to normal a fraction of a second after using scope

I'm following this video: How to make a Sniper Scope Effect - Unity FPS Tutorial Everything in this script works, however when I right-click (to scope in) the fov seems to change for a fraction of a ...
4
votes
1answer
187 views

Why do my 3d models have a strange after-image effect?

On my Unity project I have a strange behavior for my 3D model which I bought on the Unity asset store. If I move the player, there appears a wired shine / glow… seems that the character does not move ...

1
2 3 4 5
38