Exported OBJ/MTL files do not include emissive lighting parameters #45766

Closed
opened 2015-08-12 07:06:22 +02:00 by John Gilbert · 12 comments

System Information
Operating system and graphics card
MacBook Pro - NVIDIA GeForce GT 330M

Blender Version
Broken: tested not working - 2.73, 2.74, 2.75
Worked: (optional)

Short description of error
Exported OBJ/MTL files do not include emissive lighting parameters. MTL file includes Ka, Kd, and Ks, but not Ke data.

Exact steps for others to reproduce the error
File->Export->Wavefront (.obj)
save as test.obj
Look at resulting test.mtl file.

Based on a (as simple as possible) attached .blend file with minimum amount of steps
NA

**System Information** Operating system and graphics card MacBook Pro - NVIDIA GeForce GT 330M **Blender Version** Broken: tested not working - 2.73, 2.74, 2.75 Worked: (optional) **Short description of error** Exported OBJ/MTL files do not include emissive lighting parameters. MTL file includes Ka, Kd, and Ks, but not Ke data. **Exact steps for others to reproduce the error** File->Export->Wavefront (.obj) save as test.obj Look at resulting test.mtl file. Based on a (as simple as possible) attached .blend file with minimum amount of steps NA
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @John_G

Added subscriber: @John_G

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-08-12 10:58:40 +02:00

Thanks for the report, but never saw any 'ke' in .mtl files - and it’s mentioned not in specifications (http:*paulbourke.net/dataformats/mtl/, https:*en.wikipedia.org/wiki/Wavefront_.obj_file). Would not consider adding non-standard stuff like that, unless you can prove for a very wide acceptance of it?

In any case, not a bug. ;)

Thanks for the report, but never saw any 'ke' in .mtl files - and it’s mentioned not in specifications (http:*paulbourke.net/dataformats/mtl/, https:*en.wikipedia.org/wiki/Wavefront_.obj_file). Would not consider adding non-standard stuff like that, unless you can prove for a very wide acceptance of it? In any case, not a bug. ;)
Author

Don't take my word for it - look at line 174 of export_obj.py already in Blender - you will find map_Ke - the keyword to attach a texture to an emissive color. Works the same way as map_Ka, map_Kd, etc. but for emissive light. Only makes sense if there's also a way to change the emissive light color like with Ka, Kd and Ks for other kinds of light.

Also look at http://cgkit.sourceforge.net/doc2/objmaterial.html
I can find hundreds of obj/mtl examples that contain Ke.

Ke has been part of the wavefront obj/mtl file format standard since 1996.

I'm using it for models of terminals and displays - it's really annoying when Blender strips it out. It's preserved in X3D and other formats.

Please consider it a bug in the import/export obj system - it's effecting my work flow.

Don't take my word for it - look at line 174 of export_obj.py already in Blender - you will find map_Ke - the keyword to attach a texture to an emissive color. Works the same way as map_Ka, map_Kd, etc. but for emissive light. Only makes sense if there's also a way to change the emissive light color like with Ka, Kd and Ks for other kinds of light. Also look at http://cgkit.sourceforge.net/doc2/objmaterial.html I can find hundreds of obj/mtl examples that contain Ke. Ke has been part of the wavefront obj/mtl file format standard since 1996. I'm using it for models of terminals and displays - it's really annoying when Blender strips it out. It's preserved in X3D and other formats. Please consider it a bug in the import/export obj system - it's effecting my work flow.

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Yeah… well, ke/map_ke is definitively not in official specs… But seems to be indeed rather common extension (http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr e.g. explicitely cite it as extension), and map_ke was added from #32914, so I guess we can as well add ke too (and support map_ke on import, tsst).

Yeah… well, ke/map_ke is definitively not in official specs… But seems to be indeed rather common extension (http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr e.g. explicitely cite it as extension), and map_ke was added from #32914, so I guess we can as well add ke too (and support map_ke on import, tsst).

Also, since we use diffuse color for emission, I’m going to use it when exporting too, and try to do my best at import stage, but there will be some lack of data here, we cannot do anything about it.

Also, since we use diffuse color for emission, I’m going to use it when exporting too, and try to do my best at import stage, but there will be some lack of data here, we cannot do anything about it.

This issue was referenced by blender/blender-addons@94c9c4ee33

This issue was referenced by blender/blender-addons@94c9c4ee3370d1feb42fc978a1f0d2db07cb9431

Please see commit notes for limitations. Also, could not make extensive testing on this, since I have no .obj with ke values here, please either test this or attach here a few testing files.

Please see commit notes for limitations. Also, could not make extensive testing on this, since I have no .obj with ke values here, please either test this or attach here a few testing files.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#45766
No description provided.