Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I think Flash is fine, but Papervision is a poor choice for 3D. It's not even been developed in years... go to away3d.com, that's probably the leader of the pack right now for 3d engines in Flash. Here's a demo, with source, that seems appropriate to what you're looking for: http://clockmaker.jp/blog-en/2013/02/away3d_earth_and_moon/
Find more inspiration, events, and resources on the new Adobe Community
Explore Now