bladecoder / bladecoder-adventure-engine

Classic point and click adventure game engine and editor
Apache License 2.0
602 stars 65 forks source link

Suggestion to add “light probes” #67

Open gefrituurdeaugurk opened 4 months ago

gefrituurdeaugurk commented 4 months ago

I wasn’t able to find anything around this so I guess it hasn’t been added:

It would be great to be able to setup light sources that will light sprites and 3D objects that get closer to this source.

For 2D it could be a simple color transformation. For 3D I can imagine it’s more complex as quickly the topic for shadow casting becomes relevant which might increase scope a lot, but even a simple color transform would be great here too.

Perhaps it could contain of two circles in the editor: the outer region determines its total radius. The inner circle the color transformation ‘at max’. And then of course the color itself as a parameter. It would also be great to be able to control this light through code, e.g to create flickering lights. And the user would need to specifically set for an object or actor to be affected by the light probe or not through a checkbox of some kind.