I want to use away3dlite (only)

I want to create a skybox with faces (I can't use skybox6)

so I am trying to build a skybox using plates:

private function setUpCube():void {

                        for (var i = 0; i < 6; i++) {
                                //faces[i] = new BitmapData(faceSize, faceSize);
                                planes[i] = new Plane(null,faceSize,faceSize);
                                planes[i].material = material;
                                planes[i].width = faceSize;
                                planes[i].height = faceSize;
                                planes[i].yUp = false;
                                planes[i].bothsides = true;
                                scene.addChild(planes[i]);
                        }

                        planes[0].z                                             
= faceSize/2;   // front
                        planes[1].x                                             
= -faceSize/2;  // left
                        planes[1].rotationY                             = -90;
                        planes[2].z                                             
= -faceSize/2;  // back
                        planes[2].rotationY                             = 180;
                        planes[3].x                                             
= faceSize/2;   // right
                        planes[3].rotationY                             = 90;
                        planes[4].y                                             
= -faceSize/2;  // top
                        planes[4].rotationX                             = 90;
                        planes[5].y                                             
= faceSize/2;   // down
                        planes[5].rotationX                             = -90;
                }

but, whatever I do I can't place the camera inside the cube, the
hoover camera or 3d camera looks like it were running around a cube
but not inside

Reply via email to