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
0answers
18 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
27 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 ...
1
vote
0answers
34 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
vote
1answer
53 views

Implementing wet and dirty materials

How you would implement wet and dirty materials or material overlays that you can clean like in PowerWash Simulator.
2
votes
0answers
21 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
32 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
40 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 ...
9
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
23 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
17 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-...
1
vote
0answers
29 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
40 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: ...
1
vote
0answers
59 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
0answers
22 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
20 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: ...
1
vote
0answers
19 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 ...
1
vote
2answers
43 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
16 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
173 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 ...
2
votes
1answer
57 views

2D vs 3D mobile power consumption in Unity [closed]

For an optimised and playable game written for mobile with Unity, how much of a difference is there in power consumption between 2D and 3D? Assuming: Unity game engine The game requires constant ...
1
vote
0answers
27 views

limit orthogonal camera movement to the positive axis(x,z)

What I'm trying to achieve is limiting the orthogonal camera movement to the positive axis(x,z) , so the camera clamp/stop moving to the negative axis. The problem is I can' find any property or ...
2
votes
0answers
54 views

Extracting walkable coordinates from 3d scene

is there away to extract the walkable coordinates from 3d scene , so I can have server side validation ? or how would I achieve that with Godot? EDIt (clarification): I was just wondering how they are ...
1
vote
1answer
32 views

Calculate coordinates of boundaries containing group of objects

I would like to understand how to calculate coordinates of boundaries group of objects as a parallelepiped in 3D game? Let's say for simplicity we have spheres randomly slowly moving in 3d space some ...
2
votes
1answer
131 views

Godot label Attached to 3D object gets larger when moving away from the object

I have a scene that consists of a CSGBox and a Label as a child of it. In the script for the ...
1
vote
1answer
35 views

Godot distance between 3d and 2d nodes

Godot has the distance_to methods for Vector3 and Vector2 but what would be the best way to ...
0
votes
1answer
23 views

How to check if a line casted from one point to another point passes through a mesh?

Let's say we have two vectors A and B. Is there a way to use Three.js' Ray or Raycaster classes to cast a line between vector A and vector B and check is it passes through a mesh in the scene? I know ...
3
votes
1answer
80 views

How to make a custom 3d view cone that mixes orthographic and perspective cameras

I'm trying to make a camera that displays objects the same height no matter the distance, but still changes width relative to distance. Similar to having an orthographic view vertically and a ...
0
votes
0answers
40 views

LibGDX getting model roll

I'm working on a 3d game in LibGDX, got help on here with my model rotation. Worked great. But now I'm dealing with the model's roll, and it's not behaving as expected. It's controlled by: ...
1
vote
1answer
60 views

which is more performant particles_system or animation_player

let's say I wanna make an Aura+Thunder effect , I can achieve the result using the Particles System like this vid: https://www....
1
vote
1answer
25 views

LibGDX setToRotation canceling out position

I'm working on a 3d project in Libgdx. I've got a camera flying around in 3d space, being controlled with touch. Works great, moves forward and backward, strafes, full 360 look around with no gimbal ...
1
vote
0answers
26 views

Determine terrain color based on slope and height with many types of terrain

I've got a specific problem. Take this as a challenge, if you will. I have a 3D mesh representing a cliffy terrain. It's constructed from a simple height map. The goal is to determine what type of ...
1
vote
1answer
76 views

how to center 3d camera vertically and horizontally

How to center the player/camera in the middle of the window/screen , to mimic a 2.5d camera, ...
0
votes
1answer
36 views

How to best apply colliders on a rough 3D shape

I have a 3D model for a level in unity. I want to add colliders to it. What is the best type of collider for this model? And,it is 3D
0
votes
1answer
65 views

Calculate how many degrees a physical device is off centre (offset) given X, Y, Z

Let's say I have a physical device that I can rotate with my hands and receive X Y Z coordinates of that device. What I need to calculate is the offset - how far is the pendulum of gravity straight ...
1
vote
1answer
151 views

How to make player jump to mouse position

Currently I have the player moving towards the mouse position , using this example : https://kidscancode.org/godot_recipes/3d/click_to_move/ now how would I achieve jumping to the mouse position, ...
0
votes
1answer
21 views

Imposters in Unity - How to set which color is used as 'transparent' in the RenderTexture?

I'm still working at making imposters for my Unity scenes. Here I am attempting to make a large block of stadium seating, using the one seat mesh as shown. I'll try to explain in full what Ive done so ...
0
votes
0answers
17 views

Process for Creating Imposters (For Unity)

I'm still working on making a sports stadium with crowd etc. I've been reading a lot about 'Imposters' and 'Billboarding'. I want to explore and learn the imposters technique. But I am stuck at step 1 ...
1
vote
0answers
33 views

How would I implement a level transition when reaching a cave in Raylib?

I am the developer of an upcoming 2d/3dRPG. I have a simple scene setup where there is a bridge over some acid and a cave entrance-like thing that I want to change the level with. I have used C and C++...
1
vote
0answers
21 views

The name 'txt' does not exist in the current context [closed]

I am getting the error The name 'txt' does not exist in the current context and I am unsure why this is happening. I am very new to programming in C# so sorry if ...
0
votes
1answer
56 views

Creating a Full Stadium of People, Ready as a Game Asset (ie. not too CPU intensive)

I am trying to make a boxing scene in my game. I decided to attempt to make the large stadium first (It's a boxing management game, so the scene can be 'pre-rendered' perhaps, the fight events (eg. ...
0
votes
0answers
12 views

Line Clipping and warped Picture

So hello to all of you, I wrote some pseudo 3d Code in QB64 (just for testing) and I managed to get the program running. So my problem is, that i get some disorted pictures when it renders the walls. ...
1
vote
1answer
51 views

Getting the point of intersection from this fast ray box intersection algorithm

I have seen lots of such algorithms that return a Boolean value, but I also need to get back the intersection point and ray length. I am looking into this example, but I'm not sure how I can extract ...
0
votes
1answer
29 views

Poly Count in Unity games. 3d Asset detail

I've begun making my own characters for my games. These are just tests that I copied from other references (ie. Cartoons TV etc). I used Maya with the 'Convert Smooth Preview To Polygons' to make the ...
1
vote
1answer
20 views

Maya 3d Model. 2+ Materials on a face? Snooker Table felt with lines overlay

I've made a snooker table in Maya for use in a game in Unity. The felt texture on the table is a tiled texture, I used Blinn, and 'place2dTexture' node to do the tiling. It all looked great. Except I ...
2
votes
2answers
87 views

How to implement pixel art lighting as in the game Project Eastward?

Project Eastward Lighting Demo Can somebody point me to the right direction as to how this lighting is done to recreate this lighting effect? The game is 2D but uses a 3D lighting system.
0
votes
0answers
44 views

Clipping walls in Doom-style FPS view

I have two points representing a line, and a player position. I translated and rotated the points around the player, and this works just fine. Next I want to clip the resulting line like Bisqwit did ...
0
votes
1answer
35 views

Unity - Make a Mirror character of player in movement

What I want to achieve is : I have a 3D game - with player in third person - and using cinemachine Camera - imagine it like PUBG where you can look any where - the direction of the player does not ...
0
votes
0answers
19 views

How to retrieve 3D models from a server in Unreal Engine 4

How can I load 3D models from a server in Unreal Engine?
0
votes
1answer
64 views

Constructing a building in the “Past” scene, and finding a different version of it in the “Future” scene

I am trying to create a game where one scene would be the "Past" and one scene would be the "Future". The player can travel through a portal to move between the past and future ...

1
2 3 4 5
38