Questions tagged [projections]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
74 views

How are textures projected onto 3d models in texture painting applications

In most modeling software you can texture paint onto 3d models using so called stencil textures. They basically project a texture from the viewport view onto the model as seen for instance in the ...
2
votes
1answer
69 views

How is orthographic projection used in computer graphics technically classified as a projection?

I'm wondering why the orthographic projection we use in computer graphics is called a projection, if all it does is just scale and translate a mesh? According to wiki orthographic projection is ...
4
votes
1answer
82 views

Perspective correct interpolation z-buffer

While I was deriving expressions for perspective-correct linear interpolation on triangles, I reached the conclusion that the interpolation may be kept linear only if view-space $Z$ is available. ...
1
vote
0answers
78 views

Why does my self-written rendering engine make further away objects look larger?

I am writing a very simple rendering engine. I have already made a few tests, but somehow the images it creates look wrong. Objects that are further away from the camera look larger than objects ...
2
votes
1answer
82 views

How to unproject cursor with orthographic projection

With perspective projection we can unproject screen space coordinates of the cursor to the near and far plane of the frustum and calculate the direction of the ray through the cursor. ...
0
votes
0answers
53 views

Consistent Video Depth Estimation from Monocular Lens to approximate LiDAR?

If the iPhone had LiDAR sensors, it would be possible to generate a 3D point cloud that you could theoretically use to furnish a 3D AR reconstruction of your surroundings. E.g. you could create an AR ...
0
votes
0answers
24 views

Does rotating object inside unit cube [-1,1] by homogenous matrix move it outside unit cube

I am just trying to rotate my pointcloud object which is inside the unit cube ([-1,1] in all x,y,z axis). What I did is use the basic rotation matrix from wiki and extend it to homogenuous 4x4 matrix (...
0
votes
0answers
22 views

Determine the screen space bounding box of 3D perspetive projected plane

I want to draw a 2D axially aligned rectangle in screen space that covers an arbitrarily oriented 3D projected plane. It sounds easy, just project the 4 corners of the plane, compute the extents, draw ...
0
votes
0answers
19 views

Projection algorithm of 3D triangle onto 3D triangle. Simple Shadow

Given two triangles consisting of 3 vertices i was able to calculate where the given sunray starting from first triangle's any vertex would hit another triangle by using the algorithm below. I'm ...
0
votes
0answers
19 views

Projective Texture Mapping when Texture Comes from a Framebuffer? Incorrect Texture Coordinates?

I am trying to perform a projective texture mapping using a texture which I generate by first drawing it to a framebuffer, so that I can dynamically generate a reflection which interacts with the ...
0
votes
1answer
53 views

Keep constant number of visible circles in 3D animation

I have created a 3D animation with a perspective projection of white circles moving randomly in a fake 3D space projected on a 2D computer screen (GIF 1). Since I need to keep the same number of ...
0
votes
3answers
226 views

perspective matrix derivation

Now there has already been an answer here in this stackexchange, but I don't understand certain aspects of it. The author has MORE DETAILED DESCRIPTION HERE(#1) but the problem is he doesn't describe ...
0
votes
0answers
103 views

how is zooming done in computer graphics

Since a projection plane and a center of projection is used for achieving perspective projection, the shape of the view frustum doesn't change changing the focal length(which is the distance from the ...
2
votes
1answer
50 views

Y axis inversion in 3D rasterization

What is the correct way to invert the y axis during the 3D projection? I see a lot a people doing: ...
1
vote
0answers
117 views

Intrinsic Matrix vs Perspective projection matrix

I was going through the camera matrix explained in the wikipedia article and understand how the matrix K \begin{bmatrix}f_x&s&x_0\\0&f_y&y_0\\0&0&1\end{bmatrix} is built. The ...
0
votes
1answer
51 views

Understanding the near clipping plane

I don't understand something about the near clipping plane. It's there to avoid the division by $0$ but when we compute the pixel coordinates, we just need to multiply by the clipping plane to clip ...
2
votes
0answers
33 views

Project a Square as rectangle in projection plane using perspective projection

Consider a square S with vertices (1,1,0), (1,-1,0), (-1,-1,0) and (-1,1,0) and a plane P defined by $z=1$. Let the perspective projection of S on P is denoted by S'. What coordinates of the Center ...
1
vote
0answers
50 views

How to Pan Zoom a spherical camera?

I asked this in regular SO but I think people are not understanding the question so i will try here: So, for anyone familiar with Google Maps, when you zoom, it does it around the cursor. That is to ...
0
votes
1answer
62 views

Why is the z direction away from the screen/viewer?

I wonder what is the reason that when z increase, the objects appear far away and when z is negative, the object is behind the camera?
0
votes
0answers
37 views

How combine multiple projections into a single pass?

We have a projector type display used in an automotive application, where a projector displays an application on the windshield. Because the projector would normally warp a flat image, we have to ...
0
votes
2answers
40 views

3d Math Primer book equation derivation - Projecting One vector onto another

I'm reading the book 3d Math Primer for Graphics and Game Development 1st edition by Fletcher Dunn and Ian Parberry. On page 61 there's this: How does it derive $ v_{||} $ there? It doesn't follow ...
1
vote
0answers
23 views

Projecting a point on a Freefrom surface

My first issue is getting a set of planes and a set of points as input, an find the projection of the those points on the nearest plane. That was pretty easy, where i just calculate the normal of the ...
2
votes
2answers
91 views

What exactly is the orthographic projection used by Matlab

I would like to imitate the orthographic projection that Matlab uses by default: Matlab View Projections and Matlab camproj It seems similar to the "Trimetric" projection described here: ...
0
votes
0answers
32 views

What quad will fill the screen, which can be inverse-projection-view transformed to map to the near frustum plane?

I've been experimenting with raytracing using GLSL. I had success rendering a cube which encloses the object. Now I want to do a full-screen raytrace, and I want to construct a quad which covers the ...
0
votes
1answer
93 views

Can pixels on the image plane be mapped to world space coordinates?

I'm trying to learn the fundamentals of 3d computer graphics by writing a toy framework in WebGL. I'm currently working on mouse based camera controls. There are plenty of good resources in the ACM ...
0
votes
0answers
162 views

Inverse texture mapping

I have a textured 3D object and looking for ways to transform back the texture. Effectively, I think this is an inverse texture mapping task. Do you know of anything close to this? Some papers or ...
0
votes
1answer
111 views

WebGL Can't render anything, wrong projection?

I'm trying to understand and learn WebGL and computer graphics from the bottom up, that is why I started to work on my own little library for that. I've spent a couple of days looking for a right ...
4
votes
1answer
198 views

Do straight lines always remain straight when projected with a perspective camera?

If I have a straight line in 3D space and I use a camera matrix to do a perspective projection into a 2D plane/screen will the resulting line always be straight too? If I project the start point and ...
1
vote
1answer
114 views

How to translate the center of an equirectangular projection?

I'm trying to perfectly align two or more equirectangular photos of the same place taken from slightly different positions. Using an example provided by openMVG I managed to get the relative position ...
3
votes
0answers
268 views

What to reproject when doing temporal filtering in stochastic screen space reflection?

I am in the middle of implementing stochastic screen space reflection based on frostbite presentation here. On page number 39, it is stated that we need to reproject the ray intersection location ...
3
votes
1answer
480 views

Need help with change of basis (world to camera frame)

I'm reading up on coordinate systems and geometric transformations but the change of basis topic still confuses me. I found this exercise but, honestly, I wouldn't know how to begin: Given a world ...
2
votes
2answers
847 views

3ds max: Z-fighting when working with Large Objects

I had a z-fighting/z-clipping issue with a scene containing some very large objects yesterday in 3ds max. It can be seen in the image below: For some reason downscaling the scene significantly (a ...
1
vote
1answer
112 views

Overlaying a grid on to a height map

What is the method used in overlaying a grid (agonostic of the grid type) on to a height map? It seems it's some sort of projection, but what are the technical details in how to implement it? An ...
1
vote
1answer
344 views

Project vertex onto plane

What I have: a plane given by its normal$\ n $ and a point on the plane$\ p $. a 3D-point$\ v $. a direction$\ d$. What I need: the projection of$\ v$ along$\ d$ onto the plane. How can I ...
0
votes
1answer
968 views

finding the projection matrix for one point perspective

I found the derivation for two point and three point perspective here on this site, even though it says review on one point perspective, it doesn't give a link to previous pages, but I'd like to ...
0
votes
1answer
766 views

perspective projection transformation matrix

In one text, the derivation for perspective projection goes like this: If $x',y',z'$ represent any point along the projection line,and $x_{prp},y_{prp},z_{prp}$ are the projection ...
0
votes
1answer
115 views

How to compute A and B in projection matrix

I'm trying to compute a projection matrix to transform from view space to NDC with a near clip plane at -1 and far plane at +1. The general form of this matrix (disregarding aspect ratio and focal ...
2
votes
1answer
118 views

Computing perspective directly

Assume the screen is axis aligned with origin at 0 and there is absolutely no view transformation. in other words we will simply try to project the model onto the screen plane following perspective. ...
8
votes
2answers
2k views

Why do GPUs divide clip space Z by W, for position?

Background: I found that it is very easy to use a linear depth buffer, using only a slight modification to the canonical vertex transformation. The simplest method is found at the bottom of https://...
3
votes
0answers
36 views

Possible approach for product mockup creation including distortion created through perspective

I am not an expert in 3D nor computer graphics. Please forgive me if I use wrong wording. High level problem description: For an online shop, I would like to create mockup images of apparel (t-shirts,...
1
vote
2answers
71 views

If a 3D scene is rendered onto a hemispherical display, will there still be warping near the edges?

When a 3D scene is rendered to a 2D display, the image is distorted near the edges of the display. If a 3D scene is rendered onto a hemispherical display, will there still be warping?
2
votes
2answers
412 views

How to generate the stereographic projection of a 3D model

Given a 3D model, is there a way to stereographically project it to a 2D image? In particular, I would only need a little more than half the model (the lower half) to be mapped to the plane (mapping ...
2
votes
1answer
8k views

How to derive a perspective projection matrix from its components?

This has been haunting me for several days now. I want to find the component that makes up of this 4x4 perspective projection matrix, with $l$(left), $r$(right), $b$(bottom), $t$(top), $n$(near), $f$(...
1
vote
1answer
65 views

Determining slopes of lines in perspective projection

Suppose I have parallel lines running along the ground (into the horizon). If I have a camera and I know its tilt angle, is there a way to calculate the slopes of the lines as projected to the 2D ...
3
votes
2answers
102 views

Projective texturing from many images

Problem: I'm trying to dynamically texture a mesh of the real world generated by the Hololens over time using photos also captured from the Hololens, perhaps one photo per second. Each of the photos ...
2
votes
1answer
2k views

How to decompose projection matrix?

I want to decompose projection matrices into near, far, top, bottom, left and right values to create a bounding box for view frustum. I used the formula described in this site Decompose the OpenGL ...
1
vote
0answers
39 views

3D reconstruction using 2D matched points

I have 2 images, called left and right images. I have some matched points $[c_l,r_l]$ and $[c_r,r_r]$ in both of them (these points are in pixel coordinates). For a 3D point in the real world, they ...
3
votes
1answer
96 views

How would I convert a picture of a slanted surface into a straight one? [duplicate]

Suppose I took a picture of a whiteboard at an angle. If I could detect where the corners of the whiteboard are, what algorithms and linear projections could I use to convert this slanted view into a "...
1
vote
0answers
34 views

Program to visualize geodesics and linear projection of an ellipsoid simultaneously

I am trying to solve a problem in computer graphics but to do it I need to be able to see a comparison of geodesic lines and straigth line projections on the ellipsoid. I have not been able to ...
-1
votes
2answers
194 views

The distance from the cube sides to the parallel projection plane

I have asked this question on ru.stackoverflow.com and have no valid answers. Specification: Coordinate system Cube spins around its center on all three axes. Turn angle is not known previously. ...