[osg-users] Detail Texture

Rambabu Repaka ramboram488 at gmail.com
Sat Dec 10 03:26:05 PST 2016


Hi,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 image on the osgearth with latitude,longitude readings.


... 

Thank you!

Cheers,
Rambabu

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








More information about the osg-users mailing list