Hi Robert,
   
            Following your advice, today I was able to write the code to do the 
above job. Thanks a lot. 
   
  Regards
   
  Harash

Robert Osfield <[EMAIL PROTECTED]> wrote:
  You'll need to write yourself a NodeVisitor. In
src/osgUtil/Optimizer.cpp you'll find several examples of NodeVisitor
that go through processing StateSet's in the scene including ones that
target just Textures.

On 6/12/07, Harash Sharma wrote:
> Hi Robert,
>
> I have a peculiar problem. Given a model file in .osg format or .flt
> format, I want to generate a list of all textures being used in the model. I
> wonder if we can traverse the scene graph and search for the texture image
> being used by each object in the file. Is it possible to accomplish the task
> in this fashion? Is there any simpler/direct way of doing this? What happens
> if the current model file references some external models? Can we get the
> texture resources of those files too?
>
> Thanks for the support and guidance.
>
> Regards
>
> Harash
>
> ________________________________
> Don't be flakey. Get Yahoo! Mail for Mobile and
> always stay connected to friends.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


       
---------------------------------
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to