romain.janil Posted October 7, 2018 Share Posted October 7, 2018 Hi there, I can't get my global terrain to cast shadows on itself (testing on valleys and terracing surrounded by very high mountains), world is about 100km*100km. Objects cast shadows on terrain but terrain surface doesn't (on it self and other nodes) tweaked shadow distance, doesn't help, all comboboxes (cast shadows, cast world shadows) are checked everywhere Thanks for your help, Link to comment
morbid Posted October 8, 2018 Share Posted October 8, 2018 Hi Romain, there's a known bug with terrain shadows - sometimes they won't render in scene viewport. Please try the following: enable "Cast Shadows" option for all Height LODs of your terrain check "Cast World Shadows" in the terrain material switch to engine viewport If the shadows are present in the engine viewport - they will be visible in the application as well. Please, keep in mind that shadows for highly detailed LODs will impact overall performance, so it could be better to enable them only for low-poly LODs. I'll update this issue in our internal tracker. Thank you. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
romain.janil Posted October 8, 2018 Author Share Posted October 8, 2018 Hi Morbid, ok thanks I'll try that. Link to comment
romain.janil Posted October 8, 2018 Author Share Posted October 8, 2018 Hi Morbid, update: I've enabled Cast Shadows on every LODs (that was already the case except for LOD0), and verified that checkbox was on the terrain mat, switched to engine viewport, and gave a try to the application too, but still no luck, no shadows... it's a global terrain with geodetic pivot. if it's a known bug I've just hit the wall pretty nicely :) Link to comment
morbid Posted October 8, 2018 Share Posted October 8, 2018 Is it possible to get a scene? You can upload it to any file hosting or on our FTP server. I did a couple of tests before the answer and terrain shadows worked. The Viewport bug happens rarely and now, obviously, it's not the case. The FTP credentials (this login and password allows uploading only) below: ftp://files.unigine.com user: upload password: iejeePheeH3che Thank you! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
romain.janil Posted October 8, 2018 Author Share Posted October 8, 2018 I'll see what I can do to upload scene, could it be also related to cg drivers ? Testing the Engine here on 1 workstation with a 1080 ti/388.16 drivers Link to comment
morbid Posted October 8, 2018 Share Posted October 8, 2018 Driver worth checking. I used 411.63, but there's even a newer one. Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
romain.janil Posted October 8, 2018 Author Share Posted October 8, 2018 yep, I'll check them also, Thanks, i'll keep you posted ! Link to comment
romain.janil Posted October 8, 2018 Author Share Posted October 8, 2018 Ok, managed to get some terrain shadows tweaking shadow distance to somehow half the size of the world: under shadows vanish and above also, I need them to play with bias, normal bias softnees and sharpness to get the right look at low sun angles, and also for shadows not to dance with lod morphing.... Link to comment
morbid Posted October 9, 2018 Share Posted October 9, 2018 Have you saw Shadow Offset parameter in terrain material? Could be useful in case with multiple LODs casting a shadow: https://developer.unigine.com/en/docs/2.7.2/content/materials/library/terrain_global_base/#shadow_offset How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
romain.janil Posted October 9, 2018 Author Share Posted October 9, 2018 HI Morbid, indeed, I've adjusted this parameter, thx for the tip. Is there an explanation why shadows won't render at certain shadow visibility distance? As I said here I'm forced to set the range pretty high. Link to comment
morbid Posted October 9, 2018 Share Posted October 9, 2018 Romain, hard to guess what went wrong. Can you be more specific? Which values work for you, which don't? If it's possible I'd like to take a look at the terrain, that would be much easier. Thank you! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
deitty Posted September 12, 2021 Share Posted September 12, 2021 this issue exists in 2.14 too Link to comment
silent Posted September 13, 2021 Share Posted September 13, 2021 deitty Creating proper self shadowing for LandscapeTerrain is on our TODO list, but with minor priority. ObjectTerrainGlobal will have the same options (no changes are planned to this object in the future updates). How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts