Obj loader incorrectly loading specular maps #45315
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#45315
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?
System Information
Elementary OS Luna, Nvidia GTX 560Ti
Blender Version
Broken: 2.75
Short description of error
There is an inconsistency with how specular maps (map_Ks) are loaded from the obj .mtl file.
There are loaded as specular intensity (although the texture can be rgb), but saved from specular colour.
Thus loading and then resaving an obj file loses this information. They should presumably be loaded as specular colour also, as they can contain colour information.
In io_scene_obj/import_obj.py The line reading
mtex.use_map_specular = True
needs to be changed tomtex.use_map_color_spec = True
Exact steps for others to reproduce the error
Load an obj model with a specular map.
Re-save it.
The specular map is now missing from the obj .mtl file
Changed status to: 'Open'
Added subscriber: @ProPuke
Added subscriber: @mont29
This issue was referenced by
df9b373f66
Changed status from 'Open' to: 'Resolved'