Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [3d]

3D refers to three dimensional space where coordinates are represented with X, Y and Z values.

1
vote
0answers
60 views

Unity - ThirdPersonController - help implementing with my own models please

I've created a basic 3d character (humanoid) in Blender with animations etc. I've imported it into Unity and it works fine. However, I have written my own code to handle the CrossPlatformInput script ...
1
vote
0answers
156 views

OpenGL terrain rendering

I have written my own 3D engine and want to improve some of my render systems. Right now I've got a terrain system including the shaders). I can add 4 different textures which can be blended at any ...
0
votes
1answer
191 views

Swept aabb 3d incorrect collision resolution along negative normals

I have followed this tutorial and ported it to 3d with glm. Everything works fine when the collision normal is reported as positive ((1,0,0),(0,1,0),(0,0,1)) but when it is negative the player aabb ...
1
vote
0answers
29 views

Creating Smooth Corners when Converting 2D Polylines to 3D Models

Part of my game takes SVG polylines (which are just basically a set of x,y coordinates that define a multi-segment line) and converts them into 3D 'paths' (ie. a line created as a set of faces all ...
1
vote
1answer
51 views

In Maya- how can I merge mulitple primitive cubes together into one parent item? (And is this actually needed for using in unity etc)?

Im trying to make some 3d models in Maya and then put them into Unity as characters which I can give rigidbody to etc. (Im new to Unity and 3d modelling software, but i have a small amount of ...
1
vote
1answer
80 views

Rotation ascending into infinity?

I'm creating a rotation for my sun to move, however it quickly extends to Infinity before going into NaN. I thought that taking advantage of the Matrix4f would make this much easier but it does as ...
0
votes
1answer
137 views

What would it take to program a game engine like the build engine [closed]

My favorite games of all time are thanks to Ken Silverman's BUILD engine, The engine that brought us DukeNukem 3D, Shadow warrior and Blood. I've read a few articles on the build engine however I ...
0
votes
0answers
69 views

How do I expand my algorithm to work for multiple AABBs?

I have followed this tutorial, with a few tweaks, to work for my C++ engine. My code will only work with one AABB in my list of AABBs; any more, and it ceases to function properly. With a similar loop ...
1
vote
1answer
37 views

How to fold a view from 2 3D cameras in Unity?

I need to combine view from 2 or more 3D static cameras. Let's say I have 3 humans standing in line side by side. The first camera is viewing the left person and the left half of the middle person. ...
0
votes
2answers
222 views

How to increase render distance?

I've been trying to find the source of why my render distance is so low (I'm new at using LWJGL and don't know the complete basics yet) and I believe it falls down into this code. My idea for my game (...
0
votes
0answers
43 views

DuDv Map has seams

I've made a dudvMap to give my water a ripple effect, however it is giving it a repeated look and I can see the areas where two textures on the water meet It's a little hard to see here, but if you ...
0
votes
0answers
25 views

xLight seems to have natural attenuation? - LWJGL

I've been trying to fix what I thought to be a shading issue for most of today and I have now found that the problem is that the light(Sun in this case) becomes dimmer the farther from the source it ...
0
votes
1answer
47 views

Third Person SpaceShip Camera Directx9 follows objekt but gets weird after moving object

We have the following code. It should follow the game Object in every step but it does not. In the beginning we can rotate the object where ever we want and it works but after moving it some the ...
2
votes
1answer
322 views

Voxel traversal intersection float position

I have a 3D grid of cubes, and using the algorithm from this paper http://www.cs.yorku.ca/~amana/research/grid.pdf I've been able to get the integer coordinates of the first tile intersected by a ...
0
votes
3answers
400 views

How should I make (3D) buildings that can be entered in the game?

I have no idea about how would I make a building that can be entered in a game. Should I model separate parts of it and than combine them or should I model the entire thing as one object? Are these ...
0
votes
1answer
756 views

How to make an object destructible?

I have some 3d models that I have downloaded from Unity asset store. Most of the time, these objects are not "separatable" so I can't apply a destructible effect. Is there a way to separate a model ...
2
votes
0answers
245 views

3D Physics Engine Collision Response: Solving Simultaneous Collisions via equation

I have been implementing a basic physics engine for a small game project I'm working on. It has very specific requirements, so I decided to try and write my own physics engine to meet them. I found ...
0
votes
2answers
210 views

Fixed distance between character and ground whatever slope value

I am working on character moving on any ground meaning whatever slope degree ,the result i got is the character does not moving on just shake in his place the following the code i wrote ...
0
votes
3answers
98 views

Determine if the player should be able to interact with a door

You know the drill, standard first person door mechanics. How do they do it? My most noticeable and frustrating problem is when there is a door within range and in view, but the closest door is ...
0
votes
1answer
523 views

What is the “correct” way to render to a cubemap using Vulkan?

After searching far and wide for the solution to this, the only one I have been able to find that verifiably works is to the render a face to a framebuffer and then use a memcpy to copy that ...
1
vote
2answers
598 views

How do point clouds become polygons?

I have reached some limits in my game experiments that seem to be solvable by working with content as 'point clouds'. My main concern now is how to convert the resulting point clouds into polygon ...
0
votes
2answers
86 views

How are walkable regions determined, and movements handled on a 3D map?

I've created a 3D scene with both indoor and outdoor parts. The outdoor part has bridges and caves also. How is it possible to handle player movements on it? My intuition is: To determine the ...
1
vote
2answers
561 views

Should the level design be in Unity scenes (GameObjects) or in 3D programs (mesh) [closed]

I am wondering what is the most common and best way to design a game in Unity from the point of view of best practice and performance and the most easily maintainable? Is it really performant to ...
1
vote
3answers
510 views

Are there viable alternatives to polygons for creating 3D worlds?

Of course, I see the benefit in using polygons to create 3D worlds. But I sometimes wonder if other methods exist and have been used in published computer games; perhaps even hybrid methods of 3D ...
2
votes
2answers
261 views

Convertion from 3D to 2D openGL

Few days ago , we learned about Homogeneous Matrices in OpenGL class. From what I have understood , using these matrices we can convert 3D objects to 2D. However , I am facing some difficulties ...
-3
votes
1answer
83 views

Translate Object position into Time

I have a cube which i am moving in circle shape (with horizontal key input) is below code suggested. ...
1
vote
1answer
442 views

Mesh from MagicaVoxel cast a strange holed shadow

I have a problem with any mesh I import from MagicaVoxel into Unity. As you can see from the screenshot below, the mesh on the left cast a shadow that has holes in it. That's a basic 7-voxel mesh ...
1
vote
1answer
47 views

Handling different renderers Y axis direction in a single engine

I have an engine that uses either three.js (3D WebGL rendering library) or pixi.js (2D rendering library) depending on the game. ...
4
votes
1answer
1k views

How can I make trailing ghost effect (3d game)?

I'm trying to draw previous frame of animation on screen you can see this effect here: https://youtu.be/WNL_KJNl6pU Mortal Combat X (left) , Street Fighter Alpha 2 (right): This effect also found ...
0
votes
1answer
55 views

How to create a 3D network-like interactive model? [closed]

link: Link to video. it's a small video only 1 min 40 sec I have included a link to the video which shows what I am trying to achieve, I am a beginner and I don't have any idea to do it, also I am ...
1
vote
0answers
28 views

Models overlapping in XNA 3.0

I have to use XNA 3.0 for a class at school, and every solution to this problem I've found only works in XNA 4. I am rendering several 3D models, and the one that's drawn last is always on top. How do ...
3
votes
1answer
345 views

How to make this generated terrain flat-shaded?

I'm generating a relatively low-poly terrain for my game using the code below: ...
2
votes
2answers
2k views

Unity 3d C# - Can’t move through the air while jumping

The code below allows my character to jump and move which works fine, except I can't move while jumping. I can jump in one place or jump in a certain direction but nothing else. I can't fix it, can ...
0
votes
1answer
54 views

What programs could I use to render an animation based on points (“atoms”) rather than models? [closed]

I've rendered the following animation using JavaScript and canvas: https://www.youtube.com/watch?v=AMLqe5HdVok For that, I used points exclusively - i.e., there is no mesh/trigs, not only the ...
2
votes
0answers
35 views

Is there an engine-agnostic tool for editing curve animations? [closed]

I am looking for a tool that allows to edit 3D animation curves. What I want is something similar to how the animation system works in Unity or others. Being able to create a timeline of ...
1
vote
1answer
297 views

Why do XNA/Monogame models create new BasicEffect instances?

My question is fairly straightforward, I think. Using Monogame, when I load a model using contentManager.Load<Model>("Model"), the model's mesh has a ...
3
votes
1answer
163 views

Rigid body falls through static mesh even though collision is detected

I'm using Jitter Physics to create a game. For testing, I have ball (a spherical rigid body) falling onto a small box-like mesh. The problem is that the ball falls straight through the floor, even ...
0
votes
2answers
67 views

How to set X and Z axis to 0 after transform.rotation in c#

Recently I start using C# instead of JAVA and I don't know how to set a value in a eulerangle only for one axis. Maybe I don't need to do that, so better I explain what I'm doing: I have a 3D object ...
6
votes
2answers
351 views

How much matrices should I use for OpenGL transformation?

As I start to get some deeper(or at least a little bit better) understanding on how camera transformations works, I am curious about one thing: How much matrices should I use ? I mean, until now I ...
1
vote
1answer
192 views

Move an object to a point relative to the second camera

I have two cameras, one for the UI, one for the 3d objects. The UI camera is just a simple, perspective camera. The ...
1
vote
1answer
158 views

How does XNA/MonoGame project 3d to 2d?

I am trying to figure out how XNA is actually projecting a 3d world space coordinate to screen space. I decompiled the MonoGame framework and copied the CreateLookAt und CreatePerspectiveFieldOfView ...
2
votes
2answers
1k views

Can I clip a collection of geometry to render only inside a particular worldspace volume?

I am making a VR app in Unity. I have a giant map that I want to display on a virtual table. The map is too large to fit on the table, and I cannot change its size. (It is a third party asset, and ...
0
votes
1answer
140 views

Which Type of Collision Detection should I use?

So over the past week I've been scratching my head over SAT (Separating Axis Theorem). I know how it works, but can't seem to get the C# code right. There's always one face or edge that's letting my ...
0
votes
0answers
292 views

Handle weapon rotation with camera in FPS game 3D DirectX 11 C++

By now i have -A working camera that moves around the world (z-axis is where it looks, y-axis is the one that aims above it and x-axis is the one to the right) -A gun that follows the camera (so i ...
0
votes
1answer
42 views

Single-face, Multi-plane geometry?

I'm just getting started with 3D so I'm not sure what's this is called. If I move a point in a polygon out of alignment with the other points in the polygon, such that is would be on a separate plane, ...
0
votes
2answers
153 views

Creating new static sprites for Warhammer 40K Armageddon Pc Game [closed]

I want to create new unit sprites for the Warhammer 40K Armageddon pc game. Game uses simple 3D static PNG sprites facing 6 different direction for all units. They don't animate in game, just ...
0
votes
2answers
517 views

.obj file reader for DirectX 11

It's been something like a week and i still can't sort this out. I need something that converts a .obj file into data readable and drawable by my framework. I have 1 main issues: indices. I think i'm ...
0
votes
1answer
302 views

How do I implement object picking, using OBB in OpenGL?

I am trying to make 3D drawing software. I wanted to have the drag feature so I am using object picking using the OBB algorithm. I am facing problems in understanding the algorithm, and my ...
3
votes
1answer
90 views

How can large terrains be represented in multiplayer games?

To give you a bit of context, I often try and imagine how big games are working, especially networked and multiplayer games. This is how I came to this question: how do big 3D multiplayer games load ...
2
votes
1answer
428 views

glsl directional light specular seems to be relative to origin not camera

I've been using the LearnOpenGL tutorials to calculate directional light. The diffuse works perfectly fine but the specular seems only work properly when the camera is near the origin and the specular ...