nargil
09-04-2009 01:18:13
I'm implementing various shadow techniques into my project.
- Uniform depth texture seems to work fine
- PSSM depth texture, which is working for my directional lights causes errors when caelum is enabled:
* some parts of the world constantly receive shadows if CAELUM_COMPONENT_CLOUDS is active.
* the shadows seem to react to camera movement in a weird way - I have to look exactly at the sun position to get a valid shadow map if CAELUM_COMPONENT_CLOUDS is active. (this seems to also occur with LiSPSM)
* only the first PSSM plane is working (even if I just leave the sun component). The others are being shadowed dark.
Tomorrow i'll try make mEntity public in the cloud layer to set:
I have no clue, why only the first PSSM plane is working with caelums sun, although all of them are working fine with any other directional light. Voodoo ? Has anyone gotten PSSM working with caelum ?
- Uniform depth texture seems to work fine
- PSSM depth texture, which is working for my directional lights causes errors when caelum is enabled:
* some parts of the world constantly receive shadows if CAELUM_COMPONENT_CLOUDS is active.
* the shadows seem to react to camera movement in a weird way - I have to look exactly at the sun position to get a valid shadow map if CAELUM_COMPONENT_CLOUDS is active. (this seems to also occur with LiSPSM)
* only the first PSSM plane is working (even if I just leave the sun component). The others are being shadowed dark.
Tomorrow i'll try make mEntity public in the cloud layer to set:
mCaelumSystem->getCloudSystem()->getLayer(0)->mEntity->setCastShadows(false);
and see if that changes the clouds problem.I have no clue, why only the first PSSM plane is working with caelums sun, although all of them are working fine with any other directional light. Voodoo ? Has anyone gotten PSSM working with caelum ?