1

I have made some researches on nurbs in jogl, but unfortunately did not get appropriate result for it, and I have doubt that jogl does not support nurbs? If jogl supports, can anyone guide me to examples or literature please?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Lion
  • 15
  • 1
  • 3

2 Answers2

2

You can find some information about GLU (which contains the Nurbs features) and JOGL here in the paragraph entitled "GLU". By default, JOGL uses its own Java GLU implementation but you can use the native GLU implementation by using the system property -Djogl.glu.nojava. The former is available on much more platforms and more stable but its NURBS support isn't 100% complete whereas the latter is absent of some platforms and buggy on some others but it provides a better NURBS support.

You can find some working examples here. Please use our official forum to ask JOGL specific questions as only a few maintainers are on StackOverflow.

gouessej
  • 3,640
  • 3
  • 33
  • 67
1

As far as I know JOGL supports Bézier curves. Thus, you could subdivide your NURBS curve into a sequence of Bézier curves and render each Bézier curve one another afterwards. If you are not sure about the subdividing algorithm, have a look at tinyspline (and the binding for Java).

Marcel
  • 203
  • 2
  • 8