overlaying views?

Software: Away3D 4.x

ello, Newbie
Posted: 09 January 2014 12:59 PM   Total Posts: 4

hi there,
is it possible to have two (or more) views for the same scene overlaying with blendmodes? i guess it is, but how can i achieve this??

thanks in advance,
ello

edit: just to explain what i am trying to do, here is a link to the current state of my app. by using different views (with different camera rotations) i hope to create that look without the flickering… currently the kaleidoscope is done using the motionblur filter…
http://www.earthcontrol.de/data/interactive/mandalino.html

   

ello, Newbie
Posted: 09 January 2014 04:46 PM   Total Posts: 4   [ # 1 ]

hm, after hours of testing and searching i am not so sure if it is possible to blend one view onto another..

// init view1

camera1 = new Camera3D();
view1 = new View3D();
view1.backgroundColor 0x000000;
view1.scene scene;
view1.camera camera1;
camera1.= -500;
camera1.lens = new PerspectiveLens(150);
camera1.lens.near 1;
this.addChild(view1);

// init view2
camera2 = new Camera3D();
view2 = new View3D();
view2.width stage.width 2;
view2.backgroundColor 0x000000;
view2.scene scene;
view2.camera camera2;
camera2.= -500;
camera2.lens = new PerspectiveLens(150);
camera2.lens.near 1;
this.addChild(view2);
view2.layeredView true;
view2.blendMode BlendMode.ADD

any ideas ??

   

Avatar
theMightyAtom, Sr. Member
Posted: 10 January 2014 08:17 AM   Total Posts: 669   [ # 2 ]

You can have multiple Away3d scenes in the same window/Stage3D instance.
These examples include a way to do this. I am not sure about the blendModes, but hopefully should be a question of setting them on the materials.

https://github.com/away3d/integration-examples-fp11

(see the example Simple_Away3D_Layers_AutoRender.as for example)


Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X