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
0answers
31 views

error CS1503: Argument 1: cannot convert from 'damage1' to 'float' [closed]

Hello Guys, I am Issa. I was following the (Shooting with Raycasts) - Unity Tutorial By Brackeys. At 8:06 time he said to tap the crate 5 times. But I had this error : (Assets\Scripts\Gun.cs(33,30): ...
1
vote
3answers
53 views

Combining Quaternion Rotations

I'm trying to understand Quaternions in relation to rotation and orientation. As an example in learning, I'm trying to rotate a point (e.g. at [0.7071, 0, -0.7071], on the unit sphere) about the line ...
1
vote
0answers
41 views

Rotate the player in a certain way that makes it look like he is sliding

I'm trying to make my first game in Unity: a 3d platformer inspired by the classic Crash Bandicoot games. I've managed to make most of the movement with the character control script below. However, I ...
0
votes
0answers
23 views

Unity character customization parts

I'm relatively new to unity, started a couple weeks ago and so far I managed to setup a character with multiple parts, like hair, head, and body. Here's how it looks like: I also managed to import ...
0
votes
1answer
43 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 ...
0
votes
0answers
15 views

How can I move the Floor in ZBrush?

I built a character is ZBrush, added some subtools and extracts and realized I have to move the angle 'cause he is "falling". Is it possible to move him and all subtools around him at once (...
0
votes
2answers
48 views

What rotation needs to be applied to align mesh with expected axis of target?

I'm using LWJGL and JOML to create a 3D view of hexagons whose positions lie on a torus. I have a number (NxM) hexagons, whose centres and normals I have calculated to be placed on the torus to ...
0
votes
1answer
15 views

Turning the Turret towards Player Object

I  am trying to turn the enemy turret towards player object using Armory 3d game engine with Blender. Script is written using haxe. I am using the following code with both the player object and enemy ...
0
votes
1answer
28 views

How to instantiate seamless scrolling tiles

I'm trying to create in Unity an "Endless Runner" game, where the player remains stationary on the 0 of the axes while the tiles underneath him scroll with a fixed speed on the Z-Axis. The ...
0
votes
1answer
36 views

How do you detect which side of a cube is facing up/down/left/right?

Please imagine a scene that shows a cube. Both the camera and the cube can be randomly positioned and rotated. How can you tell which side of the cube is facing up/down or left/right? Or in other ...
0
votes
0answers
10 views

How would I use an object from another animation in Unity?

So I have two different .blend files with two different animations. Let's call my aiming with a gun animation animation A, and my other .blend file with idle, run, and jump animations animation B. If ...
0
votes
1answer
19 views

Extend distance for rendering grass and tree objects on terrain

I am trying to make an adventure game with a big landscape (made the terrain with terrain tools) with 3D models of grass (that I placed using terrain tools) but it only shows the grass/trees that are ...
1
vote
1answer
36 views

Why does my material look blotchy on this mesh?

This is a generative mesh - wireframe looks like this Here's the material But the shaded object looks like a tie dye tshirt I've no idea what settings are causing it to look like this. These are ...
0
votes
1answer
31 views

Swept 3d capsule intersection with AABB, what am I actually supposed to use to accomplish this?

I'm trying to figure out how to do continuous collision with a capsule (which would represent a collision volume for a player for example). Given how common the capsule is in many game engines, and ...
0
votes
0answers
18 views

raylib - isometric camera, rotating to four corners of isometric map in 3d

I am exploring raylib and am trying to create a 3d isometric map of cubes. Normally this is done by setting the camera to isometric with an angle x of 30 and angle y of 45 (sometimes it is angle x of -...
0
votes
0answers
56 views

C++ Raycast using SFML

I know this isn't exactly C++ related, however, I was just wondering if anyone knew anything about texture mapping onto a raycaster. I'm currently trying to write my own and I'm struggling to map ...
3
votes
1answer
37 views

Is it possible to correctly catch up a particle system simulation based on long delta time between many frames?

I have a particle system with a physics simulation integrator based on delta time (elapsed time between frames) which is implemented on the GPU in a compute shader. I also have a frustum culling ...
0
votes
0answers
53 views

AABB collision for two moving objects (pushing a box)

I am having problems with a particle system in a cube based environment. The particles are aabb boxes, as they have a radius. There are also movable aabb boxes, let's call them players. Both classes ...
0
votes
0answers
14 views

LibGDX program crashing on on StepSimulation call

I am trying to add a Character Controller to a Discrete Dynamics World in Bullet via the LibGDX wrapper and everything seems to work, but when I attempt to update the world via the StepSimulation ...
0
votes
1answer
32 views

Textures not working on glTF Embedded Models. Picture Explains The Issue. (GODOT ENGINE)

I wanted the tree to look a bit more stylized, or have a bit more to it than just flat planes. Yet when I tried to put this texture on it, it just looks completely wrong. Is this a model issue or a ...
0
votes
0answers
47 views

Frustum culling issue at oblique angles

I am using the following algorithm to test if my camera frustum contains an axis-aligned bounding box: ...
0
votes
2answers
55 views

Make objects stack in unity?

I have two kinematic rigidbody cubes from the standard 3D objects, I have also enabled contact pairs mode to "all contact pairs", how do I make it so that no matter what angle they collide ...
0
votes
1answer
50 views

Character Controller and Reverse Gravity

So I have a Game object with Rigid Body, a Character controller and my Movement script. On a specific condition I am reversing gravity. The problem is that the velocity.Y when the gravity is reversed, ...
0
votes
2answers
35 views

Touch control pan 3D map

I'm working on recreating the board game "Hex" as a mobile game. I'm working on implementing zoom and pan features using two fingers. I feel like I managed to get the zoom to work, but the ...
0
votes
1answer
42 views

How to tell which face of a cube is most visible to the camera?

Imagine a camera that shows a randomly rotated cube at an arbitrary position: The cube's pivot is in the center of the cube. This way its six faces could be referred as positive/negative X, Y or Z. ...
0
votes
0answers
13 views

Too Low Amount of Tris in Statistics Window, Only in the Tens (Unity)

I'm working on a mobile game, and for optimization it would be useful to see the correct amount of polygons rendered. However in the Statistics window the amount of polygons displayed are suspiciously ...
0
votes
0answers
28 views

How to export character from Zbrush to Blender?

Zbrush displays only 1 format (zpr), which Blender doesn’t accept((
0
votes
0answers
33 views

How to add snap to grid in the unity editor(Scene view)?

I have got a working raycast in the editor which places primitive cubes at the scene view And a custom grid drawn with Gizmos Now how do I make the cubes snap to that custom grid and not overlap with ...
1
vote
0answers
22 views

Generating a mesh from a set of generatively produced co-ordinates

Using Unity I've been producing sculptural forms that look like this. It's made of patterns of cubes that twist around each other using a flocking algorithm. I'm trying to get it into a 3D printable ...
0
votes
1answer
188 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 ...
2
votes
1answer
63 views

How to stop my particle systems from being frustum culled

Please could somebody advise on whether it is possible to control the culling of particle systems in Unity? I am referring to the entire system, not individual particles. In my use-case, I am ...
0
votes
1answer
70 views

What are the dangers of setting rigidbody velocity directly for movement and what are the alternatives

I'm playing around with Unity, trying to make a neat 3rd person platformer movement system using rigidbodies so that I may in the future implement things like pushing boxes/physics objects, grappling ...
0
votes
0answers
12 views

Unity 3D Imported Assets Rotated Backwards in-game

I'm putting together boilerplate for a Unity FPS game, and having an issue with importing an Asset Store model. All of my weapons are asset store prefabs. I'm new to Unity, but this makes me think ...
0
votes
1answer
44 views

Implementing a Turn Radius for a Character

I'm working on a 3rd person platformer in Unity where I'm attempting to capture a Mario 64 style feel. Part of the game involves attaining really fast speeds. Currently, my turning code is pretty ...
0
votes
1answer
23 views

Generate plane with script missing triangles

I am trying to do a simple script to generate a plane from a script by creating a new mesh. After trying it, it seems like some of the triangles aren't showing up. I checked if they were in the list ...
1
vote
0answers
16 views

Textures rotated 90 degrees when importing a .glb file

I have a simple box, textured with bricks, in Blender: I export this scene as glTF 2.0 and import into Godot. Here's the result: As you can see, the bricks are rotated 90 degrees for some reason. ...
0
votes
0answers
8 views

Steering forces - Avoidance does not affect trajectory when flying directly at a target

I'm trying to implement a simple seek & avoid system for a 3d game wherein planes fly around. Using https://gamedevelopment.tutsplus.com/series/understanding-steering-behaviors--gamedev-12732 as a ...
0
votes
0answers
20 views

Simple Car Animation Acceleration Too Slow

I am trying to make a very simple car animation where using the arrow keys, I can make a car move around. I am using wheel colliders and some code that goes like this: ...
0
votes
0answers
17 views

Pile of objects & collisions

I’m designing something which has a rather large number of 3d roundish objects and needs collision detection, in the best way I can muster. The user can move her fingers through the pile of objects ...
0
votes
1answer
32 views

How do I calculate a line segment that is a certain number of degrees from another line segment?

I have a line segment that is at an arbitrary angle in 3D space. I want to (in code) draw another line that shares an end point with the first line and has an angle of arbitrary degrees between them. ...
1
vote
1answer
58 views

Plotting a pseudo 3D globe

I would like to plot a small globe where the main character can walk, exactly like Sonic & Knukles Bonus Stage. For those who won't google it, here is a picture. I am familiar with Raycasting, ...
0
votes
2answers
55 views

How to make player seem bigger / world smaller, without changing world coordinates

I am making a voxel game with OpenGl, I've got the major parts working, except the camera seems small compared to the the blocks. How do I make the camera bigger? Do I do a scaling on the model ...
0
votes
0answers
23 views

How to fix normal map in unity

hey, I'm just using unity, I'm having a problem with the normal map, like the picture above, if I use blender I just need to change the sRGB to non-color data, but when I import it to unity using the ...
0
votes
2answers
199 views

Rotating camera in 3D without yawing diagonally

I'm programming a C raytracer. I'm having trouble getting the camera to rotate the way I intend. I would like the camera to rotate by pressing keys: F & H rotate left & right around the world'...
1
vote
0answers
72 views

Unity XR Spectator Camera

I would like to have a VR camera (for the player) but also have another camera (spectator). I am using Unity 2019.4.8f1 on the Universal Render Pipeline I have only been able to find outdated articles:...
-1
votes
1answer
27 views

How would I detect a collision between a rigidbody and a static

I have an object with a rigid body. How would I go around detecting collisions between this object and any other object with a collider on it? I know you can enable/disable collision detection (https:/...
0
votes
2answers
47 views

Mesh shaded as single pixel

I am trying to procedurally generate planets in Unity. The actual planet is already done, but now I am trying to add clouds. For this I created a PBR-Graph shader that draws the clouds based on some ...
1
vote
0answers
23 views

Efficient acceleration structure for moving 3D objects in scene

I am implementing a 3D FPS game in C++. The game has large outdoors areas with both static and dynamic objects in the scene, with the following implicit assumptions: Static objects: Do not move ...
0
votes
0answers
60 views

I want to create a 3D game in unity for wolf and sheep game. So, how can I set up pieces and move them using C# code?

This is the approach that I have made so far in the code that I have written. Based on the output in unity received from the code, I can see 4 white pieces on one end and 4 black pieces on the ...
0
votes
1answer
33 views

How to re-calculate orientation vectors when one of them is being changed?

I want to implement a Unity-like API for my transforms, with the ability to set forward, right, up vectors directly and change object's rotation quaternion accordingly. I got stuck at the math behind ...

1
2 3 4 5
37