Issue with object files import

This topic has been viewed 2349 times and has 1 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
stain35
Posts: 10
Joined: Tue Apr 28, 2020 6:45 pm

Issue with object files import

Post by stain35 »

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:

"Amazon Echo" (https://skfb.ly/6npGF) by Eternal Realm is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).

AmazonEcho.mtl:

Code: Select all

# 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):

Code: Select all

# Blender v2.93.1 OBJ File: 'echo.blend'
# www.blender.org
mtllib AmazonEcho.mtl
o echo_Circle.086



I have a link to full obj file but unsure as to whether I can add that for Sketchfab copyright reasons. However, it is free to download there.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Issue with object files import

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests