View Full Version : splitting a view into multiple views?
03-19-2003, 09:39 PM
I was wondering if I would like to make a modeller such that a single OGL buffer can draw multiple views of an object from different perspectives, is that possible? Any help are appreciated. If you know any examples or tutorials please let me know. Thank you!
Use glViewport to limit what area is going to be used to render into for each of your views. When you render each view, use a different projection and view matrix to create the view you want.
Warning. Any buffer clears will still clear the entire image even if you have use glViewport. If you need to do this, use scissoring setup to match your glViewport call.
03-20-2003, 08:03 AM
Thanks T! Your advice is very helpful, especially the scissor test, coz I will need to implement picking. I will look into those.
03-20-2003, 11:34 AM
03-20-2003, 08:21 PM
Thanks Oliii for your sample code! I will dig into it soon.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.