Viewport ?

Hi !

I’m just writting a little 3d modeler, but I’ve got a problem. How can I make multiple viewports like in lightwave (4 views, front, left, perpective…) ?
I don’t want to render a big viewport and divide it in 4 parts, cause I need to put some buttons on top of each views, some informations… And and I don’t know how to do it…
Can someone help me ? (Oh, and of course, I’m using JoGL)

Thanks in advance.

Just use 4 different GLCanvas. I personally never liked that option because you can sometimes watch the various contexts being drawn sequentially. I just made one big canvas and split it up with glviewport/glscissor calls.

It’s what i’m doing…
But it’s very very slow, cause there are 4 gl contexts instead of one… But i’m sure there’s a way to do it faster…
How do you do when you use glViewport/glScissor calls ?Cause i know how to use glViewport (like nehe’s tut n°42), but with this method I can’t add UI elements around all views…

There shouldn’t be any severe performance issues with using multiple GLCanvases for this task. Are you attaching an Animator to each one? If so, that’s your problem – you need to use the repaint-on-demand paradigm for applications like 3D modellers.

If you go the one large canvas route you will have to make your own UI widgets with opengl. I have never used lightwave so I have no idea how hard that would be.