stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

Smooth fade-in/fade-out for SkyImages

Open gzotti opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Found while preparing a script: I'd like to show an image insert in the sky. There is ScreenImage and SkyImage. Only the former can show effects like fade-in or fade-out, or even grow from a spot. The SkyImage can be loaded and appears/disappears suddenly, which may look ugly under some circumstances.

Describe the solution you'd like I am investigating options to let a SkyImage smooth in gradually. Unfortunately this is concerning the ill-documented StelSkyLayer/MultilevelJsonBase/StelSkyImageTile family. It appears that StelSkyImageTile::drawTile() would already apply a fader on first show of an image. However, I never can see this in action. And then once run, it is never fading out. Is this the place to play around with? Or rather StelSkyImageTile::draw() with its currently unused opacity?

Describe alternatives you've considered ScreenImage. It is OK on a flat sceen, but not in a dome planetarium.

Additional context None currently.

gzotti avatar Dec 10 '23 23:12 gzotti

Hello @gzotti!

Thank you for suggesting this feature.

github-actions[bot] avatar Dec 10 '23 23:12 github-actions[bot]