Are GLU objects accelerated?

Started by elias4444, March 25, 2005, 20:01:56

Previous topic - Next topic

elias4444

Just curious... are the GLU objects (sphere, disk, etc.) accelerated via display lists, or as vertex buffer objects, or anything? I've been using them in several cases, but was wondering if I'm suffering for it or not.

Thanks.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

BatKid

Very good question, I am curious myself.  What I have been doing is putting the GLU objects in a display list myself, as follows:

           GL11.glNewList(GL_ENEMY, GL11.GL_COMPILE);
            sphere.setTextureFlag(true);
            sphere.draw(radius, 8,8);
            GL11.glEndList();


This will for sure put the objects in video memory.
Projects: 
   Env3D (http://env3d.org): Learn Java in 3D
   WhaleChat (http://whalechat.com): A 3D social programming experiment

elias4444

Yeah, I've been wondering if I needed to do the same thing or not.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

tomb

GLU is implemented in java and is part of the source that you can download. Looked at it for 2 secs and it seems it uses glVertex, glNormal etc. So it is dog slow :) Puting it in a display list is defenetly a good idee  :D