Hi Robert,

as I hinted at on osg-users in the "obj loader: map_* only reads last component" thread, this submission broke material/texture loading for some files I have that specify texture matrix scaling.

The following link shows a very comprehensive list of .mtl file options:
http://local.wasp.uwa.edu.au/~pbourke/dataformats/mtl/

Attached is a patch that should fix spacey filenames and optional texture scale/offset. I have tested it with files I have that I modified to contain spaces in the texture filenames.

Cheers!
/ulrich

Robert Osfield wrote:
Thanks Bob, changes merged and submitted to SVN.

FYI, I changed the std::cout to osg::notify(osg::INFO) as it's not
appropriate to have debugging messages output on load.

On Wed, Jul 23, 2008 at 11:54 PM, Bob Kuehne <[EMAIL PROTECTED]> wrote:
fix for filenames that have spaces within their name.

Attachment: obj_tex_options.tar.gz
Description: GNU Zip compressed data

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to