Hi Fabrice,
Thanks for the prompt and detailed response.
I suppose I should have been more detailed with my problem. The model
I'm using is a MD2, and in my Away3D scene I have to scale my model
down to 0.005 to see the entire model.
Here's my code:
scene=new Scene3D();
camera=new Camera3D({clipping: new FrustumClipping()});
view=new View3D({scene: scene, camera: camera});
addChild(view);
md2model=Md2.parse(Cast.bytearray(new Model()), {scale: .005});
modelTexture=new WhiteShadingBitmapMaterial(Cast.bitmap(Texture));
md2model.material=modelTexture;
md2model.x=0;
md2model.y=0;
md2model.z=0;
camera.lookAt(md2model.position);
What is strange to me is that in the preFab scene the model's object3d
scale says 1 and the the distance is 13069. If I scale my model in my
Away3d scene to 1, it's scaled up so big i can only see part of it.
Should I be using a HoverCam?
I would think I need to have the same scene, camera and model scale
settings in both my away3d scene and prefab scene, if I want to apply
the various values for lights etc that are in my preFab scene to my
Away3D scene. When I rescale my model in preFab, the model is rescaled
but the number snaps to 1. Why does it snap to 1? Sorry if these are
noob questions.
Thanks for your help. I've only be using preFab for a couple hrs and
it's pretty awesome!
Sunil