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 best solutions below
Related Questions in OPENGL
- setting OpenGL version in objective-C
- How to run OpenGL version 3.3 (with Intel HD 4000) on Ubuntu 15.04
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- How to get shader version from QOpenGLShader?
- "Capture GPU Frame" in XCode -- iOS only?
- Difference between glewGetString(GLEW_VERSION) and glewIsSupported
- Tesselation result flickering - OpenGL/GLSL
- Water rendering in opengl
- Texture mapping consuming physical memory
- Rotating a Cube using Quaternions in PyOpenGL
- Switching from perspective orthographic projection in OpenGL
- FreeType2 and OpenGL : Use unicode
- Should Meshes with and without Skeleton use different Shaders?
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Trying to load 2d texture with glTexImage2D, but just getting blank
Related Questions in TRANSFORMATION
- How can I extract the bounds of a bitmap in a canvas from the values in the transformation matrix?
- Rotating a Cube using Quaternions in PyOpenGL
- CTM transforms vs Affine Transforms in iOS (for translate, rotate, scale)
- How to XSLT transform XML nested attribute elements and concatenate name
- Rotation of object with point on object
- Transforming irregular data into usable format in R
- How can I transform XML to HTML using XSL with Java Transformer class
- XQuery XML insert
- QGraphicsItem setShear ? (applicable for single or multiple items)
- Matrix Transformation in R - from aggregate output to outer-like matrix
- Format of R's lm() Formula with a Transformation
- Random String generation from a given string, and inverse transform
- Powershell Invoke-Command with PSCredential Cannot process argument transformation on parameter 'Credential'
- Android Picasso transformation not applied on each view show
- How to change "element.style" on icon after it is transformed in css?
Related Questions in PERSPECTIVE
- How to convert Orthographic camera to Perspective and back?
- 2D perspective transform in JavaScript
- Must polygon prism have interior angles >144 degree to have sides visible after projection transform?
- Projection Matrix - Horizontal Perspective, Vertical Orthographic
- Adding CSS perspective property to video
- openCV4Android smoothly correcting perspective
- e4 RCP: Manipulating Menu when switching between perspectives
- 3d Navbar That Rotates
- How to enable perspective bar in eclipse RCP application
- Image transform polar to cartesian
- How to enable this eclipse scroll bar?
- Perspective transformation only working on svg tag and not g or image
- Stop Eclipse from automatically opening the debug perspective when starting server in debugging mode
- Conditionally-fixed Views and Editors in Eclipse RCP Perspective
- Undo view/perspective
Related Questions in VANISHING-POINT
- gluPerspective has vanishing point in corner. Opengl
- OpenGL: perspective view centered not in the middle of the view?
- How to modify the perspective division in OpenGL?
- How vanishing points can help in restoring proper camera perspective?
- Detect vanishing point in an image
- Find the distance from camera to vanishing point in matlab
- Three-points projection JS
- What is maximum of vanishing points for perspective projection?
- How to find vanishing points from vanishing lines?
- Moving the perspective vanishing point in Processing
- Image alignment (camera pose rectification) by using vanishing points and gradient descent
- Finding the Angle between Vanishing point and Lines in Python
- adding distort with vanishing point projection to CAlayer
- Vanishing point detection from vanishing line using Hough transform
- Vanishing points in rubiks cube
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)
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?
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.