SFML community forums

Help => Graphics => Topic started by: Milerius on January 16, 2018, 10:38:36 pm

Title: sf::View slow zoom in loop
Post by: Milerius on January 16, 2018, 10:38:36 pm
Hello, i'm trying to do a zoom in effect with sfMovie movie playing in background using this snippet of code :

(https://image.ibb.co/jMnzxR/Screenshot_at_2018_01_16_22_32_56.png)

But this is in a gameLoop, and it's very fast (60fps), the minimal factor is 0.99f, any idea to getting the zoom slower and still looking smooth ?
Title: Re: sf::View slow zoom in loop
Post by: eXpl0it3r on January 16, 2018, 10:57:49 pm
the minimal factor is 0.99f
Why?
Title: Re: sf::View slow zoom in loop
Post by: Milerius on January 16, 2018, 11:40:05 pm
I'm really sorry i just tried 0.9999f, and it's just work as intended, 0.99f was to low factor