-
2D Scrolling in OpenGL
Can you implement a 2D scrolling effect using an orthographic view volume, or do you need to fake 2D with a perspective view volume?
-
Junior Member
Regular Contributor
Re: 2D Scrolling in OpenGL
You can do 2D scrolling effects in either of these projection modes. using perspective would allow you to set up paralax layers with less fuss than ortho.
One way to do so are move your poly along a 2d axis, or move the camera along a stationary poly. Another way is to modify texture coords on a stationary poly.
-
Re: 2D Scrolling in OpenGL
Note: remember that in glOrtho/gluOrtho, OpenGL will always reconstruct the edges of polygons that get clipped...That may not be to your liking and you should use perspective instead...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules