ZaneDubya / UltimaXNA

Ultima Online client in C#/XNA
GNU General Public License v3.0
141 stars 73 forks source link

Implement static lighting effects #143

Open ZaneDubya opened 9 years ago

ZaneDubya commented 9 years ago

When it's dark, static lighting (like candles, streetlight, and ... windows, maybe?) should generate a lighting effect.

Three questions must be answered before this can be implemented:

This one might require some tweaking of the sprite batch. Ought to be fun. :)

ZaneDubya commented 9 years ago

katsienna_lighthouse4

PatrikSamuelTauchim commented 9 years ago

Light properties are defined in tiledata.mul. On non-static light sources, properties can be also changed by script. Colored lights are hardcoded in client as far I know. Would be nice to change this. I belive, that light effect is always visible with exception of highest global light level.

PatrikSamuelTauchim commented 9 years ago

And if I remember correctly, to put light effect on item, you need to set Light Source flag in tiledata and then set LightID as Quality value.