Hi,
in the washington’s computer graphics course website: “http://www.cs.washington.edu/education/courses/457/06au/lectures/”, I find a app to demonstrate lighting, and it seems that it uses FLTK , OpenGL and GLUT. (http://www.cs.washington.edu/education/courses/457/06au/lectures/Lighting.zip).
I wonder how to use Swing and OpenGL to implement this application (need to mix Swing and JOGL)?
Thanks!
I’m not sure I understand the question here - are you asking for a basic rundown of how to do anything with JOGL at all, or something specific about this application? It seems fairly straightforward to me - you can draw all the models with the GLUT class that’s included in JOGL, and all the settings on the sliders are the basic OpenGL fixed functionality, not Programmable Shaders or anything. I don’t imagine it would take more than a few hours to write this (of course, that’s without accounting for learning how JOGL works)… So is it just a feasability question, or did you have something more specific?
I just want thus an application which mixes JOGL and Swing to be a good example for learning OpenGL and Swing interaction.
That seems like a reasonable project… I’d recommend you read the JOGL User Guide at https://jogl.dev.java.net/nonav/source/browse/checkout/jogl/doc/userguide/index.html?rev=HEAD&content-type=text/html or included with the latest release. The demos that can be found on the main JOGL page are also useful. Some of them include Swing interfaces… Or, again, is there something more specific you’re asking?
Alternatively, have a look at vldocking : http://www.vlsolutions.com/en/products/docking/demos.php
There’s a demo on that page showing Swing / JOGL integration (with GLCanvas, not GLJPanel)
Is that what you want to acheive ?
Lilian