[Papervision3D] GW rev.759: BitmapFileMaterial -> transformUV() material.bitmap not found!

Emil Korngold emilkorngold at hotmail.com
Tue Oct 21 03:02:21 PDT 2008


Hi team,

After updating to GW rev.759, I found BitmapFileMaterial was giving me the
error:
transformUV() material.bitmap not found!

After going through BitmapFileMaterial.as, I found that set texture calls
createBitmapFromURL.
createBitmapFromURL currently appears to return null before the bitmap is
loaded, which I think causes the error of the bitmap not being found.

I'm not sure if this is a bug. I got rid of the errors by assigning a
temporary bitmap to the material in case createBitmapFromURL returns null:

override public function set texture( asset:Object ):void
{
	if( asset is String == false )
	{
		PaperLogger.error("BitmapFileMaterial.texture requires a String for the
texture");
		return;
	}
	
	bitmap = createBitmapFromURL( String(asset) );
	
	if(bitmap == null) {
		
		bitmap = new BitmapData(100, 100, true, 0)
	}
	
	_texture = asset;
}
-- 
View this message in context: http://www.nabble.com/GW-rev.759%3A-BitmapFileMaterial--%3E-transformUV%28%29-material.bitmap-not-found%21-tp20086181p20086181.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list