wxywxy.ji Posted December 27, 2012 Share Posted December 27, 2012 i got material list by getMaterial( surfaceNum ). It is strange example ) A Surface [ diffuse.dds , normal.dds , specular ] i think that get material only diffuse.dds , normal.dds , specular.dds .... but i got material list ( diffuse.dds , normal.dds , specular and parent_diffuse.dds , parent.normal.dds , parent specular.dds ..... ) exception lightmap , .... extra texture engine make step. 1. copy_parent_textures 2. parser xml material 3. clear_parent_textures void Material::clear_parent_textures() { for(int i = 0; i < textures.size(); i++) { if(textures.override) return; <== right? } textures.clear(); } Link to comment
manguste Posted January 10, 2013 Share Posted January 10, 2013 Can you create a small test scene that shows what textures you get? This function simply returns a material or a modified (inherited) instance for a node. Link to comment
Recommended Posts