Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


A box on screen showing a different part of the world

This topic is 5326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! How can I do to put a square somewhere on the screen of my 3d world (will stay there forever, I will use OrthoView for this) to show a different part of my 3D world in this square? Ps.: Will be good to show that different part of the world "strched" in that box. Plzzzzzzzzz Thank you!!!

Share this post

Link to post
Share on other sites
Either render the small view to a texture and then render that texture to a polygon(do this if you want to move that square in 3d).

Or use glViewport and first render the large view over the whole screen, then set glViewport to that small square and render the scene again from that point of view.
Lesson 42 is a good tuturial to look at

For an overdose of l33tness, flashbang.nu

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!