Speediest shadow on Android devices

Software: Away3D 4.x

Rayen123, Member
Posted: 11 May 2013 09:32 PM   Total Posts: 70

Hi.
Is in away3d shadow which is running at 60fps on andoird devide ? In novadays games have shadows (and run on my htc3D evo smooth 60pfs), but these in away3d are dropping fps from 60 to 20fps :/
I tried HardShadowMapMethod,SoftShadowMapMethod, NearShadowMapMethod…

(I have baked shadow on texture of every model - baked in Blender), but I need shadow in my scene, can be a static, or baked to terrain (I have terrain with trees and I want to have shadow from this trees))

Thanks

   

Avatar
loth, Sr. Member
Posted: 19 May 2013 09:27 AM   Total Posts: 236   [ # 1 ]

hi
For android game i advice you not use light.
you can use a black alpha bitmap and add on top of your terrain texture.
can be dynamique if low size

BitmapTexture(TextureMaterial(terrainMaterial).texture).bitmapData = newBitmap;
  BitmapTexture(TextureMaterial(terrainMaterial).texture).invalidateContent();

   

Rayen123, Member
Posted: 17 June 2013 11:18 PM   Total Posts: 70   [ # 2 ]

Hi,
have you any working source code of this ?

Is possible bake shadow to texture in away3d?

Thanks

   

Avatar
loth, Sr. Member
Posted: 17 June 2013 11:33 PM   Total Posts: 236   [ # 3 ]

yep i note that
now i use one directional light with GradientDiffuseMethod
i’m near full speed on android and it’s look great light can move
but shadow take more resource maybe you can low quality of shadowmap to 512

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X