Animated Background

Software: Away3D 4.x

Avatar
mrpinc, Sr. Member
Posted: 22 January 2015 09:31 PM   Total Posts: 119

I’m trying to make an animated background and I thought of the idea of using a Sprite3D class as the container for my background planes. 

This seems to work fine but I also need the plane to be in front of the camera at all time - not just facing it.

I thought I had my code set up correctly but if I move the camera quickly enough you can see the edges of the background planes.

_backgroundContainer.transform scene.camera.sceneTransform.clone();
_backgroundContainer.moveForward(4000); 

The above is getting called every frame right before view.render()

Any help would be greatly appreciated

   

Avatar
mrpinc, Sr. Member
Posted: 22 January 2015 09:51 PM   Total Posts: 119   [ # 1 ]

Turns out the camera was being moved somwhere between my updates.  So now I only adjust the background right before render.

   
   
‹‹ Help with animation

X

Away3D Forum

Member Login

Username

Password

Remember_me



X