Actually I posted this problem to Fabrice some 5-6 months ago when also
stumbled into this issue :)) .( Fabrice, never mind I know you are busy ;))
)

PS
Additional f*&uk with MTL is that it writes absolute texture paths instead
of relative (Needs to be fixed manually as well )

On Mon, Oct 18, 2010 at 10:27 AM, Fabrice3D <[email protected]> wrote:

> can you send me a few outputs?
>
> Fabrice
> On Oct 18, 2010, at 6:45 AM, mwk wrote:
>
> > Hi folks, has anyone hit this? It looks like a problem with the obj
> > parser but I'm surprised nobody has seen it.
> >
> > Looks like 3.6.0 won't load an obj mtl file in the format that MAX
> > exports because the mtl file has leading tabs. E.g. here's the format
> > which doesn't parse (the full mtl files are appended):
> >
> > # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
> > # File Created: 14.10.2010 22:01:54
> >
> > newmtl mtlA
> >       Ns 10.0000
> >       Ni 1.5000
> >       d 1.0000
> > ...
> >
> > But if I remove the leading tabs that indent Ns etc. then it reads
> > fine. With the tabs present, in 3.5.x it throws an error, in 3.6 it
> > seems to silently skip the material (I preferred getting the error
> > actually :)
> >
> > Is there an obj guru out there? :)
> >
> > Thanks,
> > Mike
> >
> > ----
> > # As exported -- does not load
> > # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
> > # File Created: 14.10.2010 22:01:54
> >
> > newmtl mtlA
> >       Ns 10.0000
> >       Ni 1.5000
> >       d 1.0000
> >       Tr 0.0000
> >       Tf 1.0000 1.0000 1.0000
> >       illum 2
> >       Ka 0.5880 0.5880 0.5880
> >       Kd 0.5880 0.5880 0.5880
> >       Ks 0.0000 0.0000 0.0000
> >       Ke 0.0000 0.0000 0.0000
> >       map_Kd Fathers_LO_H_CompleteMap_256x256.jpg
> > ----
> > # tabs removed -- OK
> > # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
> > # File Created: 14.10.2010 22:01:54
> >
> > newmtl mtlA
> > Ns 10.0000
> > Ni 1.5000
> > d 1.0000
> > Tr 0.0000
> > Tf 1.0000 1.0000 1.0000
> > illum 2
> > Ka 0.5880 0.5880 0.5880
> > Kd 0.5880 0.5880 0.5880
> > Ks 0.0000 0.0000 0.0000
> > Ke 0.0000 0.0000 0.0000
> > map_Kd Fathers_LO_H_CompleteMap_256x256.jpg
>
>


-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
http://www.meetup.com/GO3D-Games-Opensource-3D/
Tel:054-4962254
[email protected]
[email protected]

Reply via email to