[open source]gui particle editor and andriod preview version

Software: Away3D 4.x

Tom.de, Newbie
Posted: 09 May 2012 02:57 PM   Total Posts: 30   [ # 16 ]

That’s what I’ve done.
I just thought there might be another option, because it felt a bit dirty. LOL
In any way, it works nicely, love the system.

 

   

Tom.de, Newbie
Posted: 17 May 2012 09:23 AM   Total Posts: 30   [ # 17 ]

I’m using the particle engine plus editor quite extensively and so far it performs very well.

I’ve got one issue though and I’m not quite sure if that’s down to me handling it wrong or if there might be another problem.

I created a particle effect in the “effect editor” using a cube model I have. It creates 8 little cubes falling down and does not loop.

I create about 6 of them via the EffectGroupFactoryS. (different types)
These 6 effects I use as blueprints, they are not added to the view.

During runtime I make about 160 clones (cloning the EffectGroup) and add them to the view. Once they played I remove them from the view and set them to null. (every time the level is replayed I clone another 160 effects. I do that because I need a different combination for each “play”)

This works fine but inevitably I get the message Resource limit for this resource type exceeded.

The actual error message:
Error: Error #3691: Resource limit for this resource type exceeded.
at flash.display3D::Context3D/createVertexBuffer()
at a3dparticle.animators::TransformFollowState/processOffest() [TransformFollowState.as:114]
at a3dparticle.animators::TransformFollowState/setRenderState() [TransformFollowState.as:79]

Is there another action I should perform to prevent this from happening?

 

   

Avatar
Cheng Liao, Administrator
Posted: 17 May 2012 02:05 PM   Total Posts: 116   [ # 18 ]

There is some limits on attachments.

Is it possible that your model is too large?
Or the system has memory leek problem.
Please give some clues.

 

   

Tom.de, Newbie
Posted: 17 May 2012 02:23 PM   Total Posts: 30   [ # 19 ]

I’ll do some more investigation with everything else turned off…
I do a lot of cloning so I might have overlooked something.

Currently building some other stuff in the game but I’ll get back to you with more detail as soon as I can.

 

   

Tom.de, Newbie
Posted: 18 May 2012 08:32 AM   Total Posts: 30   [ # 20 ]

I bow my head in shame.

It does crash at said place mentioned above but the particle engine is not responsible.
I’ve done some extensive tests with everything turned off and I can pretty much continuously clone (from 6 blueprint effects), trigger and destroy all 160 particle effects at once at almost no performance loss. Memory remains absolutely stable.

That simply means I have done something really bad elsewhere in my game.
The particle engine is quite impressive I have to say, it has been very helpful.

 

   

Avatar
Cheng Liao, Administrator
Posted: 18 May 2012 08:39 AM   Total Posts: 116   [ # 21 ]

Hi
  I check the TransformFollowState and do some optimization ,thanks for your report.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X