how to make mesh smooth

Software: Away3D 4.x

JonSu, Newbie
Posted: 14 March 2014 07:43 AM   Total Posts: 1

I test away3d 4.1.6, i wish to create a sky ball use VideoTexture. My question is : when Mesh mapped, the skyBall is not clear, like jpg i upload.
how to make it clear.

the code is below:


_view = new View3D();
  _view.antiAlias=16;
 
  addChild(_view);
  _camera = _view.camera;
  _camera.rotationZ=-180;
  _camera.scale(-1);
 
  var vTexture:VideoTexture=new VideoTexture(“assets/hdv.mov”, 2048, 1024,true,true);  //I’m sure mov is a hdv.
 
  var mcMat:TextureMaterial = new TextureMaterial(vTexture,true);
  mcMat.bothSides=true;
  mcMat.mipmap=true;
  mcMat.smooth=true;
 
  var ball:SphereGeometry=new SphereGeometry(800,120,120);
 
  skyBall = new Mesh(ball, mcMat);
 

  MeshHelper.invertFaces(skyBall);

=============
i have edit VideoTexture class

public function update():void
{
  //bitmapData.draw(_player.container, m, null, null, _clippingRect);
    bitmapData.draw(_player.container, m, null, null, _clippingRect,true);
}

========
plus:

I have view instanceVideoTexture.bitmapData . It’s very very clear.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X