Anyway to save a mesh to disk

Software: Away3D 4.x

therealloft, Member
Posted: 12 March 2014 01:36 AM   Total Posts: 65

I have a scene already created in away3d, the complex meshes I have have been merged to one mesh to keep the fps consistent which it has done but due to the complex way my meshes are created it takes a long time. To cut a short story even shorter I was wondering if there was a way to save the mesh to disk with its bitmap textures still attached. I have tried using filestream writeObject (mesh) method it saves ok but when I try and load it, its comes up with expected 1 parameter got 0. Has anyone achieved this? It save my code parsing the map file which creates about 5000 unique meshes. Many thanks in advance

   

Avatar
theMightyAtom, Sr. Member
Posted: 12 March 2014 07:41 AM   Total Posts: 669   [ # 1 ]

What you’d need is an AWD export Class. There must be one in AwayBuilder.
Checking the AWD SDK I can’t find an AS3 version.
https://github.com/awaytools/awd-sdk

This would be a great addition to Away3D, the ability to save out AWD.
Unfortunately, right now you’d have to roll your own exporter.

Cheers!

   

therealloft, Member
Posted: 12 March 2014 09:12 AM   Total Posts: 65   [ # 2 ]

Thats a shame maybe I look into trying to export an object3d to disk using amf protocols or make my owb exporter like you suggested. if it works I submit the class as an added feature. As others have been asking but if anyone has any ideas it be most appreciated

   

Avatar
theMightyAtom, Sr. Member
Posted: 12 March 2014 09:18 AM   Total Posts: 669   [ # 3 ]

Both AwayBuilder and Prefab have this exporter.
What say you devs? Is this an open source community?

   

therealloft, Member
Posted: 13 March 2014 12:07 AM   Total Posts: 65   [ # 4 ]

well my tests didn’t work oh well. who wants to quote me happy with a custom exporter class (meshes with textures) cheese

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X