Author
Topic: 2 cameras with opengl (Read 4285 times)

Hello to all out there!I am working with JPCT since 1 week now and I am really enjoying it!It's a great engine, which is easy to use and there is much potential and many possibilities!

And here I start my first thread to raise my hope in solving a difficult problem:

I have written a program, which shows 1 object rendered by 2 cameras.The reason why I use 2 cameras is to view this object in stereoscopic 3D.In software mode the program runs great and it works, but I want the movement more smooth and so Idecided to use opengl.Further I took a closer look at the AdvancedExample.The problem here is that no AWT frame was used and so I don't see any possibilities to display 2 cameras (splitscreen)in one AWT frame in opengl mode.

If somebody know how to solve the problem I would be very glad.Thank you!Marlon

The canvas' are painted over each other. If you make the left one half the size, you'll see that the right one is below. I'm not a Swing guy, so i'm not sure how to get rid of this. I tried some things but to no avail. Swing always does these wtf-things...which is why i hate it. The same happens if you use jPCT's jogl support btw, so it's not a LWJGL issue but rather some AWT/Swing-mixing issue or whatever.

Ha, yeah!Sometimes its that simple!(Although I thought a "FlowLayoutManager" would do the whole position stuff)Yeah, I'm not a big fan of Swing either, i use to write my own GUI frameworks.But now it works, many many thanks!!!Marlon