If I have two models that in Blender are stored in the same blend-file and share the same material and texture(s), but that are exported separately, will Panda recognise their materials and textures as the same and treat them as such, or will it treat them as separate materials?
To explain, I’m working on having the model-files for larger levels in my game be split into multiple files. This would, I hope, allow me to more-quickly make small-scale changes and to speed up the overall export-and-import process.
However, this means that I’ll have material- and texture- entries repeated across those files. If, for example, I have two buildings that use the same material but that end up in different files, their files would presumably each include a copy of that material and the references to its textures. I’m thus concerned that I’ll end up with a multiplicity of materials and texture-references, potentially degrading performance.
(If this is a problem for materials, I can perhaps try calling “setMaterialOff” on all nodes, as I’m not using Panda materials in any significant way as far as I recall. Blender materials are just used as a way to get YABEE to apply my textures, and to export my vertex normals.)