<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,<br>I am already looked at the optimizer.<br>But still I cannot access my Texture ;(.<br>stateset.getTextureAttributeList() is always null. Why? <br>I can call the geode Name. I can call the Geometry - but no Texture!!!<br><br>My OSG File:<br><br>Geode {<br>  DataVariance DYNAMIC<br>  name "cube.osg"<br>  nodeMask 0xffffffff<br>  cullingActive TRUE<br>  num_drawables 6<br>  Geometry {<br>    DataVariance DYNAMIC<br>    StateSet {<br>      DataVariance DYNAMIC<br>      rendering_hint OPAQUE_BIN<br>      renderBinMode INHERIT<br>      GL_CULL_FACE OFF<br>      GL_LIGHTING ON<br>     
 textureUnit 0 {<br>        GL_TEXTURE_2D ON<br>        Texture2D {<br>          DataVariance STATIC<br>          file "images.jpg"<br>          wrap_s CLAMP<br>          wrap_t CLAMP<br>          wrap_r CLAMP<br>          min_filter LINEAR_MIPMAP_LINEAR<br>          mag_filter LINEAR<br>          maxAnisotropy 1<br>          useHardwareMipMapGeneration TRUE<br>          unRefImageDataAfterApply
 FALSE<br>          internalFormatMode USE_IMAGE_DATA_FORMAT<br>        }<br>      }<br>    }<br>..........<br><br>Some Ideas??<br><br><br>冯晨 wrote:
<blockquote cite="mid:5406873.546241215656910441.JavaMail.coremail@bj126app45.126.com" type="cite">
  <div> </div>
  <div> </div>
  <div> Hi,<br>    I think osgUtil::optimizer::TextureVisitor should solve your problem....:)<br>    Good luck.<br><br></div>
  <div> </div>
  <br>
在2008-07-09 22:53:21,"ka Ming" <ming_ka@yahoo.de> 写道:<br>
 
  <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br>I got a Probel with osg Files, the File structure looks like:<br>Group{<br>    Geode{<br>        Geometry{<br>            StateSet{<br>                Texture{<br>                }<br>            }<br>        }<br>    }    <br>    Geode{<br>
        Geometry{<br>
            StateSet{<br>
                Texture{<br>
                }<br>
            }<br>
        }<br>
     }<br>}<br>The problem is if I try to traverse my SceneGraph I get the names of my geodes, but if I check the TextureAttributeList<br>osg::StateSet::TextureAttributeList texAttrList = stateSet-> getTextureAttributeList();<br>this list is empty. Why is this List empty, did I forget something? I want to access all Textures!!<br>Thanks<br>Ming<br><br></div></div><br>



      <hr size="1">
Gesendet von <a moz-do-not-send="true" href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52427/*http://de.overview.mail.yahoo.com" target="_blank">Yahoo! Mail</a>.
<br>
Dem pfiffigeren Posteingang.</blockquote>
  <br>
<!-- footer --><br>
  <hr>
  <a moz-do-not-send="true" style="font-size: 14px; line-height: 15px; color: rgb(0, 0, 0); text-decoration: none;" href="http://tx2.163.com/fab.html" target="_blank"><span style="text-decoration: underline; color: blue;">网易首款免费3D网游“天下2”,6月6日激情公测</span> </a>

  <pre wrap=""><br><hr size="4" width="90%"><br>_______________________________________________<br>osg-users mailing list<br>osg-users@lists.openscenegraph.org<br>http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</pre>
</blockquote></div></div><br>



      <hr size=1>
Gesendet von <a  
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52427/*http://de.overview.mail.yahoo.com" target=_blank>Yahoo! Mail</a>.
<br>
Dem pfiffigeren Posteingang.</body></html>