3D interaction in flash?
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:
anybody can help me....
Thanks in advance,
syed
