Shadow rendered wrongly

Software: Away3D 4.x

Rjgtav, Newbie
Posted: 13 August 2012 11:59 PM   Total Posts: 3

Hi.

Before, I had a simple model, for example a cube, with a png texture material with some transparent parts. This texture was totally rendered on the cube, as both scaleU and scaleV were 1. With this setup, the cube’s shadow was correctly rendered on the floor, showing the shape of the non transparent parts.

Later on, I decided to add a png spritesheet as the texture material, and scale the UVs correctly in order to show only 1 frame and use the UV offsets to show the correct frame at the correct time.

The problem I’m facing is that in the second setup, the shadow that is rendered to the floor is the whole spritesheet, and not the frame that is being shown.. Is this a bug or am I missing anything?

Please note that the model is correctly showing the correct frame, only the shadow is failing.

I also forgot to mention that I’m using a dynamic shadow, using a SoftShadowMapMethod on the floor’s material, with a directional light. I also tried with the TripleFilteredShadowMapMethod, but got the same results..

Best regards,
Rjgtav

   

Rjgtav, Newbie
Posted: 17 August 2012 11:07 AM   Total Posts: 3   [ # 1 ]

Can anyone please confirm if this is really a bug or if I’m doing anything wrong?

The project I’m working on is coming to an end, and it looks like i’ll have to use multiple materials so it doesn’t show the shadow of the other frames… But that will consume loads of resources…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X