SimpleShadow does not work? (beginner)

Software: Away3D 3.x

Erroll, Newbie
Posted: 27 August 2011 10:16 PM   Total Posts: 6

Hi,

i have a little question : how can i make the shadow work?

it does nothing on my screen : (i have imported import away3d.materials.utils.SimpleShadow; and i’ve got no error from flash cs4 ...)

private function initObjects():void{
    
    
//album
  
var bm BitmapFileMaterial = new BitmapFileMaterial("monSite.jpg");
   
cPlane = new Plane({material:bm,width:200,height:200,bothsides:true,z:0,ownCanvas:true});
   
cPlane.rotationX 90;
   
//cPlane.blendMode = BlendMode.MULTIPLY;
   
view.scene.addChild(cPlane);
  
addEventListener(Event.ENTER_FRAMEmouvementSurPlane);
  
  
//album shadow
  
var simpleshadow:SimpleShadow = new SimpleShadow(cPlane,0xFFFF00004100100); 
  
simpleshadow.apply(this.scene); 

if anyone knows, i would really appreciate !

Thanks a lot.

Paul

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X