I can’t find the way to export a mesh on a OBJ file. I’ve ported a project from 3.6 to 4.x and now I realize that doesn’t exist anymore the ObjExporter class. I need help with this.
Thanks!
Does exist any way to export a mesh on a Obj file?Software: Away3D 4.x |
||
agventu, Newbie
Posted: 23 December 2014 04:04 PM Total Posts: 8 I can’t find the way to export a mesh on a OBJ file. I’ve ported a project from 3.6 to 4.x and now I realize that doesn’t exist anymore the ObjExporter class. I need help with this. Thanks! |
||
therealloft, Member
Posted: 29 December 2014 11:25 PM Total Posts: 65 [ # 1 ] I have a script that exports an objectcontainer3d to awd file it thats any help |
||
|
||
Fabrice Closier, Administrator
Posted: 30 December 2014 03:04 PM Total Posts: 1265 [ # 3 ] stl is may be the most simple bin format around. You can write this using away in no time. Any model loaded can be exported.
|
||
|
||
Fabrice Closier, Administrator
Posted: 30 December 2014 06:54 PM Total Posts: 1265 [ # 5 ] of course it exits. How would the gpu know which face to draw? here’s the order of the compact subgeometry data. you can also use, again only in compact geometries case, the stripBuffer method. For instance var verticesOnly = subgeom.stripBuffer(0, 3); using buffers from subGeometry or from stripbuffer, to get the vertex v0 of the first face, vo.x = vertices[ indices[0] * 3] , vo.y = vertices[ (indices[0] * 3) +1] , , vo.z = vertices[ (indices[0] * 3) +2] , go to indices[ next index] to retrieve v1, then v2. normals and tangent are to be retreived same way. For uvs, multiply by 2, not 3. just make some tests on a plane and add some traces… |
||
|