Thanks Gordon. Good points for using a shader. Are there any performance hits with doing this at a pixel level? I wouldn't think so since the shader is pretty "thin"...
-Shayne -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tomlinson, Gordon Sent: Thursday, January 15, 2009 9:07 AM To: OpenSceneGraph Users Subject: Re: [osg-users] altitude terrain shading... With the Shader approach you still typically use a 1d texture, but can have good control of what color a pixel gets and you can place palettes in the texture etc.. Works well 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 -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC Sent: Thursday, January 15, 2009 11:04 AM To: OpenSceneGraph Users Subject: Re: [osg-users] altitude terrain shading... Thanks to everyone that responded to my inquiry. I'll try the TexGen approach first and then do a shader at a later time... -Shayne -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Thursday, January 15, 2009 1:58 AM To: OpenSceneGraph Users Subject: Re: [osg-users] altitude terrain shading... 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 <shayne.tuel...@hill.af.mil> 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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org