Questions tagged [projection]
Projections are several different types of geometrical mapping functions. In 3D, a projection maps three-dimensional points to a two-dimensional plane.
250 questions
0
votes
0
answers
77
views
Projecting 3D gaussian's transform matrix to a 2D viewspace transform matrix
Essentially I'm wanting to project:
A 3D transformation matrix of a Gaussian (or in this case for simplicity a unit sphere) that includes scale, rotation and translation in world space TO
A 2D ...
1
vote
1
answer
682
views
Why don't more top-down 3D games use an oblique projection, instead of tilting their models and sprites?
I'm making a 2D game in Unity that is set-up in 3D similarly to Enter the Gungeon, where I have an orthographic camera rotated 45 degrees. This makes sprites look wrong and I've seen two main ways to ...
0
votes
0
answers
112
views
How to project textures on to the mesh and overlap them like in Let’s Play Pottery?
I want to learn how to project textures on to the mesh and overlap them like in Let’s Play Pottery. I have an idea for game. I created Models, 3d viewer but I can’t figure out how to implement texture ...
0
votes
1
answer
92
views
Problem with 2D projection
I have a green circle:
Inside the circle, the white frame moves to wherever P, the projection of the targets 3D position into a 2D point, is.
However, outside the circle, the frame will move to the ...
0
votes
1
answer
121
views
Diagonal directions for cuboid in 3/4 axonometric rpg view
In pixel art, how can I construct the diagonal directions for this cuboid?
The goal is to create an 8 directional turnaround for a 2D top-down game.
I am using the 3/4 rpg view, made popular through ...
0
votes
0
answers
135
views
How should I avoid the weird stretching that comes with a projection matrix?
I have an x+ forward matrix defined with the following funciton:
...
0
votes
1
answer
179
views
How do I determine which pixel is under the cursor when looking at an equirectangular image through a camera?
I am working on a game. The camera is freely rotatable by the user. The background is displayed from an equirectangular image. I need to know which pixel of the background image is located under the ...
1
vote
0
answers
52
views
How to Generate a Texture to Make an Obstructing Plane Appear Invisible in a 3D Scene?
I have a 3D scene with a camera. Between the camera and the scene, I have a plane with arbitrary orientation. This plane obscures a portion of the scene from the camera’s perspective (anything behind ...
2
votes
1
answer
453
views
Calculation of far distance plane based on yaw and pitch for a map renderer
I'm working on a vector map renderer. I want to calculate the far plane for a protective transformation, based on the yaw, pitch, roll and height of the camera above the map. Yaw (looking to the left ...
2
votes
0
answers
137
views
How to correctly rotate 2D orthographic projection around a central point?
I want to rotate a 2D orthographic projection around the centre point of my view. However, something is off (it looks like a translation) but I'm not sure what.
To put some concrete values on the ...
0
votes
1
answer
889
views
Camera Calibration custom Model-View-Projection matrix in Unity?
Coming from this topic
I have a Model-View-Projection Matrix obtained from a Camera Calibration method, from where I want to render the scene:
...
0
votes
1
answer
1k
views
glm::frustum vs glm::perspectiveFov
When I use glm::perspectiveFov(90.0f,512.0f,512.0f,1.0f,256.0f) I receive a working perspective projection with 90° in both x and y, as seen below (camera is in ...
0
votes
0
answers
78
views
Perspective projection distortions
I'm building my own engine using python and pygame however my cube model is not able to be displayed correctly. This is my result after applying translation, scaling and projection matrices:
...
0
votes
1
answer
237
views
Perspective projection not working as intended
I copied a perspective projection matrix from here (https://jsantell.com/3d-projection/) and applied it to my vertices. It looks ok but without depth. Rotation matrices also work.
When I try to divide ...
0
votes
2
answers
254
views
Hybrid perspective / orthographic projection
I'm trying to figure out how to setup camera projections such that they fulfill following requirements:
main scene is rendered with perspective projection
camera / viewport controls allow only zoom (...