SkyBox rotation

Software: Away3D 4.x

Svist, Newbie
Posted: 08 April 2015 02:15 PM   Total Posts: 14

Hello!

I have a skybox which I want to rotate by an axis.
But if I set a value of rotation the skybox doesn’t rotate.
How to rotate the skybox by an axis?

I try:

var texture:BitmapCubeTexture = new BitmapCubeTexture(pxnxpynypznz);
var 
skybox:SkyBox = new SkyBox(texture);

skybox.rotationY 10// doesn't work 

Thanks.

   

GrokDD, Newbie
Posted: 08 April 2015 03:48 PM   Total Posts: 28   [ # 1 ]

If that doesn’t work, you can try:

1) rotating the camera on its Y axis.

2) If you have other elements that need to stay in place with the camera, place everything in an ObjectContainer3D (including camera) and spin that.

Hopefully someone else has a better answer for you.

Here’s tut on typescript skybox
http://blog.grokdd.com/tutorial-away3d-typescript-skybox/

   

Svist, Newbie
Posted: 09 April 2015 11:18 AM   Total Posts: 14   [ # 2 ]

Thank you GrokDD.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X