I've just noticed I had the same problem again when applying another MovieMaterial to an plane. It seems like if I apply a MovieMaterial with the autoUpdate = false, it just won't update on the first frame it doesn't matter how many times I call the Update Function manually :P
Felipe. On 9 jun, 20:40, Peter Kapelyan <[email protected]> wrote: > Did you render() after that, or are rendering only when you click W also? > > -Pete > > > > On Tue, Jun 9, 2009 at 6:04 PM, FelipeSQ <[email protected]> wrote: > > > Hi, > > > I've just my movieMaterial autoUpdate = false, so I can save the > > processor when the Application is Iddle. The thing is, as soon as I > > load my MovieMaterial, I set a its movie as a Sprite full of other > > Sprites apllyed to it. > > > Code: > > > var textureContainer:Sprite = new Sprite(); > > this.movieMat = new MovieMaterial(textureContainer, > > {transparent:true}); > > > this.movieMat.clipRect = new Rectangle(0, 0, textureContainer.width, > > textureContainer.height); > > > textureContainer.addChild(this.bitmapAlvo); > > textureContainer.addChild(this.bitmapAlvoLat); > > textureContainer.addChild(this.bitmapAlvoLong); > > > textureContainer.addChild(this.bitmapLatitude); > > textureContainer.addChild(this.bitmapLongitude); > > > this.movieMat.update(); > > > this.globo = new Sphere({material:this.movieMat, radius:raio, > > segmentsW:30, segmentsH:15}); > > > As soon as I finish this, I update my movieMaterial and set it as my > > Sphere material. > > The thing is, my Sphere isn't shown on my first frame. But, I added an > > Keyboard Listener and when I press 'w' it call the movieMaterial.update > > () method again and the Sphere is shown. > > > I presume my problem is because the MovieMaterial isn't ready yet when > > I call the update(0 method for the first time. And I was wondering how > > could I add a Listener to wait for that to happen?! > > > Could someone try ang give me a hand with that?! :D > > > Tranks, > > Felipe > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM
