Hi Yashuai,

I can't work out what you specifically mean for a read through of your
email.  It sounds like part of GeometryTechnique does support all the
possible combinations of the image layers.  I have a ton of emails and
other work to get through today so can't head off looking at code in
the off chance that I might be able to work something out.  Please
feel free to adapt the code to do what you need to do, and any mods
please just post to osg-submissions so I can review and merge it.

Thanks,
Robert.

On 25 May 2012 10:09, Yashuai Lv <[email protected]> wrote:
> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to