I think there may currently be a bug using the same camera in two views.

If so, can you try creating a new camera for view2 and before render- copy
x,y,z rotation etc from the other camera?

Let me know if it works..

-Pete

On Sat, Jul 11, 2009 at 11:26 PM, ttv <[email protected]> wrote:

>
> Hi,
>
> I'm trying to setup 2 diferent views with the same camera. But I get
> runtime erros when I render.
>
> here is the code that sets the views
>
> // Create and set up the camera
> camera = new TargetCamera3D({zoom:4, focus:200, distance:400});
> camera.z=1000;
> camera.y=300;
> camera.x=4780;
> camera.target.x=camera.x;
>
> //create views 3D
> view= new View3D({camera:camera});
> view.clipping = new RectangleClipping({minX:-450, minY:-240, maxX:450,
> maxY:240});
> view_peoes= new View3D({camera:camera});
> view_peoes.clipping = new RectangleClipping({minX:-450, minY:-240,
> maxX:450, maxY:240});
>
> view.x = 450;
> view.y = 250;
> base_3D.addChild(view);
> view_peoes.x = 450;
> view_peoes.y = 250;
> base_3D.addChild(view_peoes);
> addChild( base_3D );
>
> after that I add a lot of loaded 3ds files to both scenes.
>
> I'm doing something wrong?
>
> thanks
>
> ttv
>
>
>


-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Reply via email to