Mr.Freeze
12-18-2001, 03:51 PM
Hi,
I have a opengl window with different views of the same scene. To achieve this I use glViewport. Everything works fine except for 2 things:
1. When I use bitmap characters with glutBitmapCharacter, the characters cross the border set with glViewport and are also displayed outside of it. How can I avoid this?
2. Picking and reading the depth buffer don't seem to be influenced by the viewport and are always relative to the whole window. Also I found a workaround, this seems strange to me.
Can someone explain me these points??
Thanks http://www.opengl.org/discussion_boards/ubb/smile.gif
I have a opengl window with different views of the same scene. To achieve this I use glViewport. Everything works fine except for 2 things:
1. When I use bitmap characters with glutBitmapCharacter, the characters cross the border set with glViewport and are also displayed outside of it. How can I avoid this?
2. Picking and reading the depth buffer don't seem to be influenced by the viewport and are always relative to the whole window. Also I found a workaround, this seems strange to me.
Can someone explain me these points??
Thanks http://www.opengl.org/discussion_boards/ubb/smile.gif