UltimaXNA icon indicating copy to clipboard operation
UltimaXNA copied to clipboard

Implement static lighting effects

Open ZaneDubya opened this issue 9 years ago • 3 comments

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:

  • Which objects create a lighting effect? Is it an item flag?
  • How can we tell which lighting effect to use for an object?
  • When do lighting effects appear - at what level of darkness?

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

ZaneDubya avatar May 04 '15 14:05 ZaneDubya

katsienna_lighthouse4

ZaneDubya avatar May 05 '15 11:05 ZaneDubya

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 avatar May 05 '15 14:05 PatrikSamuelTauchim

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.

PatrikSamuelTauchim avatar May 05 '15 15:05 PatrikSamuelTauchim