Virtual Desktop

Virtual Desktop

Raphpower 7 Jun, 2024 @ 7:32pm
Images transition option
can we disable the transition for going from an image to another ? The ideal would be a crossfade instead of that blackout, it's really annoying when wanting to show a set of images
< >
Showing 1-3 of 3 comments
ggodin  [developer] 9 Jun, 2024 @ 2:18am 
That’s by design because there can be a frame dip/stutter when the image gets loaded so it’s better to have a black screen to avoid that.
Raphpower 2 Jul, 2024 @ 2:20pm 
Originally posted by ggodin:
That’s by design because there can be a frame dip/stutter when the image gets loaded so it’s better to have a black screen to avoid that.

I see, I did a prototype of this myself, it basically loads the next or previous image when we want to switch image :

1. user click on new image

2. game loads the image in background (small stutter can happen but that would be solved by loading it asyncrous)

3. once image loaded the transition begin, then after transition old image isn't loaded

Note: I did this quickly on unreal engine... wich is a bit stupid, might try on unity too, but that would theoretically work, and ease image transitions. Tho, vram or ram is an issue if the images are 10k x 10x pixels, wich is rare.
Last edited by Raphpower; 2 Jul, 2024 @ 2:22pm
Raphpower 7 Jul, 2024 @ 3:16pm 
Originally posted by ggodin:
That’s by design because there can be a frame dip/stutter when the image gets loaded so it’s better to have a black screen to avoid that.
I just did a unity test, it works really nice by pre loading images based on user input, when i click next, it loads next image async and then set it to the second texture for the blend, then after blend, I remove the older one and replace it with current and voila !

Tried with a set of 300 images of 7000x7000 in uncompressed PNG file (output of photoshop from an HDRI) and it works great. I also included option to preload all images untill ram limit set by user.

You can try implementing this for users with a beefy PC.
< >
Showing 1-3 of 3 comments
Per page: 1530 50