As much as I know, you can do in Java3D almost everything that you can do with OpenGL. Almost, but not everything. In any case, I doubt that a computer graphics course will come with examples that you cannot do in java3d.
 
However, java3d is quite far from opengl and a straight code conversion is not possible. You'll have to redesign/recode each example.
 
For what you need, I'll suggest to try GL4Java. It's a direct java wrapper to opengl, so you should be able to convert the source code quite easily. Eventually, you can write a "converter" program to do it automatically.
 
Last, I've never heard about any program to convert exe code to java applets. Sorry.
 
Cheers,
 
Florin
-----Urspr�ngliche Nachricht-----
Von: Norbert Sch�pke [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 20. M�rz 2003 16:26
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] Convert OpenGL code to Java/Java3D ?

Hi all
 
May be a bit off topic but I'll try anyway...
For an upcoming project at my university a professor who is offering a computer graphics course wants some of his OpenGL examples (mostly elementary things like vertices, lines, faces in different colors but also more advanced shading techniques...) to be converted _somehow_ so he can show these off on a webpage, in an applet or such.
His examples are pure OpenGL with some GUI (sliders to manipulate colors, light positions etc.) as executables.
He also has the source code lying around.
 
Now the questions: Is Java3D the right technology for this job?
I used Java3D a bit and know that is much more high-level than OpenGL. But can I use Java3D to show off rendering effects? I never experimented with all those hints/attributes but how low-level has anyone of you actually gotten with Java3D?
 
Also, does anyone know how I could reuse the existent OpenGL code? If I could just run the thing in a frame of a webpage, much work could be spared... Now iirc there is a rights problem with exe's but does anyone know of a technology or toolchain to convert the code to an applet (maybe pure Java) ?
 
thanks in advance for any hint
 
Norbert

Reply via email to