Hello Dat,
On 27/10/09 2:05 AM, Nguyen Tien Dat wrote:
So I have read about .mtl and .obj files and understood what you
meant. I created a program to optimize the model
(http://cs.uiowa.edu/~tinguyen/OptimizeMtlFiles.rar)
But the new one that I created doesn't look the same as the old one
when I don't use texture. Please click this link to download both
versions, and use osgviewer.exe to view them.
http://cs.uiowa.edu/~tinguyen/supermarket_3ds.rar
The old one has some color (again, without texture), but the new one
doesn't. So I'm wondering what's wrong.
Quite simple: if you look at the beginning of the 'supermarket_new.obj' file you'll see
the reference to the material file: 'mtllib supermarket_new.mlt'
Note the file extension, it's 'mlt' but it should be 'mtl'.
The obj reader should complain rather loudly that it can't find this file but apparently
it isn't.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org