bitmapmaterial.updateTexture() best practice?

Software: Away3D 4.x

markval, Newbie
Posted: 08 November 2011 01:04 AM   Total Posts: 7

Looks like a plane with a bitmap already takes a lot of juice from the GPU.

Then when we had updateTexture() performance just drop drasticly.

Anyone have advice or best practice?
http://openmess.com/

private var _rect Rectangle _rect = new Rectangle(0099);
  private function 
onMouseMove(event MouseEvent3D) : void
  {
    _rect
.event.uv.bitmapWidth 4;
    
_rect.event.uv.bitmapWidth 4;
    
_mat.bitmapData.fillRect(_rect0x00fff0);
    
_mat.updateTexture();
  
}
  
private function handleEnterFrame(ev Event) : void
  {
   _view
.render();
  
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X