FWIW, according to the wavefront obj spec[1], vt coordinates are optional, so the file seems to be correct.
[1] http://www.martinreddy.net/gfx/3d/OBJ.spec -Ken On Tue, Mar 15, 2011 at 11:33 AM, Fabrice3D <[email protected]> wrote: > this obj file is incorrect: doesn't hold vertices texture (uv's) tag > starting as vt > > we could ensure defsault uv's are set... will look at this later on. > but for now you know why it doesn't load. > > Fabrice > On Mar 15, 2011, at 4:39 PM, pcarret wrote: > > > > > I'm currently trying under Eclipse + Flex 4 the broomstick samples > > > http://code.google.com/p/away3d/source/browse/trunk/broomstick/Examples/?r=2905 > > > > I always test obj file with MeshLab beffore away3d. > > I've tried to change LoaderOBJTest with other obj (cessna.obj on the > > net) without success (except teapot.obj) and at the end with a simple > > obj file from > http://fr.wikipedia.org/wiki/Objet_3D_%28format_de_fichier%29: > > > > # cube.obj > > # > > > > g cube > > > > v 0.0 0.0 0.0 > > v 0.0 0.0 1.0 > > v 0.0 1.0 0.0 > > v 0.0 1.0 1.0 > > v 1.0 0.0 0.0 > > v 1.0 0.0 1.0 > > v 1.0 1.0 0.0 > > v 1.0 1.0 1.0 > > > > vn 0.0 0.0 1.0 > > vn 0.0 0.0 -1.0 > > vn 0.0 1.0 0.0 > > vn 0.0 -1.0 0.0 > > vn 1.0 0.0 0.0 > > vn -1.0 0.0 0.0 > > > > f 1//2 7//2 5//2 > > f 1//2 3//2 7//2 > > f 1//6 4//6 3//6 > > f 1//6 2//6 4//6 > > f 3//3 8//3 7//3 > > f 3//3 4//3 8//3 > > f 5//5 7//5 8//5 > > f 5//5 8//5 6//5 > > f 1//4 5//4 6//4 > > f 1//4 6//4 2//4 > > f 2//1 6//1 8//1 > > f 2//1 8//1 4//1 > >
