simplest way would be to use a pixel shader
 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 
 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Sent: Wednesday, January 14, 2009 5:43 PM
To: OpenSceneGraph Users
Subject: [osg-users] altitude terrain shading...



All,

 

I have a requirement to do some altitude shading (coloring) to a terrain
database based off a referenced altitude. In other words, I would like
to shade the terrain to be green below a given altitude and then shade
it brown at or above the given altitude. The reference altitude
basically represents the horizontal plane that intersects the terrain
database. Any terrain below the plane is shaded green and any terrain
above the plane is shaded brown.

 

My question is, is there any support in OSG that will allow me to do
something like this? My terrain is a database built with VPB.

 

Any input would be most appreciated...

-Shayne

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to