3.6 (not Lite) - It's much much faster when i use a single material for all the
particles like so:
var mcMat : MovieMaterial = new MovieMaterial( particleShape )
var pVertexId : int = 0 ;
for ( var c : int = 0 ; c < 4913 ; c ++ ){
var s : Sprite3D = new Sprite3D();
s.material = mcMat;
s.x = randRange(-PWORLD , PWORLD , true )
s.y = randRange(-PWORLD , PWORLD , true )
s.z = randRange(-PWORLD , PWORLD , true )
s.material = mcMat;
scene.addSprite(s)
}
If every sprite, has a different material it drops to 3FPS ( from 20 ), however
- i do want to tween
the colour of individual Sprite3D objects - which i guess i can do through the
material ( if they all
have an individual one )
Unless i find a way to tween the colour of individual Sprite3D ? ( still need
to look into that ).
Thanks
Karim
On 11 Nov 2010, at 20:38, Jerome wrote:
> Hi Karim,
>
> Which version of and flavour of Away3D are you using?
>
> Lite is faster but has less features. You can speed a bitmap material.
> MovieClip materials are re-drawn at every frame and are very taxing on
> the player. Unless you need animations, use bitmaps.
>
> This is a demo I made using Lite and a bitmap material. 5000+
> particles with a few hundred tweens running at 20+ fps in the debug
> player: http://www.wemakedotcoms.com/_exp/vertices/001/index.html
>
> ath.
>
> Jerome.