Jump to content

Shadow map generation on demand


photo

Recommended Posts

Posted

Hi,

I was wondering it it is possible to control the shadow map generation through either C++ or UnigineScript. We have a scene that changes only under certain conditions, and we would like the Shadow Map to be only recreated on demand instead of every frame.

Regards,

Florian

Posted

f.reichl,

I'm afraid, there is no such functionality available (not only for WorldLight, but for all lights as well).

As a part of research for the Superposition demo we tried to use static shadow maps for local lights (not WorldLight) and have indeed nice boost, but there were also some disadvantages (more memory consumption while updating shadows, more spikes (especially with LODs changes), more CPU load in some cases), so we decided to not use this at all. Also, changing camera position is affecting shadows, so there is no easy way to made shadows really static.

I'm afraid the only available solution right now is to bake lightmaps.

Thanks!

 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Thanks for the response, silent, even though it was not was I was hoping for :-)

Any chance this will be implemented in the near future?

Posted
13 hours ago, f.reichl said:

Any chance this will be implemented in the near future?

Can't say with 100%, but if dev team will have some additional time for that (but chances are very low).

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...