[osg-users] Detail Texture

Rambabu Repaka ramboram488 at gmail.com
Sat Dec 10 03:25:04 PST 2016


Hi,Here we can add texture image by using imageoverlay function i posted the code below it explains all about it.

#include <osgEarthAnnotation/ImageOverlay>

osg::ref_ptr<osg::Group> root = new osg::Group;
ImageOverlay *imageoverlay = NULL;
osg::ref_ptr<osg::Image> image = osgDB::readImageFile("Indiaimage.jpg");
imageoverlay = new ImageOverlay(mapNode, image);
imageoverlay->setBounds(Bounds(74.56, 26.21, 77.12, 28.36));
root->addChild(imageoverlay);

Detail texture file is not there in osg earth ?  Hope this provide the required on the earth.




... 

Thank you!

Cheers,
Rambabu

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








More information about the osg-users mailing list