On 10/21/2010 3:46 PM, Robert Gosztyla wrote: > Hi, > I'm back again with my terrain editing question :). I was serching forum for > some solution, but i didn't find any. If i have found at least terraintile > geometry and drawable associated with that how i could change this geometry? > I've tried to use dirtyDisplayList() method, but it doesn't work as expected, > i found also in some post that for terrain rendering this method won't work. > There is also project called osgTDS, which modifies terrain geometry during > loading from file and there is used method replaceDrawable() for geode. Is it > the only solution for it? Or i can do is in some other way too? I rather > don't want to modify height file, because probably i need some additional > adjustment than only height on my terrain.
I haven't tried modifying the heightfield on the fly while it is already displayed, but as far as I know, dirtying the Node should cause an update of any precomputed or cached data. I have used the modify-the-heightfield method during load and it works fine. perhaps Robert Osfield can comment on what's needed to update the displayed representation once it is already loaded. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

