pixelate shadows

Software: Away3D 4.x

Avatar
TrueSign, Member
Posted: 27 November 2012 03:36 PM   Total Posts: 57

Hi,
I tried to use few different shadows options and it’s always looks pixelated:
http://truesign.ie/projects/roulette/index.html
I tried: SoftShadowMapMethod, HardShadowMapMethod and FilteredShadowMapMethod and it’s always in bad quality. What properties should I change to get higher shadow quality?
Is mesh size matters here? Maybe some camera option I need to change? Or ShadowMapMethod have some properties that I could change. I can’t find it anywhere.

   

Avatar
TrueSign, Member
Posted: 27 November 2012 07:04 PM   Total Posts: 57   [ # 1 ]

I solve it temporary. I have changed camera.lens.far to 450 and it’s much better now. But the problem is I can’t see anything what is outside range of view.

   

cyberix3d, Jr. Member
Posted: 29 November 2012 10:44 AM   Total Posts: 34   [ # 2 ]

Use:
light.shadowMapper = new NearDirectionalShadowMapper(0.1);

materia.shadowMapMethod = new NearShadowMapMethod(new FilteredShadowMapMethod(light));

or

materia.shadowMapMethod = new NearShadowMapMethod(new TripleFilteredShadowMapMethod(light));

   

Avatar
TrueSign, Member
Posted: 29 November 2012 11:19 AM   Total Posts: 57   [ # 3 ]

Thanks Guya,

light.shadowMapper make shadows much better but shodows are in a weird place now.

material.shadowMapMethod gives me error like this:
Error: Access of possibly undefined property shadowMapMethod through a reference with static type away3d.materials:TextureMaterial.

   

cyberix3d, Jr. Member
Posted: 29 November 2012 11:28 AM   Total Posts: 34   [ # 4 ]

My mistake:
Use:

material.shadowMethod = new NearShadowMapMethod(new FilteredShadowMapMethod(light));

   

Avatar
TrueSign, Member
Posted: 29 November 2012 11:42 AM   Total Posts: 57   [ # 5 ]

It’s working great now. Thanks a lot!

   

cyberix3d, Jr. Member
Posted: 29 November 2012 12:02 PM   Total Posts: 34   [ # 6 ]

You’re welcome smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X