Hi,

I'm a new guy to OSG.  I use OSG version 3.0.1.

When I wanted to view a terrain with switch image layers,  I found that the 
optional image layer was not displayed right.

So, I looked into the source code of osgTerrain/GeometryTechnique.cpp.

I found that from line 482 ("osgTerrain::ImageLayer* 
imageLayer(dynamic_cast<osgTerrain::ImageLayer*>(itr->first));
") in the function "void 
VertexNormalGenerator::populateCenter(osgTerrain::Layer* elevationLayer, 
LayerToTexCoordMap& layerToTexCoordMap)
", if  "itr->first" can't be converted into imageLayer, then it will be tried 
to converted into ContourLayer. However, itr->first can be swithLayer with an 
active image layer. How about patching this part of code with the dealing of 
switchLayer?

... 

Thank you!

Cheers,
Yashuai

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





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

Reply via email to