Change View3D background image dynamically

Software: Away3D 4.x

Hector, Sr. Member
Posted: 24 April 2013 12:40 PM   Total Posts: 137

Hi all,

I’m working on a project where the user can load a background image. He has to move, resize, skew, zoom that image in the background to match the objects in the 3D scene as much as possible.

- Is it possible to chage the view3D’s background image dynamically?

- I’m new to Flash11, but I guess I can’t place a 2D sprite behind the Stage3D layer, right?

Any advice on what’s the best method?

   

SuperSam, Sr. Member
Posted: 24 April 2013 01:21 PM   Total Posts: 102   [ # 1 ]

Hi !

- I didn’t try that but why wouldn’t it ? View3D::background takes a Texture2DBase, so it seems possible to alter background at runtime.

- You can’t using the regular display list that we used before Stage3D.
But you can if you either use an Away3D plane that would face the camera and be positioned so that it takes all screen yet stays behind other objects, or set up a Starling sprite that would render below Away3D. I think away3d.com has a tutorial to help using Starling and Away together.

   

Hector, Sr. Member
Posted: 24 April 2013 01:55 PM   Total Posts: 137   [ # 2 ]

Thanks, I will have a look at those possibilities too smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X