Questions tagged [projection-matrix]
234 questions
0
votes
2 answers
Porting from OpenGL to MetalKit - Projection Matrix (?) Problems
Question
I'm working on porting from OpenGL (OGL) to MetalKit (MTK) on iOS. I'm failing to get identical display in the MetalKit version of the app. I modified the projection matrix to account for differences in Normalized Device Coordinates between…

janoside
- 2,625
- 1
- 17
- 12
0
votes
1 answer
Calculate camera matrix with KNOWN parameters (Python)?
OpenCV provides methods to calibrate a camera. I want to know if it also has a way to simply generate a view projection matrix if and when the parameters are known.
i.e I know the camera position, rotation, up, FOV... and whatever else is needed,…

Makogan
- 8,208
- 7
- 44
- 112
0
votes
1 answer
Convert Projection Matrix to Realworld Matrix
I'm using the following code to get the projection matrix from ARCore.
Frame.CameraImage.GetCameraProjectionMatrix(m_Camera.nearClipPlane, m_Camera.farClipPlane);
I would like to convert the Projection Matrix to World Matrix from the perspective of…
user6038900
0
votes
1 answer
Why don't my shaders work for trapezoids polygons?
I need to draw parts of a texture on trapezoids polygons. (old school fake-3D race game, the road is made of these trapezoids and I want to apply a texture on them.)
But the texture appears wrong, like if each of the two triangles forming a…

Diego
- 569
- 1
- 9
- 28
0
votes
1 answer
Projection of 3D Lidar point in the i-th camera image (KITTI Dataset)
I am working on an object classification problem, and I am using Lidar and camera data from the Kitti Dataset.
In this article: http://www.cvlibs.net/publications/Geiger2013IJRR.pdf, they provide the formulas for projecting the 3d PointCloud into…

Doxcos44
- 135
- 2
- 12
0
votes
1 answer
Render- and Eyespace- misalignment causing imprecise raycasting
I have been working on a Minecraft-like voxel game for a while and decided to implements block placing and destroying via raycasting. I realized however, that when standing very close to a block, the block rotates around itself rather than the…

J. Lengel
- 570
- 3
- 16
0
votes
0 answers
Building Virtual Camera in OpenGL with Given Intrinsics
I am trying to get simulated depth image of an object model in OpenGL given the intrinsics parameters of a RealSense camera, fx fy ppx ppy.
I construct the projection matrix myself with the help from this, that and also that. Somehow the result is…

mjfoo21
- 7
- 2
0
votes
1 answer
How to convert back points in 2d to 3d with known orthogonal (camera) projection matrix?
I have a numpy array with 2d points that I convert from 3d to 2d via the following equation:
https://wikimedia.org/api/rest_v1/media/math/render/svg/198f15da062c7ce00598d7a2f9bd8169d7042ed3
How can I convert the point back to 3D?
I used the top down…

Josue
- 11
- 2
0
votes
1 answer
ArCore :: anchor - To appear in front of camera always using ArSession_acquireNewAnchor API
App-info:
I am developing an Android application based on ArCore (NDK) to augment certain objects (generated from blender tool) over real camera feed. Now that I am able to draw objects as anchors which scales up/down upon camera position changes.…

ShreeVidhya
- 123
- 9
0
votes
0 answers
Behaviour of perspective projection to convert 3D point to screen
I'm recoding the rendering pipeline in c++ and have some trouble to make it works.
I mean, it's working but not in the way i expected.
To make it simple, i transform my 3D point to 2D point with a perspective projection matrix builds as follow :
My…

LenweSeregon
- 132
- 1
- 10
0
votes
0 answers
lwjgl Model(not from Blender) rendering behind the camera from +Z to -Z
I am trying to rendering a model but it is projecting behind the camera, i am thinking of the problem being in the projection matrix from the link having the same problem LWJGL Projection Matrix - Nothing Happens. I modified the projection matrix…

ch.Joshi elijah
- 103
- 2
- 11
0
votes
1 answer
How to move around in a terrain with respect to the viewing direction
I want to move around left/right, forward/backward in a terrain (delta x, delta y in m_mouseMovement) with respect to the current viewing direction. The following code works with zooming (mouse wheel). But movement works only as long as the viewing…

Hyndrix
- 4,282
- 7
- 41
- 82
0
votes
0 answers
Understanding CSS3DRenderer in depth
i hope you're all doing great even though it's probably hot as hell outside!
I am currently working with Three.js' CSS3DRenderer to combine both DOM elements and webGL content. I managed to do everything i wanted but now I'm kinda curious about how…

Jonathan
- 1
- 2
0
votes
1 answer
Project visible pixels in one view onto another
In WebGL or in pure matrix math I would like to match the pixels in one view to another view. That is, imagine I take pixel with x,y = 0,0. This pixel lies on the surface of a 3d object in my world. I then orbit around the object slightly. Where…

Marcus
- 97
- 1
- 2
- 8
0
votes
1 answer
libgdx - setProjectionMatrix
I am trying to render some sprites and I need the line batch.setProjectionMatrix(cam.combined); in order for the sprites to move independently from the camera, however when I add this line the sprites suddenly turn abnormally large, but without it…

Grual
- 73
- 6