Shadows

skbts

09-07-2008 12:18:55

How can I get correct, fine shadows of each trees?

Jules Robichaud Gagnon

10-07-2008 02:10:10

use texture shadow with alpha rejection in the material of the tree branches

bharling

10-07-2008 09:51:52

Can you post some detailed instructions on how you've got shadows working with PG? I've been trying to get this working for some time without much success. I get working shadows at the batch and entity levels, but the billboards don't cast and I cant work out why

thanks,

Jules Robichaud Gagnon

10-07-2008 11:49:28

I thought you had problems with the batches.

Billboards will not cast shadow because the shadows generated would not look right since they are camera oriented. Probably the "cast shadow" attribute is hardcoded to false because it should be this way. Impostors must be used far enough so you they are not within the shadow distance.

I think of two ways around this:
1. Bake the shadows on the ground :D
2. Try to figure out how to have a different mesh when the shadows are generated and hack through the ImpostorPage to store the whole mesh like the BatchPage but use it only to generate the shadow. (Please, do not do this) :cry: