Sketchfab Forum

Trouble with Blender Cycles materials after upload


(Interface) #1

After I upload my .blend file and the models are processed, none of my materials appear on the models. Can anyone help me out? I just used basic materials like gloss, diffuse, glass, etc... I went back & only uploaded my .Obj & .mtl files but my problem is still occurring. Here's a link to my model

(Waleguene) #2

Hi @Interface,

Thanks for sharing the link of your model.
Blender Cycles are not really supported on Sketchfab since they are very Blender specific and the translation from Cycle to Sketchfab materials is not really possible. The Blender processing tries to retrieve data from cycles materials as much as it can but most of the time, the data is lost.

Does your scene have textures ? If yes, you would need to upload them with the .obj file.
If your scene materials only use colors, you can take a quick look at the .mtl file to check what is actually exported for materials:

newmtl Checkers
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

It seems that almost all the material (except the blue one) have the same color (Kd is for diffuse) and all the other properties have the same value, so the data is already lost in the exported files.
The issue may come from the .obj export that, as Sketchfab, cannot convert from Cycles materials, so it only exports basic data such as diffuse color (so only the blue object remains blue).

A workaround for this would be to bake the render into some textures, and apply them using regular Blender materials.

(Interface) #3

Thanks for the reply, I'll give this a shot when I have the time.