osg/Transform defines it if not available
#ifndef GL_RESCALE_NORMAL
#define GL_RESCALE_NORMAL 0x803A
#endif
--
Roland
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of a.lagnier
Sent: donderdag 20 november 2008 10:18
To: OpenSceneGraph Users
Subject: Re: [osg-users] Normals and setScale
GL_RESCALE_NORMALS is undefined in gl.h ...
> Message du 20/11/08 10:09
> De : "Smeenk, R.J.M. (Roland)"
> A : "OpenSceneGraph Users"
> Copie à :
> Objet : Re: [osg-users] Normals and setScale
>
>
If your initial normals are correctly normalized you may also
use GL_RESCALE_NORMALS. This will rescale the normals instead of the more
expensive normalization that is done when GL_NORMALIZE is enabled.
--
Roland
>
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Serge Lages
> Sent: donderdag 20 november 2008 10:03
> To: a.lagnier; OpenSceneGraph Users
> Subject: Re: [osg-users] Normals and setScale
>
>
Hi,
>
> Just make a search on GL_NORMALIZE on this list and
you'll get your answer. :)
>
>
On Thu, Nov 20, 2008 at 10:00 AM, a.lagnier <[EMAIL
PROTECTED]> wrote:
>
Hi,
>
> When I call setScale() on an pat. Its normals
seem to be affected. I want to keep normalization of normals. How can I solve
this problem?
>
I will appreciate any hints.
>
> Thanks you
>
>
>
> Créez votre adresse <http://www.laposte.net>
électronique [EMAIL PROTECTED]
> 1 Go d'espace de stockage, anti-spam et
anti-virus intégrés.
>
>
_______________________________________________
> osg-users mailing list
> [email protected]
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> --
> Serge Lages
> http://www.tharsis-software.com
>
This e-mail and its contents are subject to the DISCLAIMER at
http://www.tno.nl/disclaimer/email.html
>
> [ (pas de nom de fichier) (0.2 Ko) ]
Créez votre adresse <http://www.laposte.net> électronique [EMAIL
PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
This e-mail and its contents are subject to the DISCLAIMER at
http://www.tno.nl/disclaimer/email.html
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org