Joined: Apr 28, 2020
Post Count: 10
Status:
Offline
Issue with object files import
I realise that there are several threads for this subject but I haven't found anything that solved my issue.
I have Obj files I have created in Blender myself, some Blend files I have downloaded as Blender files from Sketchfab plus some that I have downloaded from places such as CG Trader.
So they are either object files to start with or exported from Blender.
I have mtl files created alongside the object. I have even, in one instance, edited the obj file to have the absolute path of the mtl file.
However, none of these are imported into SH3D successfully as furniture with the materials attached. They are always just the object itself, no colours.
I have considered zipping these together, to see if that remedies the issue, but not sure if this is a standard zipfile or needs specialist obj file zipping processes.
An example of an mtl file and obj file in text format is below (note these are in the same folder). I will follow the rules and credit the originator:
# Blender MTL File: 'echo.blend' # Material Count: 5
newmtl base Ns 225.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2
newmtl blue Ns 225.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2
newmtl dot Ns 225.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2
newmtl gray Ns 225.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2
newmtl white Ns 225.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2
AmazonEcho.obj (just the first few lines - note did try with absolute mtl file path):
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Issue with object files import
Your MTL file actually describes only grey colors (Kd R G B values are the same!). Try to change them, for example Kd 0 0 1 for blue. This must be because of the way colors are defined in Blender.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator