Aloha John,

Nice to see you here ehe, thanks.

I see you adding it directly into the scene.
I am turning the whole scene 360 degrees so what I did is putting all
objects into a object3dcontainer and turn that. Or should I move the
camera around the objects instead?
So I needed to add the 'dof sprite' into the object3dcontainer and
well then you need a mesh. So I guess that's why the mesh was used.

Other question:
What would be the best way to have a 2d vector file  (ai) into the
scene so that it will scale perfectly ?

Again thanks,

Ringo.



On Nov 29, 4:20 pm, John Brookes <[email protected]> wrote:
> Not played with dof sprite. The Advanced_DofAtom example in the svn seems
> confusing. Not sure why its added to a mesh.
>
> Just doing
>
> var i:int = snowflakeNum;
> while (i--)
> {
>
> var snowflake:DepthOfFieldSprite = new DepthOfFieldSprite(snowflakeMaterial)
>
> scene.addSprite(snowflake);
>
> snowflake.x = randomMinMax(-600,600)
>
> snowflake.z = randomMinMax(-600,600)
>
> snowflake.y = randomMinMax(-1600,1600)
>
> snowflakes.push(snowflake);
>
> }
>
> //then updating in the enterframe works.
>
> for each (snowflake in snowflakes)
>
> {
>
> if (snowflake.y <= -1500)
>
> {
> snowflake.y = 1500;
>
> }
>
> snowflake.y -= 13
>
> }
>
> Apart from that bug you metion. if you have snowflake.y -= 13 before the
> check they don't move :o

Reply via email to