I’m playing with 3d external models loaded from different formats(.dae,.3ds) over the canvas. For each model iam creating seperate view and scene. I can enable listener for individual objectcontainer of 3d models.
My question is:
1. How to figure out whether the two 3d models are overlapped. Any way to listen these type of events.
2. Always the initially loaded models are going behind the subsequent loaded models. Anyway to change this behavior.
Your comments.suggestions are advisable.
//Here is the code for your reference.
protected function initEngine(moX:Number,moY:Number):void
{
view = new View3D();
scene = view.scene;
//Adjusting Hover3DCamera setting
camera = CameraSingleton.createSingletonCamera();
camera.focus = 100;
camera.distance = 250;
camera.yfactor = 1;
camera.minTiltAngle = -90;
camera.maxTiltAngle = 20;
camera.panAngle = 45;
camera.tiltAngle = 20;
camera.hover(true);
view.camera = camera;
view.renderer = new BasicRenderer();
addChild(view);
view.x = moX;
view.y = moY;
view.addSourceURL(“srcview/index.html”);
}