Hi Shayne,

The standard way to do this would be to use a Texture1D for the colour
banding and TexGenNode to compute the tex coords for you.  See the
osgtexture1D example.

Robert.

On Wed, Jan 14, 2009 at 10:42 PM, Tueller,  Shayne R Civ USAF AFMC 519
SMXS/MXDEC <[email protected]> wrote:
> 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
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to