Wavefront OBJ exporter should export more precise illum value in MTL file #43487
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#43487
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Short description of error
When using transparency settings, the OBJ exporter still uses only the values 0,1 and 2 for the illum parameter. This may confuse other programs that rely on the correctness of this parameter.
Exact steps for others to reproduce the error
Create any kind of model and attach a material to it. Make sure to use transparency and export the object as Wavefront obj file (make sure to check "Write Materials").
Open the MTL file and verify the illum parameter.
Idea of a fix
Change the respective lines in scripts/addons/io_scene_obj/export.py:
Important note
This does only cover transparency now, because I don't know blender good enough to provide a full fix.
Someone with more knowledge might want to cover all illum modes:
Plain: already covert
Italics: covered by my "fix"
Bold: not covered yet
0: Color on and Ambient off
1: Color on and Ambient on
2: Highlight on
3: Reflection on and Ray trace on
4: Transparency: Glass on, Reflection: Ray trace on
5: Reflection: Fresnel on and Ray trace on
6: Transparency: Refraction on, Reflection: Fresnel off and Ray trace on
7: Transparency: Refraction on, Reflection: Fresnel on and Ray trace on
8: Reflection on and Ray trace off
9: Transparency: Glass on, Reflection: Ray trace off
10: Casts shadows onto invisible surfaces
(List extracted from Wikipedia)
Changed status to: 'Open'
Added subscriber: @iUniversEi
Will have a look at that… More a TODO than a bug though (and we should support that in importer as well).
This issue was referenced by
bd9fa80543
Changed status from 'Open' to: 'Resolved'
Closed by commit
bd9fa80543
.