I created an oct tree scene node and some dynamic lights and made my model cast a shadow. The dynamic light shines through the walls of the map howerver. How can i fix this? and can an oct tree scene node cast its own shadows?
thanks,
adam
OctTreeSceneNode and dynamic lights
Octree cannot cast shadows and even if it could it would be incredibly slow :p I think you need the doom 3 engine for something like that...
I'm guessing your light isnt illuminating the level mesh because you're using a level mesh with lightmap textures? (bsp)
I'm guessing your light isnt illuminating the level mesh because you're using a level mesh with lightmap textures? (bsp)
.: http://www.mercior.com :.
This's just a guess (running home to check it out in a moment ) but the problem might be connectod with the material type used. Maybe try using EMT_LIGHTMAP_LIGHTING which enables you to mix lightmaps and vertex (ordinary) lights. Default mat. type for oct. tree enities is (presumably) EMT_LIGHTMAP which doesn't seem to care for vertex lights. Curious if i'm right