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.

-2
votes
0answers
33 views

Which are the best free 3D Game Frameworks? [on hold]

I am looking to design a game for android, However, I am not sure on what 3D game frameworks are available to use. I am not looking to use a game engine. I just want to use a game framework for ...
0
votes
0answers
55 views

3D Rendering c++

I'm trying to make a rendering scene with camera but I'm clearly missing something as, it displays well, but when i want to rotate my camera, it rotates my object instead. Could you check and tell me ...
0
votes
1answer
39 views

Unity: Creating Word Search highlighting

For days I am struggling to implement the highlighting functionality in game as there is not much tutorial also for this. I did how ever make the cell of the grid change the material color but it ...
0
votes
0answers
28 views

Rotate according global axis c++ Quaternion

I'm trying to rotate a camera in c++ but all I succeeded to do is rotate the object himself or rotate the camera around the object i can't figure it out. What I want is rotate the camera on itself ...
0
votes
2answers
83 views

Game assets are images or 3D models

I am new to game development and I have created simple games with javascript and SFML. Those games are 2D and there I used images as my gaming assets. I was trying to be familiar with OpenGL like 3D ...
0
votes
1answer
33 views

Unity3D C# Drag object smoothly on it's x axis that's already bouncing

In my scene, I have a bouncing ball that collides with a cube. On each collision the ball returns to the same height. How can I get the ball to smoothly move along the x-axis by dragging my finger ...
1
vote
1answer
47 views

Why does the head of my ragdoll act like its about to fly off its shoulders?

The problem can be seen here: https://gfycat.com/LimpingMerryGermanshorthairedpointer Ive created my ragdolls by using the Unity ragdoll creator tool. To begin with, all the limbs of my ragdoll ...
0
votes
0answers
73 views

how do i make this infinite in unity 3d

I am making a game where you wander around a world collecting things. I don't need it to have terrain. I just need to repeat this area a bunch of times as the player moves around. I got a script ...
1
vote
0answers
44 views

How to make backgrounds for 3D games? [closed]

I've started to study game design and I couldn't really find an answer for this one. Let's imagine a small level with a nice (non passable) background in the distance. The background has mountains, ...
0
votes
1answer
24 views

Problems when rotating object to animate in Unity

I am trying to create some animations for a car model in Unity and I have a problem with the rotation of the wheels https://imgur.com/a/HcWxyob Here I can set the rotation properly as the pivot ...
0
votes
0answers
17 views

UE4 how to make smooth transisions for surfaces

Looked for hours now. I'm looking for a way to make a smooth transisions for different surfaces. Like I want to make a minigolf course with things like downslopes but I don't want a hard edge for the ...
0
votes
2answers
54 views

3D affine transformation (rotation) mimicking Mode 7, Java 2D

I watched videos of games using mode 7 like Outrun or Space Harrier and I want to make a game which imitates this classic graphic. I was inspired by Notch's Prelude Of The Chambered too. After ...
1
vote
1answer
142 views

How do 3d game engines draw this pattern?

I am doing a small project, where there is a 3d engine, however I do not know how to draw something if it is like the image below. Usually I would draw from farthest back to closest. But here there is ...
0
votes
1answer
41 views

Logic at a low framerate with interpolated rendering at higher framerate

It takes too much processing power to do game logic on every rendered frame (60fps), so what if I made my game save frames? It would actually calculate important stuff 20 times a second, and the ...
0
votes
2answers
60 views

Adding force to a 3d object in a 2d scene

I have a 3d game object placed in a 2d scene (top-down view) in Unity. I want to add force to the object to move it in the direction it's facing. I attached a RigidBody2D component to it and when I ...
0
votes
0answers
40 views

How would one create an effect combining a ground plane in perspective with 2D characters/buildings?

I'm trying to figure out how this effect was made. The ground plane and fences seem to move and distort in perspective projection, but the characters, houses, and trees look like billboarded sprites. ...
6
votes
1answer
11k views

How can I make 3D games in 4K that are a few megabytes?

I would like to make 3D games in 4K that are a few Megabytes (MB) in download size. Is there a way to use 3D Vector Graphics in games to reduce the file size ? Or is there any other way to achieve ...
1
vote
1answer
93 views

3D Perspective issues

My team is currently developing a 3D Sidescroller game and we encountered some issues regarding the whole in-game perspective of the levels. The levels are composed of 3D modeled corridors which are ...
0
votes
1answer
42 views

First Person Shooter Character in Unity - Meshes Clipping When Close to Body?

I am working on a game character using Unity. I'd like it to be playable in 3rd Person and 1st Person depending on what the user chooses (switchable in game whenever ideally). I've worked on and read ...
0
votes
1answer
18 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 ...
1
vote
2answers
47 views

Draw text in OpenGL ES 3D game?

I am making a game using OpenGL ES 1.0 and I want to keep player score. So I need to draw text dinamically. What is the best approach? Some library, textures, bitmaps? I tried to use TextView but ...
1
vote
0answers
27 views

Does it make sense for a view matrix to have a scale?

When building a view matrix from an SRT matrix multiply, examples (here and here) only ever compose it with a R and T. Does it make sense to have the S component be anything other than the identity? ...
0
votes
0answers
34 views

Unity3D Hinge Joint Ropes Unstable

I need to create several ropes to go on the head of a mop, which can be picked up and moved around as a physics object by the player. I've tried composing each thread out of several capsules connected ...
0
votes
0answers
22 views

Efficiently drawing a batch of meshes?

I was playing around with some isometric ideas, I want to create fairly large maps with a couple of Z levels, much like the older X-com games. I figured I am probably way better off to draw the quads ...
0
votes
2answers
30 views

Adding large 3d models into Unity

I have a 3d model of a restraunt with several characters in it probably over a hundred objects. Whenever I try to import it into Unity Unity just loads forever until I force close it. How do you ...
0
votes
1answer
80 views

In a game such as Star Wars Galaxies, Planetside, and Warcraft how would server-side collision/terrain navigation work?

I'm trying to learn some advanced topics in multiplayer networking for fun and education, specifically how server-side collision/terrain navigation works in MMOs and/or any online game. Personally, I ...
2
votes
0answers
34 views

How do you find the collision between 3D boxes and 3D QUAD face meshes?

I have an axis aligned bounding boxes for 3D object collision, but I have a complex 3d mesh that's divided into 3d faces so I want to check for bounding boxes and collision with the faces of that ...
-2
votes
1answer
38 views

2D and 3D Tablet Games Definition

I would like some clarifications how to distinguish between a 2D and 3D mobile game, as mobile devices do not really have 3D screens. i) Do 3D iOS or android games really exist or are they 2D tablet/...
0
votes
2answers
73 views

How Can I Fix Spawning The Tiles?

I am making a 3D infinite runner game in Unity in C#. When the player has reached the end of the tile it should spawn another tile and then delete the previous tile. When the player reached the end of ...
0
votes
1answer
312 views

How to implement the seek steering behavior in Unity3d?

Following this tutorial: Understanding Steering Behaviors: Seek, I tried to add seek and steering behavior to my Unity prototype but it's not working this is my script. The cube does not steer it just ...
0
votes
1answer
66 views

Using 3D models in an 2D Game in libGDX

In my libGDX 2D RPG-Game (like Zelda or something) I want to display some items as 3D-Objects. Since I'm using an OrthographicCamera like this: ...
1
vote
1answer
63 views

Transforming a 2D Grid in 3D Space

Hi everyone, I'm trying to implement a 2D Grid in a simple 3D Editor. Here are some debug-rays I already implemented: Everything is working as intended as long as the object is not rotated. For ...
0
votes
1answer
89 views

Using PyOpenGL, can I rotate raw data rather than the current matrix?

I'm trying to create a sort of PyOpenGL renderer for the Bullet physics engine, and at the moment I'm rotating my basic cubes with math in Python. However, if I do the math in Python that's going to ...
0
votes
0answers
41 views

How to include car spinout in vehicle physics?

I would like to know how I can go about implementing car spinout in games. I heard that spinout is caused by loss of traction in the rear wheels of the car but I don't know how it relates to velocity ...
0
votes
1answer
72 views

libGDX 3D texture is stretched

I'm working on a 3D maze game using libGDX. I'm using MeshBuilder to render the walls. All walls are a single part made using a ModelBuilder in the create(): ...
0
votes
0answers
77 views

Weird object's behavior

I have created a character. It is a zombie that I design. I have this code for the zombie to follow my character controller: ...
0
votes
0answers
48 views

How do I find the texture origin using UV data?

I am writing a map decompiler for the video game Tron 2.0 and its map editor, DEdit. DEdit requires a set of three vectors in order to correctly map textures to each model. The vectors are what I ...
1
vote
0answers
56 views

How to implement weighted blended order independent transparency in OpenGL?

I want to implement weighted blended OIT in my C++ OpenGL 3D game, but I didn't find any C++ examples about weighted blended order independent transparency. Paper How to clear accumTexture(...
0
votes
0answers
21 views

How to implement floating behavior on player character

Lets say I have a body of water with the level of the water at each frame, with waves that basicly go up and down. How would you implement the computation of the velocity to keep the object/npc/player ...
0
votes
0answers
20 views

How to find volume of convex 3D shape

I'm not sure what can be said that isn't in the title. The gist of it, is that I have a convex mesh delimited by polygons (can have more than 3 sides), and I want to find it's volume. Is there an ...
21
votes
1answer
2k views

Why do transformation matrices always have an extra dimension? [duplicate]

In 3D math I always see matrices with one additional dimension. For example, in 3D graphics, matrices are always 4x4 and in 2d they are 3x3 matrices. Can anyone explain why?
0
votes
0answers
33 views

is that a pbr Shader?

im not sure about one thing: In my engine i have a shader wich takes: Diffuse, Specular, Normal, Metallic, Roughtness, Refraction,Height, Detail and Emission maps. The lighting is calculated using ...
0
votes
1answer
58 views

Collision not smooth in unity3d

I am working on a project(Racing car). When it hit an object the object should be destroyed. The Object is being destroyed when it is hit, but the car stops for a moment after hitting like an obstacle....
0
votes
0answers
43 views

If my game is free, do I still need licencing? [duplicate]

Studying 3D model development at the moment, and one of my ideas is to make a game in a near future. I like cars, I like games, and if I could I would be pleased to make my own racing game. But that ...
0
votes
0answers
65 views

How can I raycast a floor in a simple raycasting engine?

I've been following the infamous lodev raycasting tutorial for a little while now but I can't make heads or tails of how the raycasting for the floor/ceiling works. He seems to be drawing the floor ...
1
vote
1answer
35 views

Aim/Scope Oscillation Algorithm

I have been struggling to find an algorithm to implement something that will make a direction oscillate within a cone constraint, in a helix-shaped fashion as in photo (it will always go back to the ...
1
vote
1answer
98 views

I don't understand code that builds 3D sphere

I'm trying to learn some lwjgl and opengl, and I was trying to make a 3d sphere etc, I found a code to do that, but I don't 100% understand the code and the math behind it and would like to get some ...
1
vote
0answers
26 views

Switch Vector 3 x,y,z Components Based on Rotation

I have a cube that moves by rotating on its edge. I want my code to also work for cuboids. The following code is what I'm using to rotate my cube: ...
1
vote
0answers
130 views

Is there a way to convert a shader code to shader graph?

I would like to ask if there is a way to convert a Coded shader into the new Shader graph, beacause i want to edit my shaders in more efficient way. Any help is appreciated.
1
vote
0answers
31 views

How can I move the camera to create a parallax effect?

Right now I am making an application which can be described as model viewer for iPad Pro. The client wants to have an orbiting camera around the object and in addition he wants to have a parallax ...