|
volzh, Newbie
Posted: 18 August 2011 02:27 AM Total Posts: 4
I’m currently using latest version of away3d-core-fp11 on GitHub.
problem is md5 mesh is flipped.
I exported md5mesh file from 3dsmax with plugins,
and checked it by importing md5mesh with 3dsmax.
It was fine.
but when md5mesh file is imported & rendered by away3d api,
it’s (horizontal) flipped.
|
theMightyAtom, Sr. Member
Posted: 18 August 2011 05:43 AM Total Posts: 669
[ # 1 ]
|
Richard Olsson, Administrator
Posted: 18 August 2011 06:40 AM Total Posts: 1192
[ # 2 ]
I believe the MD5 “specification” doesn’t specify what axis orientation should be used, and this is a real problem because it means that generators can use any coordinate system, and since Away3D always uses the same models from different tools will show up different. See if there are any options regarding this in the MD5 exporter, or try modifying the parser source for your case. We will investigate putting flip properties on the parsers to avoid these problems in the future.
|
volzh, Newbie
Posted: 19 August 2011 01:23 AM Total Posts: 4
[ # 3 ]
I’ve got correct model rendering by setting scaleX negative number.
but when rendering, texture is rendered inside of mesh.
I tried to find a way to flip faces in away3d api 4,
but i can’t find it.
how can i flip faces, not using material.bothSides = true.
|
volzh, Newbie
Posted: 19 August 2011 01:25 AM Total Posts: 4
[ # 4 ]
oh. I found tools.MeshHelper.invertFaces.
Thanks richard.
|
volzh, Newbie
Posted: 02 September 2011 03:03 AM Total Posts: 4
[ # 5 ]
exported md5mesh file by 3dsmax2010 with md5 export plugin is mirrored.
so, I attached mesh & axis into ObjectContainer3D.
tip of axis pointed to positive direction.
x, y, z axis are represented by R,G,B color.
finally the mesh is parsed mirroring by z axis.
I hope this will may help for improving md5 parser.
|
|