[Papervision3D] event on face cube

John Grden neoriley at gmail.com
Tue Sep 11 06:20:28 PDT 2007


Sorry, my bad, I see that you're using IMM on Front

I can't see from your code: are you using InteractiveScene3D as your scene?

On 9/11/07, Bertrand KEMPF <lijko at lijko.org> wrote:
>
> instead of InteractiveMovieMaterial ?
>
> John Grden a écrit :
> > if you would, can you try a Movie material or bitmap material and run
> > the same test for me?
> >
> > On 9/11/07, *Bertrand KEMPF* < lijko at lijko.org
> > <mailto:lijko at lijko.org>> wrote:
> >
> >     Hello, thanks for answer, so, but it doesn't work. And anyway, my
> >     order
> >     is to use each face of the cube, not the cube itself, for dispatch
> >     event. I already use interactiveSceneManager.
> >
> >     my constructor :
> >
> >
> >             public function IceCube() {
> >                 //container + scene
> >
> >                 _container = new InteractiveSprite();
> >                 addChild(_container);
> >                 _container.x = stage.stageWidth/2;
> >                 _container.y = stage.stageHeight/2;
> >                 _container.name = "_container";
> >
> >                 _scene = new InteractiveScene3D(_container);
> >                 _ism = _scene.interactiveSceneManager;
> >                 _ism.setInteractivityDefaults();
> >
> >                 //le clip
> >                  _mc = new Sprite();
> >                  _mc.name = "_mc";
> >                 _mc.graphics.beginFill( 0x663366, 50);
> >                 _mc.graphics.drawRect(0, 0, 200, 200);
> >                 _mc.graphics.endFill();
> >
> >                 //list of materials + cube
> >
> >                 _materialFront = new InteractiveMovieMaterial(_mc);
> >                 _materialFront.name = "materialFront";
> >                 _materialFront.updateBitmap();
> >
> >                 _ml = new MaterialsList();
> >                 _ml.addMaterial(_materialFront, 'front');
> >                 _ml.addMaterial(new InteractiveColorMaterial(0x00ff00,
> >     100),
> >     'left');
> >                 _ml.addMaterial(new InteractiveColorMaterial(0x0066ff,
> >     100),
> >     'right');
> >                 _ml.addMaterial(new InteractiveColorMaterial(0xff00ff,
> >     100),
> >     'bottom');
> >                 _ml.addMaterial(new InteractiveColorMaterial(0x00ffff,
> >     100),
> >     'back');
> >                 _ml.addMaterial(new InteractiveColorMaterial(0xffff00,
> >     100),
> >     'top');
> >
> >                 _cube3D = new Cube(_ml, 500, 500, 500, 10, 10, 10);
> >
> >                 _scene.addChild(_cube3D);
> >
> >                 //camera
> >                 _camera = new Camera3D();
> >
> >                 //render
> >                 _scene.renderCamera(_camera);
> >             }
> >
> >     John Grden a écrit :
> >     > ahh, the problem is, InteractiveColorMaterial won't be able to
> >     > dispatchEvents - materials for that matter don't dispatchEvents.
> >     >
> >     > addyour listener to the InteractiveSceneManager:
> >     >
> >     > var IS3D:InteractiveScene3D = new InteractiveScene3D(container);
> >     >
> >     > IS3D.addEventListener(InteractiveScene3DEvent.CLICK, handleClick);
> >     >
> >     > Let me know if that helps,
> >     >
> >     > John
> >     >
> >     > On 9/11/07, *Bertrand KEMPF* < lijko at lijko.org
> >     <mailto:lijko at lijko.org>
> >     > <mailto:lijko at lijko.org <mailto:lijko at lijko.org>>> wrote:
> >     >
> >     >     Hi,
> >     >
> >     >     thanks a lot for your answer, i apologize for my english,
> >     but if i
> >     >     follow you, i'm just to take time for wait?
> >     >
> >     >     thanks anyway
> >     >
> >     >     ayo at binitie.com <mailto:ayo at binitie.com>
> >     <mailto:ayo at binitie.com <mailto:ayo at binitie.com>> a écrit :
> >     >     > Hi
> >     >     >  I'll give this a and respond. It will not be immediate if
> >     you
> >     >     do not mind
> >     >     > [a /]
> >     >     > Original Message:
> >     >     > -----------------
> >     >     > From: lijko lijko at lijko.org <mailto:lijko at lijko.org>
> >     <mailto: lijko at lijko.org <mailto:lijko at lijko.org>>
> >     >     > Date: Tue, 11 Sep 2007 01:56:36 -0700 (PDT)
> >     >     > To: papervision3D at osflash.org
> >     <mailto:papervision3D at osflash.org> <mailto:
> >     papervision3D at osflash.org <mailto:papervision3D at osflash.org>>
> >     >     > Subject: [Papervision3D] event on face cube
> >     >     >
> >     >     >
> >     >     >
> >     >     > Hello,
> >     >     >
> >     >     > i've already post a  topic about cube's face
> >     interactivity.  So,
> >     >     nobody
> >     >     > answers ;-)
> >     >     >
> >     >     > i post my code, and really, i don't see where's the problem
> >     >     >
> >     >     >
> >     >     >                       //le clip
> >     >     >                       _mc = new Sprite();
> >     >     >                       _mc.name = "_mc";
> >     >     >                       _mc.graphics.beginFill( 0x663366, 50);
> >     >     >                       _mc.graphics.drawRect(0, 0, 200, 200);
> >     >     >                       _mc.graphics.endFill();
> >     >     >
> >     >     >                       //le cube
> >     >     >
> >     >     >                       _materialFront = new
> >     >     InteractiveMovieMaterial(_mc);
> >     >     >                       _materialFront.name = "materialFront";
> >     >     >
> >     >     >                       _ml = new MaterialsList();
> >     >     >                       _ml.addMaterial(_materialFront,
> >     'front');
> >     >     >                       _ml.addMaterial(new
> >     >     InteractiveColorMaterial(0x00ff00, 100), 'left');
> >     >     >                       _ml.addMaterial(new
> >     >     InteractiveColorMaterial(0x0066ff, 100), 'right');
> >     >     >                       _ml.addMaterial(new
> >     >     InteractiveColorMaterial(0xff00ff, 100), 'bottom');
> >     >     >                       _ml.addMaterial(new
> >     >     InteractiveColorMaterial(0x00ffff, 100), 'back');
> >     >     >                       _ml.addMaterial(new
> >     >     InteractiveColorMaterial(0xffff00, 100), 'top');
> >     >     >
> >     >     >                       _cube3D = new Cube(_ml, CUBE_SIZE,
> >     >     CUBE_SIZE, CUBE_SIZE, 10, 10, 10);
> >     >     >
> >     >     >
> >     >     >
> >     >
> >     _cube3D.materials.getMaterialByName("front").addEventListener(
> MouseEvent.MOU
> >     >     > SE_OVER,
> >     >     > handleMainOver);
> >     >     >
> >     >     >                       _scene.addChild(_cube3D);
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     > thanks a lot if somebody could say what is wrong......
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >
> >     >     _______________________________________________
> >     >     Papervision3D mailing list
> >     >     Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> >     <mailto:Papervision3D at osflash.org <mailto:Papervision3D at osflash.org
> >>
> >     >
> >     http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >     <http://osflash.org/mailman/listinfo/papervision3d_osflash.org>
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     > [  JPG  ]
> >     >
> >
> ------------------------------------------------------------------------
> >     >
> >     > _______________________________________________
> >     > Papervision3D mailing list
> >     > Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> >     > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >     <http://osflash.org/mailman/listinfo/papervision3d_osflash.org>
> >     >
> >
> >     _______________________________________________
> >     Papervision3D mailing list
> >     Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> >     http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
> >
> >
> > --
> > [  JPG  ]
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



-- 
[  JPG  ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070911/39ec8e55/attachment-0001.html 


More information about the Papervision3D mailing list