Questions tagged [camera-matrix]
The camera-matrix tag has no summary.
48 questions
0
votes
0
answers
55
views
Need help with portal rendering
I've been working on this hobby game engine in C and Sokol with CGLM for a short while now, and I've ran into a bit of a snag regarding portal rendering. It works as it should when the player camera's ...
1
vote
1
answer
70
views
Can't replicate view matrix from known camera parameters
I know the real value of my view matrix, which is composed of a 3$\times$3 rotation $R$ and a translation vector $\mathbf{t}$
$$
R=\left(
\begin{matrix}
0.935002 & 0.0608577 & 0.349381 \\
0....
0
votes
1
answer
221
views
Vulkan 2D Orthographic Camera
I'm new to graphics programming, trying to learn Vulkan using C and CGLM for math. I'm having trouble understanding camera projections. I'm drawing a rectangle, but when I use anything other than ...
0
votes
0
answers
98
views
Projection matrix to Intrinsic parameters
I want to convert a projection matrix in the following form:
$$ {\bf P} :=
\begin{pmatrix}
\frac{f}{a \tan\left(\frac{f}{2}\right)} & 0 & 0 & 0 \\
0 & \frac{f}{\tan\...
-1
votes
1
answer
71
views
Projecting Vectors (3D to 2D) Using Homogeneous Coordinates, With Known Camera Calibration
Suppose I have vectors in a 3D space (their starting points, dx, dy, and dz), and I would like to project them onto a camera, which I already have as a 3x4 projection matrix.
I can of course project ...
0
votes
1
answer
116
views
Why does Zooming in does not work with Projection Matrix but works in Real Life?
My goal is to project 3D bounding boxes to an image. For those who are not familiar with what 3 Dimensional Bounding Boxes are, they are basically boxes defined by eight corners encapsulating an ...
0
votes
1
answer
140
views
Generate camera trajectory with cameras' lookat following shape
I am trying with no avail to create a camera path that follows a lemniscate shape as shown in the figure.
I do it in 3D but just set the vertical dimension (y) to a fixed number so really is 2D. the ...
0
votes
0
answers
134
views
Rotating a set of cameras to look at a rotated object
I'm trying to use Instant NGP on a synthetic image dataset. I have image sequences of a moving object with the following information:
I have the object's xyz and the camera's xyz positions in a void.
...
0
votes
0
answers
186
views
Is it possible to scale a view matrix?
My world has the base unit of 1024. Each tile is 1024x1024 units.
When the camera is at the center of a tile, the tile ranges from -512 to 512 in view space (no rotation).
Does it make sense (and is ...
1
vote
1
answer
103
views
Unknown array of floating point numbers. View matrix?
I want to control the camera in an old game using head tracking (TrackIR, opentrack, etc.), such control was not provided by the game engine. I'm trying to find the camera coordinates and rotation ...
1
vote
0
answers
46
views
A fresh perspective confusion about a paragraph
I am trying to re-implement the paper "A fresh perspective"
In this paper there is one paragraph on secion 2 that reads:
Usually, $z_s = z$
is the depth value of the point $P$, unchanged by ...
1
vote
0
answers
104
views
Inverting perspective projection doesn't yield frustum?
I have a cube with 8 vertices representing the $[-1,1]^3$ cube vulkan uses for device coordinates.
The perspective projection matrix takes a frustum and maps it onto this cube. It thus makes sense ...
1
vote
0
answers
137
views
Mapping a box to an inverse frustum
I have a non AA, non cubic, box living happily in 3D.
I have a frustum defined by 2 squares. one square is the square defined by [-1, 1]^2 and the other square can have any size, there is also a ...
0
votes
0
answers
127
views
Camera Perspective of 2D X/Y Plane
I'll start with the coordinate system I'm trying to use: If I were standing on the ground, facing north, the x axis is a line moving from the west to the east (positive X is east). Positive y is ...
0
votes
1
answer
90
views
3D projection Axis inversion problem (Java/Processing)
Unfortunately, I always had problems with math and was never good at it. I'm currently trying to combine math with my knowledge and my passion for programming.
Brief introduction: In math, we have ...