Hi Sanat,

I have not read the complete source code of VPB yet, but my current 
understanding is:
 
Visualizing a VPB terrain, you only load the root file. This means, in the root 
file the next sublevel tiles must be noted down. So if we are zooming in, the 
viewer calculates the appropriate LOD level, and if the root tile is to near, 
he looks if any subtiles registered, and if yes, it replaces the root tile with 
the 4 subtiles. This procedure is done by the viewer for every tile displayed, 
not only for the root tile. I strongly assume the register tile procedure is 
done by VPB during the build process and is not a todo for our display process.

So in my assumption I think we have to figure out how the LOD system is 
realized and how we can get a tiles (for all LODs) of a location, because we 
have to alter tiles not only on one but on all affected LODs.

Yesterday I copied the osgTerrain example and tested it, it word out of the box 
as it should, so I think you may have used an invalid filename or invalid path. 
There is an example terrain in the example data, so if you have a valid OSG 
build environment, you can just call “osgTerrain.exe terrain.osg” from any 
directory of your computer and it should work!

Today I will dive a little bit into VPB code to get a clue how the compiling 
and LOD is done. Especially the patching function of VPB is interesting because 
it shows us how to change existing tiles, iterating through all LODs and 
optionally saving it back :)
Additionally I will extend the osgTerrain example to use my own terrain 
technique to modify the terrain tile. 


Cheers,
Torben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33966#33966





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

Reply via email to