zipped object

Software: Away3D 4.x

Avatar
loth, Sr. Member
Posted: 28 September 2011 04:12 PM   Total Posts: 236

hello
i try to optimise demo by using .zip
ex : track.obj = 2040 ko and track.zip = 463 ko
that’s great but only the first mesh seem correct see picture

i use nochump for getting data

Loader3D.enableParser(OBJParser);
loader3d = new Loader3D();
loader3d.addEventListene(AssetEvent.ASSET_COMPLETE,onAssetComplete);
loader3d.parse( data, null,  new AssetLoaderContext(false));

and

private function onAssetComplete(e:AssetEvent):void{
e.target.removeEventListene(AssetEvent.ASSET_COMPLETE,onAssetComplete)
var container:ObjectContainer3D=ObjectContainer3D(loader3d);
_finalFonction2(container)
}
   

 

   

Richard Olsson, Administrator
Posted: 29 September 2011 01:36 PM   Total Posts: 1192   [ # 1 ]

Are you zipping all the assets together into one?

   

Avatar
loth, Sr. Member
Posted: 29 September 2011 02:18 PM   Total Posts: 236   [ # 2 ]

hello no
i have 3 zip
one for track, one for car and one for building
but for exemple track
they are 6 mesh only the first one work

i see with 3ds i can grabe more
track.3ds=618ko and .zip=283ko cool
but parser seem don’t work ? zipped or not

   

Avatar
loth, Sr. Member
Posted: 29 September 2011 02:20 PM   Total Posts: 236   [ # 3 ]

i want keep direct loading for future update

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X