Smoothing embedded images in Away3D 3.6.0

Software: Away3D 3.x

0L4F, Newbie
Posted: 22 March 2012 12:07 PM   Total Posts: 15

Hi all. I can’t seem to figure this one out: when I embed an image, and assign it to a material like this:

[Embed(source="assets/_DSC3354.png")]
public var Model:Class;

bitmapAsset = new Model();
material = new BitmapMaterial(bitmapAsset.bitmapData); 


...how could I set the bitmap’s smoothing property to ‘true’?

Thanks in advance smile

   

Vice, Member
Posted: 22 March 2012 12:12 PM   Total Posts: 58   [ # 1 ]

material.smooth = true;

   

0L4F, Newbie
Posted: 22 March 2012 12:24 PM   Total Posts: 15   [ # 2 ]

Awesome, thanks Vice! smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X