ModelViewer code doesn't recognize materials

Feb 8, 2013 at 3:43 AM
ModelImporter.Load, invoked from the ModelViewer source, doesn't seem to recognize material definitions. All models are either green (no material definition) or Yellow (there is a material definition that references a .MTL file, but the material info is ignored). Am I missing something, or is ModelViewer not meant to recognize different colored material in OBJ files?
Feb 10, 2013 at 3:16 PM
The Obj reader should support materials (diffuse, ambient, specular, textures and opacity). You should try to debug the import of the .mtl file. Set a breakpoint in the LoadMaterialLib method. Let us know if there is a bug in the code, and we will correct it.
Feb 12, 2013 at 3:09 AM
My bad. Stepping into the code, I saw that there were tabs in the materials file. Still working on lighting, but this problem is solved. Thanks!