Multiple Cameras in Away3D 3.6

Software: Away3D 3.x

FrankEnd, Newbie
Posted: 18 June 2013 10:33 AM   Total Posts: 9

Hello!

Can someone tell me if its possible to have a scene with 2 cameras rendering simultaneously in v3.6?

It’s difficult to describe what I’m trying to acheive, but a good example would be if you were building a driving game.

You’d want 1 camera in the car looking through the front windscreen, and then a second masked camera providing a render into the rear view mirror.

I tried adding the same scene to 2 views but I get some sort of infinitely loop in the clear() function of SpriteSession - however, it could just be that my scene needs some adjustment.

Just wondering if anyone knows if this is even possible before I waste all day trying to make it happen!!!

Thanks.

   

FrankEnd, Newbie
Posted: 18 June 2013 12:58 PM   Total Posts: 9   [ # 1 ]

Just to answer my own question, this is possible, although the performance is a bit ropey.

The attached swf has a scene of the moon orbiting the earth, and a “telescope lense” of the same scene from the other side of the planet. There is a circular mask the same size as the lense applied to the secondary View3D…

(earth sphere is 16x16 segs, moon is 8x8)

 

File Attachments
multi-view.swf  (File Size: 555KB - Downloads: 241)
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X