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
21 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
38 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++...
0
votes
0answers
82 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
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. ...
1
vote
0answers
29 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 ...
1
vote
1answer
82 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
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
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 ...
0
votes
1answer
60 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 ...
0
votes
1answer
186 views

XNA 4.0 thick triangle strip to fix aliasing issues upon rotation

My triangle strip based lines are disappearing intermittently when I rotate my camera around the X axis. I was advised that this is due to aliasing issues and that "At a certain angle when its edge ...
2
votes
2answers
143 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
45 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 ...
5
votes
3answers
2k views

Are polygon normals really shadeable?

Garry's Mod has a copy-protection trap that shows this error: Unable to shade polygon normals It made me wonder if such a problem could ever actually exist. Can polygon normals be shaded? Is a ...
9
votes
3answers
5k views

How do collision meshes work in games like Zelda on the N64?

I was recently reading about the technology of Ocarina of Time/Majoras Mask and discovered that world collision is done using a single triangle mesh (vertices, normals, etc) for an entire area. There ...
0
votes
1answer
49 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
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 ...
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
2answers
96 views

Is it better to load all of the scene at once or load small parts of it as the player moves?

I want to create a lot of detail in my game but I don’t want to kill the frame rate tracking all the models and movements (like all the grass). Will loading them in pieces save the frame rate or will ...
0
votes
0answers
28 views

How can I achieve this "stroked lines" effect?

I have a collection of arbitrary vertices and edges that are connected, but which do not necessarily form triangles. These vertices and edges mostly fall along a flat plane, but have some height ...
-1
votes
1answer
5k views

Convert 3D direction vectors to yaw/pitch/roll angles

I have the code below that takes a set of yaw, pitch, and roll rotation angles (in degrees), and populates forward, right, and up basis vectors to express this rotated orientation as a Cartesian ...
0
votes
0answers
56 views

How to make a z-depth buffer with pygame?

I am making a 3d renderer with python and so far am sorting the triangles which I want to replace with a z-depth buffer. The thing is, I don't know how to make a z-depth buffer in pygame. I still want ...
27
votes
4answers
64k views

Fastest way to draw quads in OpenGL ES?

I am using OpenGL ES 2.0 I have a bunch a quads to be drawn, would love to be able to have to pass only 4 vertices per quad as if I were using GL_QUADS, but basically I just want to know the best way ...
0
votes
0answers
26 views

How can I detect and hide faces inside an object when combining two or more meshes?

I am trying to make a game where the player can make vehicles out of parts. To apply proper physics to the vehicles, like drag and buoyancy, I would like to get the outer hull of the various parts ...
0
votes
1answer
32 views

How to project a vector onto a plane, but not along plane normal?

In 3d space, is there any way to project a vector onto a plane, but alongside the UP vector (0,1,0) instead of the plane normal? If so, then how do I do that and what is it called?
0
votes
0answers
31 views

How to choose between 2D sprites versus 3D models for a 2D game? [duplicate]

I wanted to know how to decide between using 2D vs 3D models for games. What are the advantages/disadvantages of using 3D models versus 2D sprites in 2D games?
0
votes
0answers
21 views

how can i create a snake with a single piece look

I want to create a 3d snake with a single piece look, i have tried separate head and body parts following each other with Vector3.SmoothDamp but some quaternion issues occurred (when y axis >90, ...
1
vote
2answers
93 views

Free movement in a 3D isometric world

I'm currently experimenting with movement in a isometric perspective world and i'm thinking about how the movement should work. The movement can be either by WASD or gamepad. Since the player can ...
0
votes
0answers
19 views

Fade a texture effect as it nears the end of a cylinder mesh

In my game I have a laser beam that travels for about 15m, but abruptly stops due to the mesh the texture is attached to. How can I setup my shader graph so that the end of the texture fades away? I ...
1
vote
2answers
247 views

How to calculate plane corner vertices from plane origin point and plane normal?

I have an origin point, and normal vector of a 3D plane. I want to calculate 4 vertices to use as the corners of a 2 triangle quad to render the plane.
0
votes
0answers
21 views

What is the simplest way to rotate a 3D point arohnd another point given a quaternion?

I am weak in understanding quaternions however I am learning. Right now, I know how to rotate a point around another point given an angle represented by a Vector3 using a rotation matrix. However ...
1
vote
0answers
44 views

Is there a way where we can verify if certain image is 3D or not [closed]

I wanted to understand - Is there a way where we can verify if certain image is 3D or not So basically I want to automate the process where we can detect if certain given image is of 3D or not Problem:...
0
votes
1answer
17 views

How do I resolve a collision in SAT-3D when the projection axis is zero?

I am doing SAT in 3D, right now just between cuboids/3D rects (idk the terminology). I have intersection working fully, and static collision works as long as the projection axis is not zero. But if it ...
4
votes
3answers
9k views

How do I render .dae models?

I'm building a game for iOS. I'm quite new to OpenGL but what I want is to take a 3D model I have made in Google SketchUp and use it in my 3d game. The problem is I don't know how to proceed. I have ...
0
votes
0answers
33 views

First person camera turning 3D

I know how to make the effect of moving an object on the z axis, and strafing, but how do you make the effect of the view turning, I don't use any 3d libraries or engine
0
votes
0answers
29 views

Proper sphere to triangle collision resolution

I am working on a 3D game. For simplicity sake, the player is currently represented as a sphere. I have implemented an intersection test between a sphere and triangle, which returns a packet ...
0
votes
1answer
14 views

How can I rotate the two endpoints of a line around the line's center in 3d?

The object is a capsule. I have the position of the object vector3, and the orientation of the object, a quaternion. I want to construct a line which goes through the middle of the capsule with the ...
4
votes
0answers
3k views

How can I display triangle faces (not quads) in Cinema4D?

I started to learn Cinema 4D. I've noticed it's really easy to use for motion graphics, but I want to use it for modeling for games/realtime 3d engines. Before I used 3dsmax and it was easy to ...
0
votes
1answer
255 views

How to calculate the Forward, Up, Right vectors using the rotation angles?

As the title says, I have the pitch and the yaw of an object, How do i use them to calculate the forward, up, right vectors (like the ones in unity), I've searched everywhere and only could find the ...
1
vote
1answer
41 views

How to see real world size in blender

I want to make a .stl file to be 3d printed through blender, but I don't know how I would see the real size. Does anyone have any solutions? Also, if you turn on smooth shading, will it actually be ...
0
votes
0answers
30 views

Rotating a cube with arrow keys

I have a list of rotations (on a cube in 3d space with the y-Axis pointing upwards, x-Axis pointing righthand and z-Axis pointing towards you) for example +90 deg around x-Axis followed by +90 deg ...
0
votes
0answers
35 views

Check if a triangle is back-facing in a 3d model

I'm creating 3d models with an algorithm, but i have no idea how to make all triangles in the mesh face the right direction, so some faces are facing inside the model. The list of vertices is sorted ...
0
votes
0answers
16 views

Dynamic UI Canvas on Mesh

I have dynamically generated images in WorldSpace Canvas and I need to put them somehow on shield that crashes. Is it possible tu put that canvas on mesh shader texture or render it on texture? How ...
0
votes
0answers
28 views

How to make counter unity? [duplicate]

How do I count how many diamonds my player has collected in my 3d world What I need to do is to make a script which will update my text ui when the player collides with a diamond but I do not know how ...
0
votes
1answer
168 views

Simple real-time 3D wind simulation

I am a 4th-year student in the apply math department. It's my final year, so I am working on my bachelor's thesis. The topic is "Real-time weather effects simulation for grassland". The huge ...
0
votes
1answer
62 views

How much is 2D geometry used in 3D? [closed]

I'm studying 2D geometry with eventual goal to study 3D geometry for building games - very much looking forward to 3D!! Looking up on how to calculate hypotenuse of a right triangle in 3D I read that ...
0
votes
1answer
60 views

How do I make a part of my map off limit?

I'm looking for a common way to make zones in my 3D map "off limit"? The kind of thing you see in eg Hitman games where NPCs will get suspicious if you step into certain areas. Will need ...
0
votes
1answer
43 views

Check if point lies within coordinates

Let's say I have min (0,0,0) and max (1,1,1). If I have 3 points, lets say a (0.2,0.4,0.2) b (-0.5,0.8,0.2) c (2,0.3,0.1) How would I go about calculating it those points are within the coordinates ...
0
votes
1answer
75 views

finding the angle of rotation of a 3d line

I have a line segment joining two 3D points AB, and a vector V which is normal to it. I need to know the angle of AB in the plane described with V as the plane normal, that is: in the plane of the two ...
1
vote
0answers
54 views

Fast self collision/intersection detection algorithm for tetrahedral meshes

I want to play with deformation of tetrahedral mesh (soft-body simulation) but I need help with self-collision detection stuff. I found SOFA collision detection but I'm not sure that it fits for self-...
3
votes
3answers
2k views

What is the best way to "carve" a terrain created from a heightmap?

I have a 3d landscape created from a heightmap. I'd like to "carve" some holes in that terrain. That will allow me to create ...

1 2
3
4 5
38