I don't understand how these events work... what happens when an image loads really fast surely this won't work?

Why is the materials BitmapData accessed by bitmap rather than bitmapData? would setting up an array of BitmapData's with a colorMatrixFilter be the best way to adjust the brightness ( or similar + blur... + purpleness ) to replicate a feeling of distance and swap out based on Z be a good approach, I have swapped out bitmaps way back in pv3d as2 and also used it for rollover buttons states, although quite like to apply a heightmap in these cases... not yet researched that yet in away planes.

How many levels are people using with this swap out approach?

With haXe I was thinking of extending BitmapFileMaterial to BitmapFileMaterialPiecewiseBitmapData

so you could define

bitmapFileMaterialPiecewiseBitmapData.map

or define the array directly

bitmapFileMaterialPiecewiseBitmapData .BitmapDatas ( createArrayBitmapData ( bitmapFileMaterialPiecewiseBitmapData.bitmap ) );

and use it something like

bitmapFileMaterialPiecewiseBitmapData.setEasyZ( camera, plane, min, max );

or

bitmapFileMaterialPiecewiseBitmapData.z = 3;

although in someways its easier to do it directly on the Plane rather than Material as I am more likely to be working with them in my render loop. Anyway thinking it might be worth having something in the main away3dlite branch if there is not some approach to this already, like a ListBitmapMaterial.


Cheers

;j

On 28 Sep 2009, at 10:17, claudiul25 wrote:


private function loadImage():void
                {
                         var mat:BitmapFileMaterial = new 
BitmapFileMaterial(urlPath);
                         mat.addEventListener(MaterialEvent.LOAD_SUCCESS, 
showPicture)
                         this.material = mat
                }

worked, thanks again!;)

Reply via email to