Hum... I don't have a global solution, but you may set a color for each vertex 
with something lile :
color = (highColor - lowColor) * ((altitude - minAltitude) / maxAltitude) + 
lowColor;
You can allso do it in HSL coordinates (instead of RGB).

Sukender

----------------------------------------
> Date: Fri, 29 Feb 2008 12:54:48 +0100
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [osg-users] [Fwd: Re: to draw landscapes beginning from a        
> matrix]
> 
> Hi!
> 
> does a way exists to color from the tallest altitude of a ground to the 
> lowest with gradations of color?
> 
> thanks
> Aurora
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_________________________________________________________________
Votre contact a choisi Hotmail, l'e-mail nouvelle génération. Créez un compte. 
http://www.windowslive.fr/hotmail/default.asp
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to