Arguments for procedural texture files not supported for MTL when importing WaveFront OBJ files #46459

Closed
opened 2015-10-12 21:26:58 +02:00 by Kruithne · 12 comments

System Information
Windows 7 Ultimate 64-bit
32.0GB RAM, Intel Core i7-3770k CPU @ 3.50GHz
GFX: GeForce GTX 980 Ti (Driver 355.82)

Blender Version
Broken: 2.75a c27589e

Short description of error
The specification for MTL files states that texture maps can support optional arguments before the file name allowing the imported material to be manipulated such as texture size (http://paulbourke.net/dataformats/mtl/). When importing a WaveFront OBJ with a linked MTL file, these optional arguments are parsed as part of the filename and therefore end up producing a material with an invalid image linked.

Exact steps for others to reproduce the error

  • Extract the 10 files included in the ZIP archive attached, consisting a WaveFront OBJ, a linked MTL file and 8 textures.
  • Import the WaveFront OBJ file into a new Blender project.

The expected result here would be that all the materials applied to the meshes have a size manipulation of 1, -1, 1. However, instead the arguments provided to the texture map are included in the material file names, which prevent them from working at all.

stables.zip

**System Information** Windows 7 Ultimate 64-bit 32.0GB RAM, Intel Core i7-3770k CPU @ 3.50GHz GFX: GeForce GTX 980 Ti (Driver 355.82) **Blender Version** Broken: 2.75a c27589e **Short description of error** The specification for MTL files states that texture maps can support optional arguments before the file name allowing the imported material to be manipulated such as texture size (http://paulbourke.net/dataformats/mtl/). When importing a WaveFront OBJ with a linked MTL file, these optional arguments are parsed as part of the filename and therefore end up producing a material with an invalid image linked. **Exact steps for others to reproduce the error** - Extract the 10 files included in the ZIP archive attached, consisting a WaveFront OBJ, a linked MTL file and 8 textures. - Import the WaveFront OBJ file into a new Blender project. The expected result here would be that all the materials applied to the meshes have a size manipulation of 1, -1, 1. However, instead the arguments provided to the texture map are included in the material file names, which prevent them from working at all. [stables.zip](https://archive.blender.org/developer/F244579/stables.zip)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Kruithne

Added subscriber: @Kruithne

Added subscriber: @sindra1961

Added subscriber: @sindra1961

I think that it is full specifications of the .mtl format.
The content that Wavefront OBJ Import/Export supports is written here .
I think that the specifications are not included.

I think that it is full specifications of the .mtl format. The content that Wavefront OBJ Import/Export supports is written [here ](http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Import-Export/Wavefront_OBJ). I think that the specifications are not included.
Member

Added subscriber: @tetha.z

Added subscriber: @tetha.z

Added subscriber: @mont29

Added subscriber: @mont29

Well… one thing for sure, it should not break texture filepaths. ;)

Supporting those options is more a TODO really, but will try to add at least basic ones too, since I’m at it…

Well… one thing for sure, it should not break texture filepaths. ;) Supporting those options is more a TODO really, but will try to add at least basic ones too, since I’m at it…
Bastien Montagne self-assigned this 2015-10-13 10:57:00 +02:00

This issue was referenced by ecdc7c03ec

This issue was referenced by ecdc7c03ec14e6ed70dea808b61049017f46ad97

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Fixed in ecdc7c03ec

Fixed in ecdc7c03ec

@mont29:
There is an option elsewhere, but they do not seem to be excluded.

-blendu on | off
-blendv on | off
-cc on | off
-clamp on | off
-mm base gain
-o u v w
-s u v w
-t u v w
-texres value
-imfchan r | g | b | m | l | z 

Alias/WaveFront Material (.mtl) File Format

@mont29: There is an option elsewhere, but they do not seem to be excluded. ``` -blendu on | off -blendv on | off -cc on | off -clamp on | off -mm base gain -o u v w -s u v w -t u v w -texres value -imfchan r | g | b | m | l | z ``` [Alias/WaveFront Material (.mtl) File Format ](http://www.fileformat.info/format/material/)

@mont29:
I'm sorry, it seems to extract only a thing to use.

@mont29: I'm sorry, it seems to extract only a thing to use.
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#46459
No description provided.