Multiple 3d axes in a GLJPanel

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple 3d axes in a GLJPanel

yaqiang
I am tring to implement subplot 3D axes similar as the functions in MatLab.


Multiple GLEventListener method was tested, that means each 3D axes implements GLEventListener was added in one GLJPanel with addGLEventListener method. An example that I added two 3D axes but only the last added 3D axes was plotted.


So I am thinking multiple GLEventListener method may be not the right way, and I want to know how to implement subplot 3D axes using JOGL. Thanks for any help!
www.meteothink.org
Reply | Threaded
Open this post in threaded view
|

Re: Multiple 3d axes in a GLJPanel

gouessej
Administrator
Have you tried with multiple viewports?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Multiple 3d axes in a GLJPanel

yaqiang
Gouessej,

Thanks for your suggestion! Do you have any detailed information on how to use multiple viewports in one GLEventListener?

Regards
Yaqiang
www.meteothink.org
Reply | Threaded
Open this post in threaded view
|

Re: Multiple 3d axes in a GLJPanel

yaqiang
In reply to this post by gouessej
Julien,

Multiple viewports is a good idea and I have implemented it in the MeteoInfoLab. Thanks again!

www.meteothink.org
Reply | Threaded
Open this post in threaded view
|

Re: Multiple 3d axes in a GLJPanel

gouessej
Administrator
It rocks :)
Julien Gouesse | Personal blog | Website