Skip to main content
R
6mo ago

Progress bar - recoil when using multiple blend states

Hi. I want to create a progress bar, that developers can manipulate from run times using react.

The bar needs to auto progress from x% to y% and then go forward from y% to z%.
I managed to create such setup with blend states. But when going from one blend state to another, the recoil of progress bar happens, especially when values are above 50%.

Do you have any ideas how to solve this? I am attaching preview and .rev below.
Thanks a lot in advance

progress_screen_v5-community.rev
1 MB


3 replies
G
R
R
R
6mo ago

Hey there,

Lance and I have a state machine and some code to try out. This requires a different setup than the approach you are taking, at least in our opinion. The issue you are running into is due to how Blend States ramp up as they turn on, which there doesn't seem to be a way around.

I'm including a video and a sample file that you can try out and see if you are happy with the results.

progress_bar.rev
2 KB
R
6mo ago

Wow Robert, thank you so much for this setup! Very clever way to solve this, I taught there is no way around :) I will test on my use case and let you know.

G
6mo ago

Hey what is the code you used to make it work? I am in a similar case...thank you