No NURBS support in JoGL???

Dear All,

while I can find a GLUnurbs object, it seems there is no other NURBS method available in JoGL.

Am I correct or could someone tell me how to use NURBS with JoGL?

Thanks,

mike

No nurbs in jogl.

Ah that’s bad…

Is it planned to support NURBS (and maybe other mssing GLU features) in the next release of JoGL?

Thanks.

We definitely should and would like to add this support but it isn’t the highest priority. Code contributions from the community in this area would be greatly appreciated. Also please feel free to file an RFE on the JOGL Issue Tracker about this missing functionality.

Due to the complexity of the NURBS API and its use of function callbacks, the best solution for exposing this functionality would probably be to port the C code to Java rather than trying to wrap the GLU entry points. The same approach was taken for the GLU tesselator. In fact, the entire GLU implementation should be ported to pure Java using the underlying GL object, eliminating dependencies on the GLU native library.

I agree: I was expecting a similar API as the GLU tesselator port.

As time permits, I’ll have a look at JoGL code to create such framework. But porting GLU code to Java seems a daunting task. Maybe the best would be to wrap the native code?

Not in this case. Any API requiring C function pointers to be passed down basically needs to be ported to Java. The glue code to make these APIs work otherwise is extremely complicated.

The GLU tesselator port was done largely by pepijnve and I believe it was mostly straightforward.

Ah I see, makes sense :frowning:

Thanks Ken.