Nurbs Surfaces / Jogl 2.2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Nurbs Surfaces / Jogl 2.2

craig108
Where did the Nurbs support go ?

I am unable to build the sample nurbs surface code in http://jogamp.org/jogl-demos/src/demos/nurbs/
using jogl 2.2


Specifically, these GLU methods don't seem to exist :
(using
     javax.media.opengl.glu.GLU   glu;   )



glu.gluNewNurbsRenderer();
glu.gluBeginSurface(nurbs);
 glu.gluNurbsSurface( ... many parameters ...)
 glu.gluEndSurface(nurbs);


I'd really like to use JOGL for my Nurbs project ,but I am stumped.  The web comments I have found
indicate that at one time, this demo ran, but I can't seem to get it to work.

I'm using OSX - if these methods / classes exist as of August 2014, where are they ? in which jars ?
is there a download link to the correct (jogl) version of these jars ?


Is there another publicly available Java 3D toolkit that supports NURBS Surfaces ?



any help would be appreciated.

thank you.
  Craig
Reply | Threaded
Open this post in threaded view
|

Re: Nurbs Surfaces / Jogl 2.2

jmaasing
Reply | Threaded
Open this post in threaded view
|

Re: Nurbs Surfaces / Jogl 2.2

craig108
thank you Very Much !

That seems to have worked.

I replaced

 private GLU glu;
 this.glu = new GLU();

with

 private GLUgl2 glu;
 this.glu = new GLUgl2();

and it compiles, and seems to run.  

Reply | Threaded
Open this post in threaded view
|

Re: Nurbs Surfaces / Jogl 2.2

gouessej
Administrator
Hi

Rather use GLU.createGLU(GL) in order to pick the right GLU implementation even though your code evolves in the future.
Julien Gouesse | Personal blog | Website