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
29 views

3D collision response advice for complex meshes

I am trying to use my own collision detection system in Unity to speed up my game. My problem is that when rigid bodies sit on top of static bodies, they will balance unrealistically on one edge or a ...
2
votes
2answers
90 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 ...
1
vote
1answer
229 views

Change 3D Render Resolution in Godot

I'm making a Mario-Like platformer in Godot, and am going for a N64 style, and I want to lower the resolution of the render, while still having the window being resizable, like in Blender. Is there ...
1
vote
2answers
126 views

Curved 3D health bar

Hello I would like to make a curved healthbar (like if it is drawn on a cylinder). See the spatial UI element left to the shoulder of the character on this photo for what I mean. There is a main ...
0
votes
2answers
2k views

How to make projectiles shoot at mouse position?

I'm looking to make it so my fired projectile is shot at the position of the mouse so aiming is an option ie:up down ect.. I have the script working to where it spawns the cloned object and launches ...
0
votes
1answer
95 views

Swept AABB: finding collision normal in 3D?

I was following this tutorial which explains how to detect and resolve a 2d swept aabb collisions. I got the detection part working on 3d, but know I need a way to properly make a response, like ...
0
votes
1answer
109 views

Render only a cross-section of a 3D scene in Godot

I'm working on a 3D game where I sometimes want to display only a cross-section of the scene. Ideally I would like this to be just the intersections of the scene with a plane. But the only way I've ...
0
votes
1answer
1k views

XNA 3D Unable to Position Bounding Sphere

I have a collision method that seems like it would work, and it does, but the bounding sphere is always at 0, 0, 0. How do I fix this? Any more code and or details are available upon request. ...
1
vote
1answer
5k views

Insert 3d text to the front face of a cube GameObject

I want to add a text to a cube in Unity. I have a cube which has a 3d text as a child. I am using the below UnityScript to write on the 3d text: ...
1
vote
3answers
153 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
52 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
2answers
55 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 ...
3
votes
1answer
49 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
108 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 ...
6
votes
3answers
3k views

How to render metaballs?

How to render metaballs? I am a Python programmer familiar with the Panda3d and Blender3d APIs. My math kinda sucks, but I know enough to write game logic code and procedural model generation code, ...
0
votes
0answers
65 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 (...
4
votes
3answers
675 views

What resources are available to read and share pyglet code? [closed]

I am a Python programmer (I know the ins and outs decently well), and I have dabbled with Pygame. I want to make 3D applications and games, and so naturally I've been looking at OpenGL. pyglet uses ...
0
votes
1answer
38 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 ...
1
vote
1answer
126 views

How do I determine distance of a point within a ProBuilder mesh?

As in the title, I have an effect prepped for my game which applies certain derived parameters to a post-processing effect after the player enters a boundary I created with ProBuilder. Finding how far ...
0
votes
1answer
85 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 ...
1
vote
1answer
46 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 ...
1
vote
1answer
102 views

Intersection of two limited planes (stripes)

Have two limited planes. That means just squares or stripe in 3D space (or two connected triangles on the same plane). What I want to know is exactly how (and whether) they collide. My first approach ...
0
votes
2answers
3k views

Using an array of 3d points to construct point cloud or surface in OpenGL

I have an array of 3 dimensional point objects, I can manipulate the input into this array into any configuration I want, for example, it could be a vector of floating point numbers, a vector of ints, ...
7
votes
2answers
3k views

Matrix rotation wrong orientation LibGDX

I'm having a problem with matrix rotation in libgdx. I rotate it using the method matrix.rotate(Vector3 axis, float angle) but the rotation happens in the model orientation and I need it happens in ...
0
votes
0answers
175 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 ...
6
votes
4answers
26k views

Making holes in 3D objects (Unity)

How can I make a hole in an object with Unity 3D? I've something like this object and I want to make a hole in it.
0
votes
0answers
39 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
49 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
53 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
1answer
110 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
37 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
47 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
22 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 ...
1
vote
2answers
235 views

Find point in 3D plane

I have four points in a 3D space, example: (0,0,1) (1,0,1) (1,0,2) (0,0,2) Then I have a 2D position on that square plane: x = 0.5 y = 0.5 I need to find out the 3D space point of that position in ...
0
votes
0answers
34 views

How to export character from Zbrush to Blender?

Zbrush displays only 1 format (zpr), which Blender doesn’t accept((
0
votes
0answers
235 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 ...
18
votes
1answer
8k views

What are "world space" and "eye space" in game development?

I am reading a book about 3D concepts and OpenGL. The book always talks about world space, eye space, and so on. What exactly is a world inside the computer monitor screen? What is the world space? ...
1
vote
0answers
23 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 ...
11
votes
2answers
4k views

Geometry System of Populous: The Beginning [closed]

I want to to develop a game like Populous: The Beginning with my friend. But we could not find out what type of geometry they have used for the world. We know that - all tiles have the same size - ...
2
votes
1answer
147 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 ...
1
vote
1answer
419 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 ...
1
vote
1answer
3k views

How to hide objects behind an invisible plane?

I am using Unity 2019.1.4f1 (personal) in regular 3D mode. I want to make a material for a plane that will cause everything behind that plane to be invisible. I want a character who steps through a ...
0
votes
0answers
27 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
71 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
25 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
1answer
700 views

Rotating a circle on its axis

I have a circular shape object, which I want to rotate like a fan along it's own axis. I can change the rotation in any direction i.e. dx, ...
1
vote
1answer
177 views

Model gets distorted when rotating the camera

I'm currently developing my own 3d graphics engine and I'm having a hard time figuring out why my 3D models gets distorted when rotating the camera around. This is my projection matrix. I'm following ...
1
vote
0answers
29 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
11 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 ...

1 2 3
4
5
38