jogl and GLU

It seems that there exist problems in using jogl’s GLU implementation. I experienced all sorts of wierd problems as documented in my posts in this thread:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1084392944

Googling for possible causes I eventually found this webpage:
http://www.cse.unsw.edu.au/~cs3421/assignments/fpview/faq.html

I implemented the GLU replacement (easy since I really only used gluPerspective) and voila: no more GLExceptions, no more native library crashes. Has anyone else run into this?

Alexander

There have been problems reported in the past that JOGL’s wrapping of the native GLU library has caused problems. We should just port the GLU reference implementation to Java using JOGL’s GL object to make the underlying OpenGL calls. If would be great if someone from the community would spearhead this effort. Also feel free to file an RFE on the JOGL Issue tracker about this.

A big chunk of GLU has been ported by erikd in the context of lwjgl, this effort can easily be reused for jogl. The only thing missing now is a nurbs port. I’m not making any promises, but I’ll try to take a look at it next week.

Small update:
I ported the misc functions. Working on nurbs now. I’ll do mipmap later. Both nurbs and mipmap are a lot of code, so this will take some time…

This would be great (NURBS functionality). I haven’t done much JNI coding, but if you need any help, I would be glad to contribute.

Sean