[Papervision3D] Loading Object Files (.obj)
knut.urdalen at gmail.com
Tue Feb 19 13:31:05 PST 2008
Thanks for the tip Fabrice, now the demo  works and I'm able use the
OBJ-parser like this:
var fish:OBJ = new OBJ("fish.obj", "fish.mtl");
and create BitmapMaterials from the material file  using the
referenced texture . The MTL-file  also support bumpmaps  (see
the "map_Bump" keyword). It would be nice to also load this
automatically if it's already defined in the material file.
Could you put me in the right direction on how to add the bump map data
to a TriangleMesh3D?
Fabrice Closier wrote:
> Well done!
> However, you may have made a little mistake in the parsing, your
> faces are flipped...
> If the model is correct and have all faces unified,
> then a,b,c needs to be b,a,c
More information about the Papervision3D