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
17 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
31 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 ...
0
votes
1answer
1k views

2D/3D Soft body physics in Unity

I want to implement soft bodies in my game similar to this link. I tried using this Soft body simulation plugin but it has the following problems: Only works with box colliders. Doesn’t work with ...
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.
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 ...
-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 ...
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 ...
0
votes
1answer
149 views

Capsule getting stuck on edge of block

I'm making a first person game and when I jump and my character gets close to the top of the wall, the vertical movement stops, jitters, or suddenly snaps to the top of the wall. Video Here is my ...
1
vote
0answers
39 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 ...
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
16 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: ...
42
votes
6answers
31k views

Why do we use 4x4 matrices to transform things in 3D?

To translate a vector by 10 unit in the X direction, why do we have to use a matrix? We can just add 10 to the mat[0][0], and we got the same result too.
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
1answer
239 views

How do I implement the parallax effect in 3D graphics?

With a perspective projection matrix and camera system already in place, I have a scene with a small jet fighter flying high over a wide and deep canyon with many cliffs and rocky surfaces; these are ...
0
votes
1answer
316 views

Script Component not Being detected by Vuforia's Default Trackable Event Handler Script

I have a Script Component named Start inside a GameObject named StartSpawn and I am trying ...
0
votes
1answer
34 views

Turning the Turret towards Player Object

I  am trying to turn the enemy turret towards player object using the Armory 3D game engine with Blender. The script is written using Haxe. I am using the following code with both the player object ...
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: ...
0
votes
1answer
289 views

How can I create a tunnel/parallax/depth effect based on mobile device tilting?

I would like to create applications similar to what's displayed in these videos: VR Tunnel Live Wallpaper for Android The parallax view Part 1 These mobile application are supposed to react to ...
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 ...
2
votes
1answer
1k views

Combine 3D objects in XNA 4

Currently I am writing on my thesis for university, the theme I am working on is 3D Visualization of hierarchical structures using cone trees. I want to do is to draw a cone and arrange a number of ...
0
votes
1answer
81 views

Assigning relative force to a projectile fired while orbiting a sphere

Projectile Not Correctly Inheriting Parent Velocity (Unity3D) So I am trying to incorporate the above person's changes into a script I am making although I'm no great coder and I'm not even sure ...
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 ...
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 ...
1
vote
2answers
1k views

How do I move a 3D particle using the Mercury particle engine?

I'm currently creating a 3D game with XNA, and I am in need of some particles.That's why I searched for a particle engine. I found Mercury, watched the tutorials and integrated it in the game. But now ...
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 ...
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 ...
2
votes
1answer
998 views

3D line segment AABB collision, with hit normal?

I'm embarrassed I can't find this, but I'm wanting to detect intersection with a 3D line segment (not an infinite ray) with a 3D AABB, the AABB being defined as two Vec3f's which represent the Min and ...
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 ...
0
votes
2answers
48 views

how can I rotate a tetrahedron's vertices so that it's pointing straight up?

I am trying to render an Equilateral triangle in 3D, and I came across this answer: https://math.stackexchange.com/a/562895/15497 So based off of that, I made my vertex points: ...
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 ...
0
votes
1answer
60 views

Unexpected result when generating world with 2 perlin noises

I try to generate a world with a temperature and an humidity noise to generate biome based on the y values of the two. I take the y values and round them on a 33 base for the humidity and 25 for the ...
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, ...
16
votes
5answers
11k views

Generated 3d tree meshes

I did not find a question on these lines yet, correct me if I'm wrong. Trees (and fauna in general) are common in games. Due to their nature, they are a good candidate for procedural generation. ...
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
2k views

What is the best way to create a square grid in Unity?

So I need to create a square grid like the one below. And be able to click on a square, the square you chose then is filled with a different color as well as all the squares right and below the square ...
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
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 ...
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: ...
3
votes
1answer
147 views

Retrieve 3d models from a server in unity

I have 10 3d models which are about 8mb each..Now, should I store these 3d models in my apk or will it be wise to store it in a server and then retrieve it?.If so, how can I do that?
1
vote
1answer
57 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....
4
votes
3answers
2k views

Render angles of a 3D model into 2D images?

Is there a tool out there that you can give a 3D model file, and it will output 2D renders of it from various angles? For example if you were making a 2D RPG but you want to make your character look ...
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 ...
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 ...
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

1
2 3 4 5
38