Transparency and shadows....

blackhound70

18-09-2006 19:03:11

Hello,

We have this tree..

http://www.wendigostudios.com/images/di ... Shadow.jpg

It looks pretty good.

But if I turn on shadows (stendil additive) it turns like that :

http://www.wendigostudios.com/images/di ... Shadow.jpg



:oops: What is the best way to handle shadows with that kind of object?

Thanks

Lioric

19-09-2006 15:49:20

There are some issues when using transparent materials and stencil shadows in Ogre

Is the 'Transparency cast shadows' option enabled in the material?

In the main Ogre forum there are several posts about transparency shadows, they might give you a hint about your issue

Do you need the shadows to be dynamic? if not then its highly recommended to precalculate them in a shadows texture, (bake the shadows to a terrain texture that will be blended with the terrain material in a new texture unit)

blackhound70

04-10-2006 03:48:55

How can I bake it if it does not display the right way?

Were can I find a tutorial about baking?

Thanks =)