Obj loader incorrectly loading specular maps #45315

Closed
opened 2015-07-05 05:06:08 +02:00 by ProPuke · 5 comments

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 to mtex.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

**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 to `mtex.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
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ProPuke

Added subscriber: @ProPuke
Bastien Montagne self-assigned this 2015-07-05 09:39:06 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

This issue was referenced by df9b373f66

This issue was referenced by df9b373f660c931426f65deae01ea8bccc4be628

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
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-addons#45315
No description provided.