f.reichl Posted August 1, 2017 Posted August 1, 2017 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
silent Posted August 1, 2017 Posted August 1, 2017 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
f.reichl Posted August 1, 2017 Author Posted August 1, 2017 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?
silent Posted August 2, 2017 Posted August 2, 2017 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts