Applying a piece of raster as texture to building roofs
This post was updated on .
I'd like to apply pieces of a ground overlay to the roof of corresponding buildings for a specific height.
- Ground overlay:
- Pieces of the ground overlay applied to the roof (done with Paint):
I've tried to modify the SkinSymbol, but without success:
osg::ref_ptr<osgEarth::SkinSymbol> roofSkin = roofStyle.getOrCreate<osgEarth::SkinSymbol>();
roofSkin->library() = ""; => No idea what to put here!
roofSkin->name() = osgEarth::StringExpression(".\\overlay.png"); => Georeferenced PNG file
roofSkin->objectHeight() = 3.f; => For buildings with 3 meters height only