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.

0
votes
1answer
20 views

Unity, Object's vectors are not rotating with the object. what did i do wrong?

i found a youtube video (Sebastian Lague) that has a really good movement script, i understood it and used it for my character, when i started moving it, i noticed that the character rotates but his ...
0
votes
0answers
18 views

Managing character movement in 3D in AR

I'm working on an ARKit project where I need to manage the movement of an object (white box) on a plane (blue square). The characteristics of the environment are : The box can move only in 2D along ...
0
votes
1answer
63 views

Get a Jump normal gravity based on Attractor Points, lines or Quad placed in the Level Design (in a Mario galaxy like gravity)

I have an algorithme to find. I have a player in a 3D space on a random planet. My goal is to have an oriented gravity toward my planet. And when I jump: Find the right normal direction. BUT I can't ...
0
votes
1answer
24 views

how do I move an object based on rotation of another object?

This question is related to my other question about camera rotation. I hope its acceptable to ask a second question. I cannot figure out the math of how to calculate moving the camera to stay behind ...
0
votes
0answers
8 views

Detecting when a single group of blocks is broken into multiple groups

Let's say you have an array of blocks (AABB), where each block is touching or intersecting any number of other blocks. Together they make up a larger object, and because they're all touching, you can ...
0
votes
1answer
47 views

How can I create a tunnel/parallax/depth effect based on mobile device tilting?

I would like to create applications similar to what's displayed in these videos: VR Tunnel Live Wallpaper for Android The parallax view Part 1 These mobile application are supposed to react to ...
1
vote
0answers
23 views

Discrete line inside a 3D matrix

First of all a little premise: I'm following this tutorial on YouTube for procedural 2d cave generation in unity using cellular automata and I'm extending it in order to make caves in all three ...
0
votes
1answer
15 views

Transfer mouse movements to a GameObject in 3D according to camera position and rotation

I'd like the game object to follow the mouse but I have trouble doing this when the object is in 3D and the camera has been rotated. The only thing that seems to be true (and still it works only when ...
0
votes
1answer
16 views

synchronise two coordinate planes

So i have two coordinate planes. One is player and mouse click position relative to player. Other is the world map. I need to find the point on the world map, where the mouse clicks. The map is ...
1
vote
1answer
41 views

How do I find the downward sliding direction of a plane?

first time poster. I'm curious as to how I can obtain a vector that defines the downward slope of a 3D plane. The goal is to apply this to a player as a force to achieve a sliding mechanic, like in ...
0
votes
1answer
41 views

C# 2D Perlin Noise Heightmap By Seed

I need a function of 'Perlin Noise' in this format: public int PerlinNoise_maxY(int seed, int x, int z) { // ... } The function gets Seed, X cordinent and a ...
0
votes
0answers
20 views

Is it possible to generate a 2D surface that approaches certain mesh, and then a specialised ray-tracing function for it?

As an example, suppose we are trying to ray-trace a sphere. There are two options. The first one is to build a mesh of triangles approximating the sphere and ray trace it. Unfortunately, the more ...
2
votes
2answers
79 views

most compact way to represent dice face translations rolling in cardinal directions

I'm making a 2-D dice rolling game in BASIC (think mechanics similar to Devil Dice on the Playstation, but top-down 2D graphics). I'm trying to accurately represent the transitions of a die when ...
0
votes
1answer
21 views

Interpreting focal length in units of pixels

I am working on a renderer of sorts and I have some fundamental questions. Let's say I have a vector in a 3D virtual world space which is unitless, and I want to project it onto a 2D screen, so I need ...
0
votes
0answers
12 views

How can I prevent the balls from merging? [duplicate]

In my game mutiple balls are overlap/merge into one ball.please tell me solution of this problem.
0
votes
0answers
36 views

Godot: Possible to create a 2D tilemap and set it as a texture for a 3D surface?

If I created tilemap of some sort of pattern or image and wanted to set it as the texture of a 3d surface or 3d model, how would I do it?
0
votes
1answer
37 views

Scrolling in 3d Shmup with 32Bit era effects

How can I create a scrolling effect like in Ikaruga, where the background is on Rails and the foreground is fixed with the player in Unity? https://www.youtube.com/watch?v=H6d0PkEPKSk Some more ...
1
vote
0answers
28 views

OBB vs Frustrum collision detection

Some definitions: An oriented bounding box (OBB) is a rectangular block which can be represented in many ways, as a collection of eight vertices, a collection of six planes or others, for this ...
0
votes
1answer
35 views

unity input controls

so im going through the roll a ball tutorial for unity and ive gotten though setting up all the controls to allow my ball character to move around the space ive built. but the tutorial says nothing ...
0
votes
2answers
52 views

Find if one player is visible to the other

Two players (p1 and p2) are standing in a 3D space, represented by points (x1, y1, z1) and (x2, y2, z2). Player 2 is holding a light source, pointing in the direction given by a normalised vector (xn, ...
1
vote
0answers
30 views

Convert bones by bone matrix

I have a 3d-models from old game. They have the following structure: ...
0
votes
1answer
54 views

Polygons depth sorting in Z-buffer

Why is it that the Z-buffer algorithm does not require polygons to be depth sorted to function correctly?
0
votes
1answer
61 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
2answers
113 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
143 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
63 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 ...
1
vote
0answers
46 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
33 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
2answers
60 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
143 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
42 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
66 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 ...
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
97 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
102 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
30 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
69 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
29 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
54 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
24 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
40 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
85 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
63 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
52 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
107 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 ...
-1
votes
1answer
657 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
104 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
76 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
121 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
49 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 ...