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
1 answer
14 views

How do I accomplish viewing a 2D game board in 3D space?

So I'm making a 2D board game in 3D space and I don't want to use paper2D because I'm not really using sprites. What I want is to be able to make a grid of cubes positioned such that I can have a ...
user avatar
0 votes
1 answer
17 views

How to change quaternion when flipping X axis?

For a given animation with the set of 3D coordinates of every joint and corresponding global rotations quaternions Q(X, Y, Z, W) in right-hand coordinates (Y-up, X-...
user avatar
0 votes
1 answer
51 views

Efficient calculation of billboard sprite transformations

I'm currently adding a billboard mode to animated sprites and static sprites in my 3D engine. The code below works fine, but I want to know if a more optimized solution exists. I've heard about ...
user avatar
  • 3
1 vote
1 answer
34 views

How to make a collision object within a viewport detect mouse inputs?

I am working on a 2D game with a spatial node (a 3d node) inside a viewport. Nodes within the viewport should be able to detect user input from what I can find online, but for some reason it doesn't ...
user avatar
  • 11
0 votes
1 answer
77 views

Splitting large 3D world in additively-loaded Scenes vs using Addressable Prefabs or Bundles

I'm working on a 3D game with a large open world. It will naturally need to stream chunks. When you look at existing streaming solutions in the Asset Store, you can see that their approach is building ...
user avatar
  • 1,579
0 votes
1 answer
52 views

Rigging a 2D face on a 3D character

I have a question about rigging in Unity -. Is there a way to rig a 2D face on a 3D character in such a way that you are able to get a smooth transition between the different keyed mouth- and ...
user avatar
0 votes
0 answers
21 views

Cinemachine Freelook falling into a feedback loop with player object

I'm creating a game where I want the player object to constantly orient itself to the rotation of the camera, so that the controls stay relative to where the player is looking. I'm using a Cinemachine ...
user avatar
1 vote
3 answers
55 views

How to calculate coefficient for how much a object with velocity x is moving towards point a?

I have a object in 3d space that has certain position and velocity. If that object moves perfectly towards point A, the coefficient should be 1. If it moves perfectly away from A it should be -1 or 0. ...
user avatar
0 votes
0 answers
28 views

Adding Z rotation to XY rotation without polluting the result

For context, I'm trying to make a 3rd person space game. The spaceship orientation is determined by the camera orientation. I also want to be able to control the roll of the ship(in my case, that is ...
user avatar
0 votes
0 answers
25 views

Find closest point within the *overlap* of two colliders

Simple question which probably has a complicated answer. Using Collider.ClosestPoint, I can find the point on a given collider that is closest to a given point. But lets say I have two colliders that ...
user avatar
0 votes
0 answers
72 views

Player rotation using relative mouse movement instead of absolute

I'm working on a twin stick shooter where the player looks at the mouse cursor. Like most I use the absolute mouse position and the player's position to determine the direction and derive an angle. ...
user avatar
  • 1
0 votes
0 answers
60 views

Is it advantageous if the conflict resolution for a 3d game is fake?

The game is you are a monster trainer in "3D" (I am going with WildPet(WP) for the game and the monsters). In battle with one other WP, you give the WildPets commands which can be tactical ...
user avatar
0 votes
0 answers
33 views

d3d Convert 1 descriptor table (2 cbvs) to 2 descriptor table (each one cbv) get screen flicker

I am learning d3d develpoment recently. For the triangle example, I add code about model, view matrix setting. Here I set model, view seperate. There are 3 methods to do this. root constants root ...
user avatar
0 votes
2 answers
83 views

Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes

I'm writing a simple player movement script in Unity 3D, and I've been using Vector3.ProjectOnPlane() to accomplish slope/ramp movement. For the most part, this ...
user avatar
0 votes
1 answer
36 views

A point on a sphere surface needs to be converted to origin coordinate

I have a central point, a planet is moving around it on the orbit A (a circle) And the planet is rotating at a certain speed on its axis ( B ) I have a Data Structure representing the Base Mesh ...
user avatar
  • 105
0 votes
1 answer
107 views

How to implement a directional attacking/blocking system?

I'm working on implementing a directional attacking / blocking system in Unity à la Elder Scrolls: Arena or more recently, Mount & Blade - where moving the mouse in a certain direction signals a ...
user avatar
0 votes
0 answers
20 views

Collision not being detected on CharacterController in Unity

Help! For whatever reason, I was following a tutorial on Unity movement, and when I was going to test out collision for certain objectives in my game, for whatever reason collision is not being ...
user avatar
0 votes
1 answer
59 views

The performance gains of tiled rendering on mobile

I'm making an OpenGL es app on android and I'm trying to improve the performance of it. I found this technique called tiled rendering (not the same thing as tiled deffered rendering*) wich divides the ...
user avatar
  • 17
0 votes
1 answer
27 views

Matrix math: How to specify camera distance so that an object with a given size is completely visible?

This is my code that draws a top down view tile based map. But Iam do not know how high the camera needs to be placed in the sky so that the map is fully visible so that nothing is cut away and I do ...
user avatar
  • 334
1 vote
1 answer
98 views

Screen space reflections bug

I try to implement screen space reflections in my graphics engine using ray marching algorithm. After a lot of trying I got this result: https://youtu.be/yzkgpcliBVQ As you can see, the reflections ...
user avatar
0 votes
0 answers
13 views

Mesh appearing 'see-through' when exporting from Blender to UE4 [duplicate]

The right wing of the dragon model is appearing see-through upon exporting, anything to double check for solutions? Thanks
user avatar
0 votes
0 answers
29 views

Is there a performance difference between modeling a complete scene in Unity with assets vs importing a complete 3D scene from SketchUp?

I've worked with 3D modeling (architectural projects) using SketchUp for 4 years. I'm trying to import the models into Unity and then add the components I want (like colliders, scripts interacting ...
user avatar
  • 1
0 votes
0 answers
56 views

How do I make a hollow center/hole/opening for the colliders of my 3d models in unity?

So I'm trying to have specific shapes be hollow in the center so they can fall through these posts, however I can't seem to get this working, with both convex checked and unchecked. I've also tried ...
user avatar
0 votes
1 answer
49 views

How do I fill a scene with light by using real-time lights in Unity?

This is my scene: Components of this scene: Cube Spotlight This project is under URP and I am building it for android. In this scene, I want more indirect lighting so that the objects/materials ...
user avatar
  • 1
0 votes
1 answer
25 views

How to find "roll" relative to horizontal

To avoid gimbal lock, I use quaternions for my rotations. For example, to roll I use this function: ...
user avatar
  • 103
2 votes
0 answers
58 views

Depth func LESS EQUAL not working as expected

How is it possible that a fragment is generated, passes the depth test but isn't written to the current render target? This is the pixel history I see if I capture a frame in RenderDoc: The fragment ...
user avatar
0 votes
1 answer
43 views

How to scale all meshes of various scales to a unit scale

I have a few objects with different scales i want to make a scene where all objects are scaled proportionally to everything else, something like a normalize function for a mesh. How would I go about ...
user avatar
0 votes
0 answers
17 views

Rig Looks Scrunched Up in Unity?

I've completed my animations for a first person rig of mine, just the arms, and the animations worked perfectly in Blender. When I exported them for Unity however, the result looked as if my rig was ...
user avatar
3 votes
2 answers
278 views

How to differentiate between enemy and something else in Godot?

So, I have a simple 3D game with a player, an enemy, and walls. I've figured out how to detect collisions between my player (RigidBody) and an enemy or wall (Static Body). I want to know how can I ...
user avatar
0 votes
1 answer
252 views

How to make camera smoothly follow behind player in Unity 3D?

Following the advice posted here, I made a camera that follows a player behind with: ...
user avatar
  • 227
0 votes
0 answers
33 views

Aircraft rotations in 3d game

It seems like rotating plane in 3d game on certain axis is not solution because they change based on current rotation. Also there is gimbal lock problem, so i guess i should use quaternions. Is there ...
user avatar
  • 103
-1 votes
1 answer
30 views

I want to use a number that I got using Debug.Log, and use it later in a game over screen to show a score

How can I save this number as a variable to use in a game over screen? This is my code to get the number public void StopCount () { Debug.Log(disRun); }
user avatar
  • 1
0 votes
1 answer
59 views

Unity: How to "make sure GameObjects are aligned"?

I'm following the "Unity Essentials" tutorial series on learn.unity.com. In the module Create a structure with primitives, it says, As you build this structure, you might want to change ...
user avatar
0 votes
0 answers
25 views

programmatically turning a 3d scan model into a 2d outline

intended use turn a 3d model created by lidar scan into a 2d floorplan starting point scan captured using ARkit’s Scene Reconstruction API saved as .obj file acceptable outputs I’m not super well ...
user avatar
0 votes
0 answers
19 views

Convert between WCS and OCS using quaternions

I have been scratching my head for days understanding how to fully describe an object fully using just the normal vector and an insertion coordinate. Specifically this is for creating DXF files, but ...
user avatar
  • 101
0 votes
0 answers
37 views

How to build level in Blender using assets from Unity?

There are already models for level creation that are used to create different levels. I want to use them to create a new level and I want to assemble the level in Blender. But if I just import the ...
user avatar
0 votes
0 answers
184 views

What am I doing wrong with this GLM camera rotation?

I'm attempting a very basic camera with GLM in C++ that has full pitch and yaw rotation. The game I'm planning to make will eschew triangles in favor of flat scaled/rotated sprites to represent ...
user avatar
0 votes
0 answers
52 views

Sphere collision resolution when colliding with multiple meshes

I'm writing my own player collision physics and I'm stuck at collision resolution part. I have sphere as a player and scene made of static meshes. Collision resolution works fine when player is ...
user avatar
1 vote
2 answers
51 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 ...
user avatar
  • 138
0 votes
0 answers
46 views

Right Axis warps on 3D planet's equator

I am using JavaScript and WebGL for a game which rotates a spaceship around a 3D planet. Below is the code for rotating a sphere spaceship and sphere planet. I looked over your camera code and now it ...
user avatar
0 votes
1 answer
133 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 ...
user avatar
0 votes
0 answers
30 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 ...
user avatar
1 vote
1 answer
407 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 ...
user avatar
  • 115
2 votes
2 answers
79 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 ...
user avatar
  • 141
0 votes
0 answers
29 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 ...
user avatar
0 votes
0 answers
83 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 ...
user avatar
0 votes
1 answer
68 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
118 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 ...
user avatar
5 votes
0 answers
117 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: ...
user avatar
  • 51

1
2 3 4 5
39