[osg-users] [Fwd: Re: to draw landscapes beginning from a matrix]

aurora restivo aurora_re at tiscali.it
Fri Feb 29 06:28:39 PST 2008


The Sukender ha scritto:
> 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;
>   



I apologize but I am still inexperienced.

I have a HeightField associated to shapeDrawable (this because if I use 
Locator and GeometryTechnique I succeed in visualizing the alone ground 
"GEOCENTRIC"),
therefore if I use

shapeDrawable - > setColor (Vec4);

I don't know whether to plan the values of the Vec4 with the formula 
that you have sent me

besides of what type it is color?

Aurora



> You can allso do it in HSL coordinates (instead of RGB).
>
> Sukender
>
> ----------------------------------------
>   
>> Date: Fri, 29 Feb 2008 12:54:48 +0100
>> From: aurora_re at tiscali.it
>> To: osg-users at lists.openscenegraph.org
>> 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
>> osg-users at lists.openscenegraph.org
>> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080229/6f28daed/attachment.htm 


More information about the osg-users mailing list