marc.mitchell_ Posted June 14, 2018 Posted June 14, 2018 How can you fade the full screen to black? e.g. Between teleportation users screen would fade to black then fade back in again? I am looking at possibly using post process material to do this but would like to know if there's another way. This would need to work on screen and in VR.
Greg.Mildenhall Posted June 15, 2018 Posted June 15, 2018 You're in luck! The "Creating of Custom Shader for Post-Processing" page of the documentation describes how to do almost exactly this. (It fades to grey rather than black.) The Material class will allow you to vary the grayscale_power parameter in code. Alternately, you could probably do this with a gui overlay.
silent Posted June 15, 2018 Posted June 15, 2018 There is also built-in fade option available via global Render state: Render::get()->setFadeColor(vec4(...)); We use similar approach in Component System demo (but here it's used to simulate received damage, see Pawn.cpp). How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
marc.mitchell_ Posted June 15, 2018 Author Posted June 15, 2018 @Greg.Mildenhall @silent Thanks! Learning the engine this week so appreciated!
Recommended Posts