PDA

View Full Version : splitting a view into multiple views?



godach
03-19-2003, 09:39 PM
Hello,

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!

Godach

T
03-19-2003, 11:30 PM
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.

godach
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.

Godach

oliii
03-20-2003, 11:34 AM
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/012077.html

godach
03-20-2003, 08:21 PM
Thanks Oliii for your sample code! I will dig into it soon.

Godach