[away 3D 3.6] How to use Lensflare?

Software: Away3D 3.x

/\/\/\, Newbie
Posted: 18 March 2013 09:18 AM   Total Posts: 15

Hi,

i cannot add the lensflare to the scene, so i tried adding it to the stage, but did not see anything. What am i doing wrong here?

var lfSource:Plane = new Plane();
   
lfSource.100;
   
lfSource.100;
   
_scene.addChild(lfSource);
   var 
spr:Sprite = new Sprite();
   
spr.graphics.beginFill(0xff0000.4);
   
spr.graphics.drawCircle(0010);
   
_lensFlare = new LensFlare(lfSource_camera);
   
_lensFlare.addFlareAsset(spr);
   
_lensFlare.addFlareAsset(spr);
   
_lensFlare.addFlareAsset(spr);
   
   global.
stage.addChild(_lensFlare); 
   

   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X