How can I generate a smooth soft shadow, e.g from a cube?

Software: Away3D 4.x

edgar, Member
Posted: 31 December 2011 07:10 AM   Total Posts: 52

Hi,

how can a generate a soft and smooth shadow from an object3d with a light source?

Thanks
Edgar

   

maricate, Jr. Member
Posted: 16 May 2013 05:46 PM   Total Posts: 36   [ # 1 ]

Same question here… raspberry

   

Avatar
dottob, Jr. Member
Posted: 18 May 2013 03:15 AM   Total Posts: 49   [ # 2 ]

Maybe this will be help(4.x)

......
import away3d.materials.methods.SoftShadowMapMethod;
......
var mainLight:DirectionalLight= new DirectionalLight();
mainLight.castsShadows = true;
mainLight.shadowMapper.depthMapSize = 1024;
......
var pp:TextureMaterial=new TextureMaterial(Cast.bitmapTexture(floor))
pp.lightPicker = new StaticLightPicker([mainLight]);
pp.shadowMethod = new SoftShadowMapMethod(mainLight,50)
......
_plane = new Mesh(new PlaneGeometry(1000, 700), pp);
......
view.scene.addChild(_plane);
......

Then _plane can receive shadows,set pp to a new cube,add the cube,see result…

   

Avatar
dottob, Jr. Member
Posted: 18 May 2013 03:29 AM   Total Posts: 49   [ # 3 ]

I like HardShadowMapMethod more than SoftShadowMapMethod smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X