[Papervision3D] Loading Object Files (.obj)
Knut Urdalen
knut.urdalen at gmail.com
Tue Feb 19 13:31:05 PST 2008
Thanks for the tip Fabrice, now the demo [1] 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 [2] using the
referenced texture [3]. The MTL-file [2] also support bumpmaps [4] (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?
Knut
[1] http://www.urdalen.com/lab/objfish/
[2] http://www.urdalen.com/lab/objfish/fish.mtl
[3] http://www.urdalen.com/lab/objfish/sakura_p3b-3.jpg
[4] http://www.urdalen.com/lab/objfish/sakura_p3bBump3.jpg
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
>
> Fabrice
>
More information about the Papervision3D
mailing list