[osg-users] [vpb] Roads

Bhanu Chandra bhanuchandra151 at gmail.com
Tue Mar 21 05:25:27 PDT 2017


Hi,
I got highway tag from the QGIS(OpenStreetMap) for roads and integrated with DEM file using VPB with following command.
osgdemd -t texture/image.tif -d elevation/dem.tif --forest highway/roads.shp --height 10 --TERRAIN -o output/output.osg
After that i am getting the vertices of roads from output.osg and drawing the lines above the terrain. But some places lines are going  under the terrain because of different heights of terrain. For this i tried with HUD camera by setting POST_RENDER. So, i am able to see the lines even if lines are under terrain.But this is not correct method. Is there any ways to solve this problem?
... 


Thank you!

Cheers,
Bhanu

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








More information about the osg-users mailing list