BSP dropping shadows on itself

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Anderson
Posts: 5
Joined: Wed Mar 28, 2012 9:30 pm

BSP dropping shadows on itself

Post by Anderson »

Hi,

I'm trying to add ILightSceneNode to a Quake 3 BSP octree node using shadow volume nodes. It accepts shadows from Irrlicht nodes correctly (i.e. box node), but I'd like to somehow make the BSP mesh to also drop shadows on itself.

Is this possible? I tried to add shadow volume node to map node, but the shadows are not drawn.

I know q3map2 + Irrlicht can compile lightmaps for BSP, but I want to handle lights by my engine.

Thanks in advance!
Anderson
Posts: 5
Joined: Wed Mar 28, 2012 9:30 pm

Re: BSP dropping shadows on itself

Post by Anderson »

Hey,

Seems like I figured it out. I just had to increase light radius a bit, and it works!

I'm using ELT_SPOT light that is pointed down (direction 90;0;0) with InnerCone=0 and OuterCone=90.

I also had to compile BSP without "-light" (using just single "-meta").
Post Reply