Dynamic lighting
Blitz3D Forums/Blitz3D Beginners Area/Dynamic lighting
| ||
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? |
| ||
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. |
| ||
That sounds good thanks, how about a dungeon where the character carries a lit torch through the rooms? |
| ||
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. |
| ||
There's no need for two versions of models, just two lightmap textures. You can switch the texture applied to a model. |
| ||
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. |