Page MenuHome

OBJ import gives error for Ke / emmisive (single value instead of color)
Open, Confirmed, LowPublic


System Information
Operating system: Windows-10 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA 419.67

Blender Version
Broken: version: 2.80 (sub 60), branch: blender2.7, commit date: 2019-04-29 17:52, hash: rB047081841113

Short description of error
Importing obj files gives an error.

Exact steps for others to reproduce the error

  1. Download any of the obj files in this link: (I uploaded one of them below)
  2. Import it in Blender and it gives this error:
(  0.0000 sec |   0.0000 sec) Importing OBJ 'C:\\Users\\filibis\\Downloads\\AdobeStock_222486460\\z2_spacesuit_zero_gravity_pose.obj'...
  (  0.0010 sec |   0.0010 sec) Parsing OBJ file...
    (  0.4475 sec |   0.4465 sec) Done, loading materials and images...
Progress:  33.33%

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\blender-2.80.0-git.047081841113-windows64\2.80\scripts\addons\io_scene_obj\", line 145, in execute
    return import_obj.load(context, **keywords)
  File "C:\Program Files\Blender Foundation\blender-2.80.0-git.047081841113-windows64\2.80\scripts\addons\io_scene_obj\", line 1200, in load
    use_image_search, float_func)
  File "C:\Program Files\Blender Foundation\blender-2.80.0-git.047081841113-windows64\2.80\scripts\addons\io_scene_obj\", line 334, in create_materials
    float_func(line_split[1]), float_func(line_split[2]), float_func(line_split[3])]
IndexError: list index out of range

location: <unknown location>:-1

location: <unknown location>:-1



Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from Needs Triage by Developer to Normal.May 7 2019, 10:33 PM
Philipp Oeser (lichtwerk) edited projects, added Add-ons, Import/Export; removed BF Blender.

Hm, this mtl file has emmisive / Ke as a single value:

newmtl shield_Mat
Pr 0.0),
Ni 1.6
Ka 0 0 0
Pm 1
d 1.0
Ke 0.0

Afaict this is supposed to be a color [3 components]?

Not sure if they [adobe] are breaking the specification [not sure if this is even in there officially...wikipedia says it is an extension]
[btw. that roughness / Pr line looks a little suspicious as well ;)]

@Bastien Montagne (mont29): would be easy to check the line for 1 or 3 values (and act accordingly), could do that, question here is just [again] if we are adapting to custom flavours?

Philipp Oeser (lichtwerk) renamed this task from Importing Obj Gives Error to OBJ import gives error for Ke / emmisive (single value instead of color).May 8 2019, 8:51 AM
Brendon Murphy (meta-androcto) triaged this task as Confirmed, Low priority.Jun 11 2019, 10:24 AM

lowering priority. it's a hard call.

I would like to work on this issue.

Do you meant that it's a hard call because there's only one value instead of 3 or is there another reason?
Version 4.2 of the mtl standard specifies for colors: "If only r is specified, then g, and b are assumed to be equal to r."

Currently only Ke is implemented of the PBR extension to mtl. (
I would also like to add the other properties if nobody objects to it.
The extension is based on the disney PBR paper and if I'm not mistaken should map directly to the values of the principled shader.