[osg-users] Cannot get texture map from loaded .flt file
lancy0511 at gmail.com
Wed Apr 27 21:43:20 PDT 2011
I have tried to get the texture map from the loaded .flt file but it returned null.
I have looked up the thread here
osg::Group* Ground = dynamic_cast<osg::Group*>
I use a node visitor to find all geodes in the scenegraph "Ground" and the
apply function looks like this:
for (unsigned int i=0; i<currentGeode.getNumDrawables(); ++i)
osg::StateSet* StateSet =
osg::Texture* Texture = dynamic_cast<osg::Texture*>
--- modify the texture ---
It said use the option
can get the texture. But I still cannot get any info from the model.
Is there any one can get texture from .flt without any problem?
I have also attached the flt file and let others try to get the texture.
Read this topic online here:
More information about the osg-users