I have been using JOGL for the past few months and I like it.
Then I found that I need extensive support for drawing and interacting with
nurbs surfaces. Since JOGL does not support nurbs, I have been looking at various
options to make JOGL draw or work with other programs to draw nurbs.
I list below various options I have been considering and the related problems.
I appreciate your responses. I do not know much about implementation of JOGL and
glu.
-
I have been trying to build a native interface between JOGL and glu.
This is turning out to be very hard.a. glu generates large number of points for a surface. How do we pass them to JOGL using JNI?
We also need to pass the current context from JOGL to glu. How do we
do this? I am not sure which parameters to pass.b. Has anyone used either gluegen or noodleglue to build the interface between JOGL and glu?
Is there a simple way to build such an interface? -
The other approach I have been thinking is to link JOGL with nurbs programs written in java or other java APIs.
a. C code avaialble to implement nurbs algorithms (not using glu). One can convert it into a Java program. Is there
a simple way to make the nurbs java program to interact with the JOGL pipeline? To interact with
with the surfaces generated by the program (for selection, feedback and morphing), it is necessary
to have a close integration between the java program and jogl. How can this be done?b. There are some APIs that can render nurbs. These include GL4JAVA, jGL, JGeom, etc. How can we make
JOGL interact with these programs (for rendering, selection, feedback and morphing)?
If you can suggest any other simpler way to bring in nurbs into JOGL, it will help my work.
Thanks,
Prabhakar