I've been studying the Advanced_DofAtom.as and still don't quite grasp what is happening.
I do grasp the relationships: private var skyboxMaterial:TransformBitmapMaterial; private var skyboxBitmap:BitmapData; private var skyboxColorTransform:ColorTransform = new ColorTransform(1, 1, 1, 0.5); skyboxBitmap = view.getBitmapData().clone(); skyboxMaterial = new TransformBitmapMaterial(Cast.bitmap(skyboxBitmap)); skyboxMaterial.scaleX = 0.1; skyboxMaterial.scaleY = 0.1; // 0.1 skyboxMaterial.repeat = true; // true I grasp that the BitmapSession provides the functionality to access the view's bitmapdata I grasp the create of the material, scale and repeat skybox = new Skybox(skyboxMaterial, skyboxMaterial, skyboxMaterial, skyboxMaterial, skyboxMaterial, skyboxMaterial); scene.addChild(skybox); I grasp that the bitmap is used as a material source for the skybox, which is then added to the view's scene. //copy view bitmap to skybox skyboxBitmap.fillRect(skyboxBitmap.rect, 0); skyboxBitmap.draw(view.getBitmapData(), null, skyboxColorTransform, BlendMode.DIFFERENCE); skyboxMaterial.bitmap = skyboxBitmap; camera.hover(); What I don't quite grasp is the need to recapture the data (?) Can I change the clipping and set that back? What I'm trying to do is capture (wording?) an area of the scene, slice it up, draw the slices onto primitives and tween the primitive in different ways. But I need to probably set the clipping to the area of interest and then set it back(?) Your assistance would be appreciated.
