If you have a need to actually change the flt file itself to change it
to use dds textures, you can write something using the openFLT API. I
actually just very recently did this myself. We had several hundred
models we were converting to use dds instead of rgb files. The samples
given with the API and the documentation should be good enough if you go
that route. Look at the egwalk example to figure out how to drill down
the structure. To actually change the name you will need to use the
mgGetFirstTexture, mgGetTextureSaveName, and mgGetNextTexture. That took
me a while to figure out..

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lokesh
kumar
Sent: Thursday, May 23, 2013 6:02 AM
To: [email protected]
Subject: Re: [osg-users] How to apply textures to a model in
openscenegraph?

Robert Osfield <robert.osfield@...> writes:

> 
> Hi Lokesh,
> 
> The easist thing to do would be to use osgconv to convert the files to

> native OSG binary format .osgb and have osgconv do the compression for

> you.  Use osgconv --help for the options.  The other alternative to to

> write your own osgDB::Registry::ReadFile callback that intercepts the 
> readImage calls and changes the filename to the .dds equivalent.
> 
> Robert.
> 


Thank you Robert!!

I'm interested in your 2nd alternative :- 

using osgDB::Registry::ReadFile      


but, i'm Newbie in openscenegraph.
can you give a short example.

Regards
-Lokesh 



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

Reply via email to