Jump to content

Thumbnails (Material) not generated correctly


Go to solution Solved by Josh,

Recommended Posts

Posted

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.

  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Posted

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....

Let's build cool stuff and have fun. :)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...