1 Reply Latest reply: Mar 4, 2013 4:34 AM by dmeN RSS

    3D interaction in flash?

    rahimhaji Community Member

      Dear Friends,

       

      Greetings! i need to show the 3D rotation of an object with interaction, i mean, user has to rotate and see the object, same time if they click on a part it has to open that portion and give some explaination. is it possible to do with flash? pls help me.

       

      Already i used papervision 3d and created the rotation but i dont know how to get click and show the iternal parts. i used the following code:

       

      import org.papervision3d.cameras.Camera3D;
      import org.papervision3d.objects.parsers.Collada;
      import org.papervision3d.render.BasicRenderEngine;
      import org.papervision3d.scenes.Scene3D;
      import org.papervision3d.view.Viewport3D;

      var scene:Scene3D;
      var vp:Viewport3D;
      var cam:Camera3D;
      var bre:BasicRenderEngine;
      var collada:Collada;

      setupPV3D();
      addCollada();
      addEventListener(Event.ENTER_FRAME, loop);


      function setupPV3D():void {
      scene = new Scene3D();
      cam = new Camera3D();
      cam.z = -15000;
      vp = new Viewport3D();
      bre = new BasicRenderEngine();
      addChild(vp);
      }
      function addCollada():void {
      collada = new Collada("mycollada.dae");
      scene.addChild(collada);
      }
      function loop(e:Event):void {
      collada.rotationY += 2;

       

      bre.renderScene(scene, cam, vp);
      }

       

      pls advice me, whether ia using right technology flash, or should change. iam comfortable with AS3, so i used flash and did. pls help me to show the internal parts when user clicks. i need interaction.

       

      Please refer the link below i want to do samle like this in flash:

      http://www.bitmanagement.de/php-bin/ViewVrml.php?url=http%3A%2F%2Fwww.bitmanagement.de%2Fd emos%2Fairbus%2Fairbus.wrl&fullPage=1

       

      anybody can help me....

       

      Thanks in advance,

       

      syed