sebastian.vesenmayer Posted August 17, 2022 Share Posted August 17, 2022 Hello, while migrating from 2.14.1 to 2.15.1 I ran into issues with our custom base material file. Maybe I have something wrong in my texture definition but I don't see any problems. I have attached the file. Thanks https://developer.unigine.com/en/docs/latest/code/formats/materials_formats/base_material_format?rlang=cpp#element_texture lightgroup_base_material.basemat Quote ---- Materials ---- ERROR: Material::load(): texture name is empty in "ig_resources/materials/lightgroup/lightgroup_base_material.basemat" material ERROR: Material::load(): texture name is empty in "ig_resources/materials/lightgroup/lightgroup_base_material.basemat" material WARNING: WARNING: Xml::printUnusedData(): Unused in file:"ig_resources/materials/lightgroup/lightgroup_base_material.basemat" WARNING: Unused in node:"texture" arg:"type" value:"clouds_screen" WARNING: Unused in node:"texture" arg:"pass" value:"ambient" WARNING: Unused in node:"texture" arg:"type" value:"scattering_sky_lut" WARNING: Unused in node:"texture" arg:"pass" value:"ambient" WARNING: Link to comment
sweetluna Posted August 17, 2022 Share Posted August 17, 2022 Hi Sebastian! Try changing type="clouds_screen" to source="clouds_screen" and do the same for type="scattering_sky_lut". Also, I'd like to suggest converting this material to ULON Base Material as we are planning on removing XML BaseMaterials in future. ULON Base Material Format for reference: https://developer.unigine.com/en/docs/latest/code/formats/materials_formats/ulon_base_material_format?rlang=cpp May RenderDoc/Nsight Graphics/Intel GPA bless you Link to comment
sebastian.vesenmayer Posted August 17, 2022 Author Share Posted August 17, 2022 Thank you for the hint, the warnings and errors have been vanished. :) You may update the documentation. Link to comment
Recommended Posts