[osg-users] Color Transformations
Hi, I would like to know how to implement color transformations (e.g. change to grayscale view). I tried using osg::Camera::setColorMask(true, true, true, true) function but that doesn't seem to work. So I'm wondering if I am using the function correctlyor is this the correct function to call? Thanks in advance __ Yahoo! Singapore Answers Real people. Real questions. Real answers. Share what you know at http://answers.yahoo.com.sg___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to generate cultures on terrain
Hi, I managed to generate a terrain using elevation(tif) and texture(tif) files using Virtual Planet builder's OsgDem. I'd like to add cultures on to it like vegetation and buildings using .shp files. I noticed that OSG has plugins for ESRIShape, so I guess that it should be supported. How do I generate the pagedLOD database for the terrain with cultures on it? And if that is not possible, how do I add cultures to terrain without affecting performance? Thanks in Advance Regards Weng Heng ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Tank Traversing across terrain
Hi Robert, sorry for the slow reply as I was away. I'm currently using 2.0 I'll download and install 2.2 in that case. Thanks! Regards Weng Heng > Date: Wed, 7 Nov 2007 09:08:10 + > From: "Robert Osfield" <[EMAIL PROTECTED]> > Subject: Re: [osg-users] Tank Traversing across terrain > To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Weng, > > I believe I enabled intersection testing for GeometryTechnique for > 2.2, but can't recall the precise details. Which version are you > using? > > Robert. > > On Nov 7, 2007 3:56 AM, weng heng sze tho <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to make a tank move across a terrain. > > > > The terrain is created by reading the image files of Puget Sound that i > > downloaded from http://www.cc.gatech.edu/projects/large_models/ps.html > > as mentioned in the quick step-by-step guide for OsgDem. Then I > > setElevationLayer and setColorLayer to an instance of > > osgTerrain::TerrainNode. The terrain seems to display fine. > > > > I added a "tank" node and attached it to a PositionAttitudeTransform. To > > make the "tank" move, it is set to a callback whereby it sets the new > > position of the tank to make it look like it is moving in a circle. The > > callback needs to check the elevation of the terrain so that the tanks > > "moves" according to terrain, so to do this I used the function > > "computeTerrainIntersection" from the example osgparticleeffects. Problem > > is, computeTerrainIntersection doesn't seem to be able to detect the > > elevation. I stepped through this function and it seems that > > osgUtil::IntersectVisitor doesn't seem to get any "hits". I did notice > > however that if I build the terrain by setting its elevation using > > osgHeightField as is used in the example osgparticleeffects, the elevation > > can be detected just fine. > > > > How do I make the function "computeTerrainIntersection" return me the > > correct elevetion? > > > > Thanks in advance for your help. > > > > Weng Heng > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Tank Traversing across terrain
Hi, I'm trying to make a tank move across a terrain. The terrain is created by reading the image files of Puget Sound that i downloaded from http://www.cc.gatech.edu/projects/large_models/ps.html as mentioned in the quick step-by-step guide for OsgDem. Then I setElevationLayer and setColorLayer to an instance of osgTerrain::TerrainNode. The terrain seems to display fine. I added a "tank" node and attached it to a PositionAttitudeTransform. To make the "tank" move, it is set to a callback whereby it sets the new position of the tank to make it look like it is moving in a circle. The callback needs to check the elevation of the terrain so that the tanks "moves" according to terrain, so to do this I used the function "computeTerrainIntersection" from the example osgparticleeffects. Problem is, computeTerrainIntersection doesn't seem to be able to detect the elevation. I stepped through this function and it seems that osgUtil::IntersectVisitor doesn't seem to get any "hits". I did notice however that if I build the terrain by setting its elevation using osgHeightField as is used in the example osgparticleeffects, the elevation can be detected just fine. How do I make the function "computeTerrainIntersection" return me the correct elevetion? Thanks in advance for your help. Weng Heng ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org