Stack Exchange Network

Stack Exchange network consists of 175 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
2answers
87 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 ...
1
vote
0answers
51 views

How should a 3D map be stored?

I have an array of 3d vertices, Vertex3D[][] ground; so for each element in the array, I have an array of three 3D vertices, a triangle. But this means I cannot ...
-3
votes
0answers
65 views

Anyone want to form a team and make a game? [closed]

The title says it all. Please comment if you are seriously interested in forming a team and developing a game.
0
votes
0answers
8 views

How to organize the highlighting of a 3D object with which contact occurs?

I want to repeat a certain "Select (); - Deselect ();", as shown in the screenshot. Prompt with advice how to implement it or what you need to read to implement this feature. I tried to found ...
1
vote
1answer
66 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
3answers
106 views

How to stop player when game over?

problem is when game over myplayer not stop?? ...
2
votes
1answer
10k views

How can I make caves with Unity's terrain creator?

With Unity's terrain creator, I can't simply make a "hole" on the mesh. I don't know how I would make cave-like structures other than using "rock" meshes for the roof (wich will indeed look weird) ...
0
votes
1answer
49 views

Assigning relative force to a projectile fired while orbiting a sphere

Projectile Not Correctly Inheriting Parent Velocity (Unity3D) So I am trying to incorporate the above person's changes into a script I am making although I'm no great coder and I'm not even sure ...
0
votes
1answer
58 views

How to Set PlayerPrefs.SetInt?

playerpreferance.setint problem I am develop one game.In this game 15 levels. I am face this type of issues when send one level score into second levels. I am used player preferences in start() ...
3
votes
1answer
342 views

What is FOVx in this diagram?

a beginner game developer here. I have recently taken upon learning about 3D game development and I am stuck on a simple matrix problem. The image is found from this article: http://www.codinglabs....
1
vote
1answer
53 views

Multi-level 3D grid based pathfinding in Unity

I'm trying to come up with a way to pathfind on multiple levels. See image: The orange walls would be considered a ladder, connecting you to the upper levels. At first I thought of looking at it as ...
0
votes
1answer
15 views

Bullet Projectile Verticle Rotation

I'm very new to C# and Unity, and have been working on a projectile based weapon, and for the most part it's been working well. However, although the bullet fires facing the direction it's being shot ...
0
votes
1answer
59 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
1answer
397 views

How can I create the illusion of a 3D object moving around in a static background?

I'm designing a Resident Evil clone using OpenGL. I'm curious how the older Resident Evil games used a static pre-rendered background with 3D models roaming around: (source: spong.com) Here, if ...
0
votes
2answers
3k views

How to move my cube left or right using touch Inputs (C#) in unity

I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. ...
0
votes
0answers
24 views

Find mouse pos in 3D space?

I have a game where there is a set of tiles rotated 45° away from the camera. I want to work out what tile is being hovered over by the mouse, and for that I need to translate the mouse pos on the ...
-1
votes
1answer
78 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
1answer
259 views

Lat, Lon and elevation Conversation into unity coordinates

I have came across a very vague project problem and its feasibility report or communication procedures I have to define. And here is the current scenario: I have two applications One is built on ...
0
votes
1answer
62 views

How can I change position of camera?

I'm working on 3D game, where the player needs to complete 4 play fields called "homes" in level 1, then progress to level 2 which has 4 homes of its own. In level 1, when the player completes the ...
-1
votes
0answers
85 views

if else if problem

i'm working on 3D game, where the player needs to complete 4 play fields called "homes" in level 1, then progress to level 2 which has 4 homes of its own. In level 1, when the player completes the ...
0
votes
0answers
16 views

Moving and rotating object with another object [duplicate]

Sorry i bad painter)) Need move and rotate 'OBJECT №2' with 'OBJECT №1' I have origin point(also rotation point) and angles of two object. (Also min and max coordinates of these objects) Vector ...
1
vote
1answer
68 views

Move and rotate one object to another C++ [3D]

I have two object, need attach 'TWO OBJECT' to 'ONE OBJECT'. I have vectors 'angle' 'origin' of ONE and TWO objects. I tried do "TWOOBJECT.origin += ONE.origin - ONE.oldorigin", this just attach ...
1
vote
0answers
39 views

How can I get my player's character to slide along a rail?

I am creating a snowboarding game and would like my player to be able to jump on a rail and move along it if it lands on it. I have no idea how to approach this. I have already tried using ray casts ...
0
votes
0answers
402 views

Bird flight simulation (physics)

I tried to search something about bird-like animal flight simulation but it looks like everything is spammed with flappy bird 2D questions. I want to have in my 3D game bird-like animals with ...
0
votes
1answer
612 views

How to display distance between Player and object in UI text? Unity 5.5

I am an beginner in Unity, with no experience in scripting. Can someone help me with a script to display distance between Player and object in UI text? Using Unity 5.5, the scene is quite simple just ...
0
votes
1answer
31 views

Are the sides of a beveled rectangular prism considered “ngons”, to be avoided?

Many tutorials I have watched say that everything should be made in 'quads' (ie. no triangles, and no ngons). I think this is mainly due to getting into this habit so that if I make a complex model, ...
0
votes
1answer
93 views

How can I highlight words in a word search puzzle?

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 ...
-1
votes
1answer
53 views

What is the alternative (new) 3d projection called that solves the stretching / zooming at sides of monitor?

I understand about camera's and projections etc, such that we have distortion and zooming when at the sides of the screen (exacerbated on 21:9 monitors), however a few years ago, in a Unity forum ...
1
vote
1answer
375 views

FXAA Shader turns image upside-down

I'm trying to use an existing FXAA shader for anti-aliasing, which works, but when I try to run it, the filtered image is upside-down (vertically flipped) ...
5
votes
2answers
4k views

Handling movement on sloped surfaces - clamping character to sloped surface

I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
0
votes
2answers
73 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
1answer
206 views

Shadow Shimmering When Moving Objects

I am having a shadow shimmering in my scene when using a shadow mapping technique. I know that there is a lot of posts over the internet dealing with this subject but my issue is slightly different. ...
0
votes
1answer
46 views

Dealing with curved lines in GJK

I'm currently using a GJK implementation (supported by EPA for penetration) and I'm trying to optimise the calculation times of distance calculations. One of the biggest hits is trying to solve for ...
0
votes
0answers
37 views

Problem with repeating objects in array when already in the array

When the player move forward then paint is instantiate and stored in the array, even if the paint is already in the array it will again be stored in the array. But I don't want to repeat any paint in ...
0
votes
0answers
5 views

How to resize Unity Cinemachine Dolly track?

I recently imported a 1:1 scale building .obj model into unity and I'm trying too use cinemachine dolly track to navigate the interior of the building. The problem is that the visual of the dolly ...
0
votes
2answers
34 views

How can I edit collisions in Unreal Engine?

I made a concave house model. When I import it to Unreal Engine it generates a simple box collision that covers the full mesh. I need a collision that only covers the walls. How can I generate one or ...
0
votes
1answer
40 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
82 views

How to detect when the player has filled a shape?

In my game, the player is presented with a plane containing obstacles (orange / blue) and regions of empty space (white). The player moves their green cube around the empty space, which instantiates ...
3
votes
1answer
908 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
0
votes
1answer
63 views

Setting collider in 3D map (blender file)

New to gamedev and I also have no idea about 3D files but, I'll try to explain the best I can. We are using our own custom engine built in C++ with OpenGL (glm, gl3w, glfw, entityx) We have a 3D map ...
3
votes
2answers
388 views

Collision detection problem in XNA4/Monogame

I have been trying to get 3D collision detection working for a while and I think (hope) you people can help me. For my project I have created a 'sprite3d' kinda class which is called ...
3
votes
1answer
260 views

How to generate a multiplier map for radiosity

I am following this tutorial: here I am at the part where you are creating a hemicube. I have got the code to render the scene into a texture and therfore an array. Now how can I generate a so-called ...
0
votes
1answer
96 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 ...
1
vote
1answer
454 views

Unity3D CrossPlatformInput StandardAsset Multitouch

I have a small game I am working on, and I am trying to add touch support to it. Before I try to add that into the real game I wanted to do a test run on a small project. The project consists of a ...
1
vote
1answer
306 views

Cutting a 3D mesh with a 2D shape

I have a 2D image that i want to use to cut into a 3D mesh while leaving it closed (basically cut straight through it, and close it by generating vertices in both places it cut, front and back, to ...
0
votes
2answers
103 views

how to make image disappear in Unity 3D

Hey guys need your help with the scripting in Unity, that is, in my game there are several, say, buildings that a main character has to free from enemies and I put a kind of a logo above all those ...
5
votes
2answers
1k views

Displaying text on a 3D plane

I am busy with a pet project where I am trying to create a Collectible Card Game in 3D. These cards have Hp and Damage etc. but I cannot find a way to neatly display these values. I tried to use a ...
0
votes
1answer
23 views

How can spotlights be implemented with a perspective projection?

I was reading Shadow Mapping with Directional Lights and noted that spotlights are implemented by rendering with the perspective projection, stating that the spotlight worked just like the camera. ...
0
votes
1answer
51 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 ...
6
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 ...