klepto2 Posted November 12, 2023 Share Posted November 12, 2023 If a material is saved via code, then the thumbnails not get generated correctly. when you create a Material in code, Load a texture and assign it to a slot. The following is saved using Material:Save: "texture0": "Materials/XXX/textures/brown_brick_02_diffuse.dds" where it should be : "texture0": "./textures/brown_brick_02_diffuse.dds" the above code leads to thumbnails with just a white ball. The later one displays correctly. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted November 12, 2023 Share Posted November 12, 2023 Editor is updated (build 216) Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
klepto2 Posted November 13, 2023 Author Share Posted November 13, 2023 Unfortunaltly it still doesn't work as expected. Here is a smaple material, one working and the other one not. mat_test.zip Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted November 13, 2023 Share Posted November 13, 2023 This appears to be working correctly. You can just paste it in the console: mtl = LoadMaterial("Materials/Developer/grid01.mat") mtl:Save("Materials/Developer/test.mat") I will try it with a subfolder now like you are using.... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted November 13, 2023 Solution Share Posted November 13, 2023 Okay, it's fixed now, for real. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.