Question

Using Away3D, I've successfully displayed a cube. So far, if I want to display a texture on each side of the cube independently (different textures on each side), I'd have to put them all in one texture, kind of like a sprite map. Is there a way I can do this so I can apply a different bitmap to each side of the cube? Here's my code so far:

[Embed(source = "texture.png")] private static var _texture:Class;
var texture:Bitmap = new _texture();
cube = new Cube(new BitmapMaterial(texture.bitmapData),240,240,240);
cube.material.smooth = true;
cube.material.mipmap = (texture.width == texture.height);
Was it helpful?

Solution

Try searching for SkyBox6 or cubic environment mapping.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top