> > That is how the rooms look like from above, l1 is a light source and > > the lines is walls that separate them from each other. My problem is > > that light from l1 will shine through the wall and illuminate the > > bottom room too. But that is not right, the light should be blocked by > > the wall and not shine through it. The same thing happens with > > shadows. > > > > How do solve this? Do I need to place the rooms in separate portals or > > something? Also, does anyone have some tips on how to make a light > > source that illuminates like a candle or a torch? Any advice is > > greatly appreciated. Thanks > > Check out modeling-shadow-1.py in the tutorial directory. You need to > shapify the world containing your walls using a shapifier that has its > shadow attribute set to 1.
Try adding a second wall behind the first in modeling-shadow-1.py and you will see that both the shadow and the light will go through the first wall and hit the second wall too. Realisticly, the light should stop at the first wall and the second wall shouldn't be lit at all. -- mvh Björn
