3D background away3d

Software: Away3D 4.x

AlexGo, Newbie
Posted: 06 April 2013 12:15 PM   Total Posts: 2

Hi,

I use away3d to create a game and I have a problem.
I want to create the a top , left, right, bottom as a room but with custom images.
I want to create something like a 3D background.
The problem is that I have no idea how to do that.

Thanks.

   

Avatar
TrueSign, Member
Posted: 07 April 2013 10:31 AM   Total Posts: 57   [ # 1 ]

Use skybox:

import 6 images for each side and than:

var skyBoxCubeMap:BitmapCubeTexture = new BitmapCubeTexture(new EnvPosX().bitmapData, new EnvNegX().bitmapData, new EnvPosY().bitmapData, new EnvPosY().bitmapData, new EnvPosZ().bitmapData, new EnvNegZ().bitmapData);
 
var skyBox:SkyBox = new SkyBox(skyBoxCubeMap);
_view.scene.addChild(skyBox);

http://away3d.com/tutorials/Using_A_Skybox

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X