Print at Dec 17, 2025, 11:38:13 AM

Posted by Keet at May 25, 2024, 3:30:42 PM
Re: Color of imported furniture is always grey
Changing Kd into Ka unfortunately did not change anything.
Apparently Sweet Home 3D needs both Ka and Kd to show the correct color. If you copy the Kd value and add it as Ka value the correct color should show:
newmtl DEFAULT_MTL
Ka 0.635 0.686 0.749
Kd 0.635 0.686 0.749

newmtl MTL0
Ka 0.000 1.000 0.000
Kd 0.000 1.000 0.000

This is minimal and really not a good representation of a material. Check you CAD program to see if you can get it to create a better export of the material.
The most important is that your CAD program exports all the material names. After import in Sweet Home 3D you can set colors and textures for each material and optionally export to obj again. The export from Sweet Home 3D should create a correct mtl file with illum, Ka, Kd, Ks, and Ni values.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects