views:

21

answers:

0

Hi All,

I have created a Flex application for a AR Campaign.

I am using an external SWF that contain an animation included a particles emitter as my movieMaterial for my PV3D plane.

I have created a CustomFLAR class, so my project is more organized.

Particles Emitter: http://www.patrickjansen.net/stockflash/particleemitter/Readme.htm#parameters 3DEngine: PV3D AR: FLARtoolkit

Sample of CustomFLAR.as:

private var mat:MovieMaterial;

    private function init3D(e:Event):void
    {
        scene = new Scene3D();
        camera = new FLARCamera3D(fm.cameraParams);
        camera.z = -220;
        view = new Viewport3D(640, 360, false, true);
        view.buttonMode = true;

        lre = new LazyRenderEngine(scene,camera,view);
        lre.renderScene(scene,camera,view);

        mat = new MovieMaterial(this.mc,true,true);
        mat.interactive = true;

        p = new Plane(mat, 640, 360, 2, 2);

        p.scaleY = -1;
        p.rotationZ = 90;
        p.visible = false;

        con = new DisplayObject3D();

        con.addChild(p);
        scene.addChild(con);
        this.videoDisplay.addChild(view);
        this.videoDisplay.addEventListener(Event.ENTER_FRAME, loop);
    }

The problem is that the animation is running perfectly until it reach the particles emitter.

I can see the Movieclip that hold the Particles appearing but not the actual PArticles explosion.

Hope those informations above are useful to understand the problem.

J