gluNurbsCurve

Please Help,

I am developing some code that is being transfered from C++ to Java and NURBS are used heavily. Does anybody know if the gluNurbsCurve function has been implemented in JOGL, if so does anybody have a quick and simple example of its use?

Thanks in advance for any help or hints.

Sorry, but there is currently no NURBS implementation in JOGL. I was contacted a few months ago by a Master’s student in the Czech Republic who had done a significant chunk of the work to port the GLU NURBS code to Java, but never heard anything afterward. I’ll see if I can ping him. I think some people here on the forum have hooked up JGeom to JOGL in the past for similar results.

Thank you for the information. Do you have any further information on the JGeom to JOGL that some people on this forum have done? Also, if NURBS is not implemented in JOGL can you tell me what is typically done for Java 3D graphics implementations that need this specific behavior?

Once again, thank you.

I don’t, but you might be able to find some information by searching this forum. Anyone reading this who’s done this?

When will NURBS be ported into JOGL?

Is there any recent news about Nurbs?

I’d like to use nurbs in my software. So, I’ve port some of glu nurbs routine into java using using SWIG (we don’t use gluegen in my project sorry) without callbacks (the hard part).
Consequently, the routines are directly linked to the system OpenGL and Glu libraries. I’m not very aware on how libraries work, but I fear this might cause instabilities if the version are different from the system and JOGL.
I was wondering if it was possible to link my glu routines with the same Glu that JoGL uses. Or maybe you know some other ways to use nurbs.

Thank you,
Jean-Baptiste

Tomas Hrasky, a student from the Czech Republic, has just contributed an almost complete Java port of the GLU NURBS library. This is a huge contribution to the community as it exposes this functionality without relying on the native GLU library, which historically has been problematic at least on certain Linux distributions. I will try to integrate it into the JOGL tree this weekend. Note that his implementation also does not yet support callbacks, but hopefully it will not be too difficult to add this and finish up the other missing pieces.

Very good news!!! Thank you both of you. I will try it as soon as it will be available and give you some feedback.

I’m on it. Nurbs curves work well :-).
Now I’m going to test surfaces. Work well too.

Many nurbs features are still missing (properties, trimming, callbacks), but that should be enough for my software. Will they be available soon?

Actually, in my software, I’m using nurbs to display perfectly circular partial discs. I was using trimming inside a square to create my disc.
I’m doing this mostly because I don’t know the control points to use to render a disc using surfaces.
But it seems I have to find them now ;D.

Does anyone know the control grid to use?

Any way, thanks for your great work!!!

If you contribute them! Please consider helping with the implementation. Nobody is currently actively adding code to the best of my knowledge (Tomas finished his thesis…)

Hi Ken,

Do you know how can I get the original C source code implementation to have a look? I am not sure if it is available free?

Also do you think you could ask Tomas Hrasky to email me to dizizmi@gmail.com. I would like to ask him some questions about how did he port the code.

Thanks in advance,
Diz

See the OpenGL Sample Implementation and how to check out the CVS source tree.

I’ll send an email and CC: both of you.