Hi Lokesh

in http://www.packtpub.com/openscenegraph-3-0-beginners-guide/book on
support tab for the page of the book you may download sample code,

in \2824_12_Code\2824_12_Code folder from  download zip there is
sharing_textures.cpp which has a class

class ReadAndShareImageCallback : public osgDB::ReadFileCallback

you are looking for as example

make something similar, but before loading texture - change extension
of loaded image

I recommend to get existing osg books and read them - it will save you
a lot of time.
In India see 
http://www.junglee.com/mn/search/junglee/ref=nav_sb_noss?url=search-alias%3Dstripbooks&field-keywords=openscenegraph

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

Reply via email to