20132177 / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

updateBitmap on MovieMaterial doesn't do anything #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a movieclip in the library with an empty textfield
2. create a MovieAssetMaterial and set it's linkage to your movieclip
3. apply it to a polygon in your scene
4. change the text in the textfield using something like 
myMaterial.movie.txt.text = "foo"
5. call updateBitmap
6. render the scene

What is the expected output? What do you see instead?
The text should say "foo" but it doesn't

What version of the product are you using? On what operating system?
Public Beta 2.0 - Great White December 3rd, 2008

Please provide any additional information below.
updateBitmap() isn't implemented on MovieMaterial or MovieAssetMaterial. Adding 
this to MovieMaterial should fix it...

        /**
        * Updates the BitmapData bitmap from the given texture.
        *
        * Draws the current MovieClip image onto bitmap.
        */
        override public function updateBitmap():void 
        {
            this.texture = this.texture;
        }

Original issue reported on code.google.com by misus...@gmail.com on 23 Dec 2008 at 12:47

GoogleCodeExporter commented 8 years ago
I;ve seen this too, and I was keeping and eye on it lately just to make sure it 
was
old legacy stuff.  drawBitmap() actually does the job that updateBitmap 
orignally was
supposed to handle ;)

Original comment by neori...@gmail.com on 29 Dec 2008 at 6:11

GoogleCodeExporter commented 8 years ago
Use drawBitmap() instead.  updateBitmap() is legacy and been removed

Original comment by neori...@gmail.com on 8 Mar 2009 at 7:09