Tagged Questions
2
votes
0answers
40 views
uniform z slices in clip-space
1) Context
I'm using a regular OpenGL perspective projection matrix created with GLM (glm::perspective) and taking the inverse (glm::inverse) to transform clip-space back into view space (and world ...
0
votes
1answer
61 views
Ways to “invert Z-axis” in shader-based core-profile OpenGL?
In my hobbyist shader-based (non-FFP) GL (3.2+ core) "engine", everything in world-space and model-space is by design "left-handed" (and to stay that way), so X-axis goes from -1 ("left") to 1 ...
0
votes
1answer
61 views
Problems projecting a point to screen [closed]
In my game I'm trying to implement an equivalent of gluProject, my problem is that the code only seems to work if the camera has no rotation. Even turning left and right affects the vertical position ...
2
votes
1answer
177 views
How to do perspective projection “parallax” but without changing the scale or offset of objects?
Hello everyone I have this problem that I have tried everything I could think of. The problem: I am making a 2D game with parallax effect but I am using 3d space so am not simulating the parallax but ...
12
votes
1answer
192 views
Orthographic unit translation mismatch on grid (e.g. 64 pixels translates incorrectly)
I am looking for some insight into a small problem with unit translations on a grid.
Update and Solved
I solved my own issue. See below for details. Everything in this part of the post turned out to ...
3
votes
2answers
340 views
Draw a projection of a mesh on a surface
I have a mesh looking almost like a cylinder, the cylinder goes through a mesh and continues on the other side. What I want to do is to draw the projection of the cylinder on the mesh. So if you look ...
0
votes
3answers
224 views
Project rendering onto a polygon in the scene
I have a function that renders a simple OpenGL scene. I want to display this scene on a polygon within another scene, without the function having to know about it. For example, to display the scene on ...
6
votes
1answer
4k views
Help understanding gluLookAt()
I am fairly new to openGL( 3 months ) and am asking for assistance in understanding the fundamentals behind gluLookAt().
Currently I have spent most of my time with openGL modeling scenes with fixed ...
1
vote
1answer
910 views
Restoring projection matrix
I am learning to use FBOs and one of the things that I need to do when rendering something onto user defined FBO, I have to setup the projection, modelview and viewport for it. Once I am done ...