I have a main scene centered on the center of the viewport
in addition to that I want another small object to be displayed on the corner of the viewport.
The trouble is that when I draw the small object, it is transformed by the main projection transformation and appears slanted. I want the small object to have its own vanishing point centered in its center.
Is this possible which just transformations?
OpenGL: perspective view centered not in the middle of the view?
1.4k views Asked by shoosh At
1
There are 1 answers
Related Questions in OPENGL
- How to fix "Access violation executing location" when using GLFW and GLAD
- getting Access violation writing location when calling glDrawElements caused by shader
- Experimenting with GLFW library: window boundary problem and normalized coordinates
- OpenGL Framebuffer/FBO RTT subpixel movement discrepancy
- Why isn't my glfw window showing anything?
- How can glPushMatrix affect the rotation of an object around a rotating object?
- g++ / vscode apparently cannot see my src folder? "cc1plus.exe: fatal error: src/glad.c No such file or directory"
- Does addition-assignment cause dependency chain in GLSL?
- Compiling C++ program with Opengl and Glut in windows
- Using Silk.NET in WinForms
- What happens when rendering an OpenGL buffer that has been padded with NULL (or another value)?
- How can I make a sphere follow an eight-like path in Python using OpenGL?
- OpenGL only rendering second triangle, first triangle not visible
- OpenGL shows black texture on quad
- My Visual Studio 2022 consistently gives me errors saying that the GLchar variable type is undefined
Related Questions in TRANSFORMATION
- Can't use panel with transformation as source panel
- How can I get the inverse Transformation of in 2D
- Camera rotation to direction vector
- Transform a JSON array by Jolt into a new JSON object and keep objects separate
- Power Bi, colums to rows
- Jolt Transformation - keep JSON structure even if object is empty
- How can I apply image registration to images and their annotations with opencv?
- How to reshape this database in Excel or R
- Can you create custom VS Code snippets variables?
- how to do Transformation in vtklinewidget
- ADF Flatten transformation - can't select unroll by
- Reverse function to obtain original input values
- Delay observed between two moving sublayers
- transform data set in R from stacked months and years for multiple sites to sites with columns of year-month
- Jolt transform from a Map<Person, list<Property>, List<Feature>> to Map<Property, Map<Feature, List<Person>>>
Related Questions in PERSPECTIVE
- tiles Perspective in openCV python
- How to move elements in a perspective view with CSS?
- Is there a way to change a gameobject from perspective to orthographic seamlessly in Unity?
- CSS perspective percentages and improper scaling
- Perspective correction with OpenCV - Image is cropped to reference marker
- PerspectiveAPI in python
- Image transformation in OpenCV and Qt C++
- Overflow:hidden breaks z-index and translateZ but 'visible' does not. Why?
- Using GLSL, how to create a perspective bending like effect
- Why tranlateZ() property is not working if overflow is hidden for parent
- Why some unicode subscripts appear as rectangles in axes labels of persp3D in R?
- How to calculate if a point in 3D space is in field of view of a camera if vertical FOV is different from horizontal FOV? (rectangualr view)
- Issue with CSS3 Perspective and RotateY in Chrome and Safari
- How to color a cube in perspective projection and make lines around it
- How to control UV mapping distortion
Related Questions in VANISHING-POINT
- Image alignment (camera pose rectification) by using vanishing points and gradient descent
- Finding the Angle between Vanishing point and Lines in Python
- Three-points projection JS
- Extract vanishing point from lines with Open CV
- Applying gabor filter independant of frontier colors
- What is maximum of vanishing points for perspective projection?
- How to find vanishing points from vanishing lines?
- Moving the perspective vanishing point in Processing
- Vanishing point detection from vanishing line using Hough transform
- gluPerspective has vanishing point in corner. Opengl
- iOS - Using the same vanishing point for multiple elements when using CATransform3d
- How to modify the perspective division in OpenGL?
- Detect vanishing point in an image
- Vanishing points in rubiks cube
- OpenCV time to contact with optical flow
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You want your main scene to be projected in one way and your corner object to be projected in another way. This directly leads you to the solution:
Perhaps you're wondering how to implement setUpCornerProjection. It would look something like this:
And then in setUpMainProjection() you'd need to also call glFrustum and glViewport.