christian.wolf2 Posted September 20, 2022 Share Posted September 20, 2022 Hi, I have noticed, that in latest engine release (2.15.1), the .basemat-file is not exported during the final build. However, the used .frag file and all derived materials will be exported just fine. After an successful build, copy&paste the initial .basemat file will solve the problem. Steps to reproduce: Create a new .basemat file in an folder (named shaders/basemats). Insert all code, create a new .frag file in the same folder and let the editor build them successfully. Create an derived .mat file inside the editor via the "Materials" tab as usual. Use the derived material normally in your project (we use FindMaterialByPath in code) Build the complete project via editor as .bat file-project Starting the project via .bat file shows an error, that the derived mat could not be loaded (because GUID for basemat could not be found). As a workaround just copy the .basemat file to the correct folder, where it was placed before the project build. I have attached my used custom materials for testing, it is just an basic outline-material. Hope that helps. shaders.7z Link to comment
silent Posted September 21, 2022 Share Posted September 21, 2022 Hi Christian, Thank you for the detailed description. To me it's look like an obvious bug. Will try to reproduce this in our QA lab and fix. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts