Great work Fabrice! I was also suffering from reversed OBJ models exported from Maya, now it works fine :)
And that color+alpha parsing from the mtl file is so cool, thanks! Is it planned to add support for specular tags from mtl file (Ks + Ns)? It would be awesome, both for bitmap and color materials :) On 3 abr, 02:52, Darcey Lloyd <[email protected]> wrote: > Nice one :) > > Will update my article with latest svn. > > Cheers. > > Darcey > > On 2 April 2011 22:56, Fabrice3D <[email protected]> wrote: > > > > > > > > > yes, as you inverse the direction, you need to reinverse the face order as > > well. > > if you don't, you get either inverted faces or u's and probably end up with > > lots of minus signs added to your code :) > > > Fabrice > > > On Apr 2, 2011, at 11:41 PM, John Brookes wrote: > > > > Lol, just looked what you did. > > > > I was trying earlier to see how and got the material right setting the > > same parseVertex and parseVertexNormal but ended up with reversed faces. > > Kept trying to think how to revese the faces. > > > Reverse the vertex winding? > > > > Im not worthy :))
