Dynamic lighting

Blitz3D Forums/Blitz3D Beginners Area/Dynamic lighting

slenkar(Posted 2003) [#1]
If I used a lightmapping application could I simulate a house where the lights can be turned on and off?

Or does this have to be done in code?


eBusiness(Posted 2003) [#2]
Think you should make two versions of each room, one with light on, and one with light off, then swap visibility. Don't think you can do it much smarter, but I'm not shure.


slenkar(Posted 2003) [#3]
That sounds good thanks,
how about a dungeon where the character carries a lit torch through the rooms?


eBusiness(Posted 2003) [#4]
Don't think there is anything naitive in Blitz, sorry realtime light is an enormeous consumer, the closest you can get is distance fading. Or a DirectX light, but they look horrible.


jhocking(Posted 2003) [#5]
There's no need for two versions of models, just two lightmap textures. You can switch the texture applied to a model.


Rob(Posted 2003) [#6]
For lights on/off you have two options:
1) a seperate lightmap for the areas where the light will be turned on or off;
2) using negative (dark) dx lights or entitycoloring the area designated to be dark.