View Full Version : GL_NORMALIZE: Do or Do Not?

06-10-2001, 09:56 PM
hmm... should I normalize my vectors myself or let openGL ICD do it?

Redhat Linux 7.1
accelerated drivers from Nvidia (so hardware acceleration under X http://www.opengl.org/discussion_boards/ubb/smile.gif)
Riva TNT2 Ultra (Viper 770 Ultra)

So, which choice _should_ be faster?

06-10-2001, 10:19 PM
Development time wise letting OGL do it is faster, runtime wise calculating it yourself is faster.

06-10-2001, 10:28 PM
Thank you, Mr. Shoe... if did it both ways and checked which one is faster...

Can I trust that it will be faster that way on all machines?? (at least with Nvidia ICDs) or is it always that the ICD is slower than your own calculations... even on hardware T&L machines??

06-10-2001, 10:28 PM
nVIDIA's FAQ recommend that you always do it as the extra cost is very small.


06-10-2001, 10:29 PM
ahh well that answers the question! thanks michael

06-11-2001, 02:55 AM
First of all try to avoid scaling the modelview matrix. If you have to, use uniform scaling and the rescale normals extension if you're running on machines without HW T&L, else just enable normalization (you can't do it yourself btw, unless your doing all the transformations and lighting yourself).

06-11-2001, 05:18 PM
as harsman saiz. u only need to enable it when u rescale your models eg with glScale(..). other leave it switched off.

06-11-2001, 10:05 PM
hmm... if I ever use hardware scaling... it only does them once right? not every frame?

06-12-2001, 04:00 AM
When you scale the current matrix (usually the modelview, but it could be projection or texture) it stays that way until you change or push it. And the matrices affect all vertices passed to OpenGL. This is normal though, and nothing you should worry about.