Compress all the models into one single ByteArray chunk and send it to
the Client. Then use "ByteArray.deflate" to uncompress that data?
Or send it as zip compressed stream and use nochumps zip classes to
extract the models.

The most important thing is, to minimize requests. The most flexible
solution would probably be:
- Client sends a request that contains the needed models to the server
- Server component searches for the requested models (in DB or files)
and packs them into a compressed format
- Server component sends back the compressed data as a chunk of bytes.
- Client unpacks the bytestream and can then access the model data.

Should't be a big deal to do something like this. And will probably
speed up thing significantly when dealing with lots of models.
For extra speed, also implement a caching mechanism...

On Apr 28, 11:13 am, Michael Iv <[email protected]> wrote:
> Have you done it before?  Models are just  vertex and coords data. How do
> you compress them in SWF?
>
>
>
> On Wed, Apr 28, 2010 at 12:02 PM, Tain <[email protected]> wrote:
> > think of it like this,
>
> > you put 100 models (10kb each) in a 1 .swf file. and it compresses it
> > to ~500kb.
> > now all you have to do is to load 1 swf file into flash and you will
> > have all of the models available.
>
> > i don't think there is socket connection that will download 1MB of
> > binary data faster than load a 500kb swf.
>
> > On Apr 28, 9:43 am, Michael Iv <[email protected]> wrote:
> > > GUYS you don't get me . I am not looking to a way to compress data but to
> > > load it quickly . Putting the model data in SWF will not give me mush . I
> > am
> > > going to try put models in binary format into DB and then pull it with
> > BLAZE
> > > and decode them into models back into my 3d program . I believe this can
> > > speed up models loading
>
> > > On Wed, Apr 28, 2010 at 10:23 AM, jens lofberg <[email protected]
> > >wrote:
>
> > > >  Hi
> > > > A very simple way of compressing data is to compress it with flash. Put
> > > > your data in a fla, choose compress option and export as swf. Then you
> > just
> > > > have to load the swf and  extract the data.
>
> > > > jens
>
> > > > Michael Iv a écrit :
>
> > > > I don't have concrete work to do , just thinking about this . I also
> > don't
> > > > think the size matters , I mean after converting to ByteArray the size
> > > > doesn't really change . But sending it over AMF speeds up loading of
> > the
> > > > data . For instance , from the AMF documentation it comes out that
> >  sending
> > > > binary data via AMF is 10 times faster then doing it with XML ,and I
> > know
> > > > this from the actual projects I have done with BlazeDS. Now , think
> > about it
> > > > when here we msotly dealing with DAE(=XML) formats .Think about having
> > > > Avatar that your user can customize ( having 100 models ready in
> > background
> > > > is going to be a problem),switching models in no time! The real problem
> > I
> > > > think is going to be to test the actual speed , because I have no
> > BLAZEDS
> > > > deployed on a WEB .
>
> > > > On Tue, Apr 27, 2010 at 10:30 PM, savagelook <
> > [email protected]
> > > > > wrote:
>
> > > >> How big are the models?  How much smaller are they when you convert
> > > >> them to a binary format?  I would imagine the difference would have to
> > > >> be VERY big for this type of setup to gain you anything in terms of
> > > >> loading speed.  Have you tried loading your models into prefab and
> > > >> exporting them as AS3 classes?
>
> > > >> On Apr 27, 2:54 pm, SasMaster <[email protected]> wrote:
> > > >> > I have got a theoretic question. I am thinking about ways to speed
> > up
> > > >> > models loading time. Now ,what if I put a few models in binary
> > format
> > > >> > in a database(let's say I insert them from flash using bytearray
> > from
> > > >> > a kind of managing administrator interface) , then use BlazeDS or
> > LCDS
> > > >> > to get them into Application using AMF and then building the model
> > > >> > from this binary data ? Would it work ?
>
> > > >> > --
> > > >> > Subscription settings:
> > > >>http://groups.google.com/group/away3d-dev/subscribe?hl=en
>
> > > > --
> > > > Michael Ivanov ,Programmer
> > > > Neurotech Solutions Ltd.
> > > > Flex|Air |3D|Unity|
> > > >www.neurotechresearch.com
> > > > Tel:054-4962254
> > > > [email protected]
> > > > [email protected]
>
> > > --
> > > Michael Ivanov ,Programmer
> > > Neurotech Solutions Ltd.
> > > Flex|Air |3D|Unity|www.neurotechresearch.com
> > > Tel:054-4962254
> > > [email protected]
> > > [email protected]
>
> --
> Michael Ivanov ,Programmer
> Neurotech Solutions Ltd.
> Flex|Air |3D|Unity|www.neurotechresearch.com
> Tel:054-4962254
> [email protected]
> [email protected]

Reply via email to