Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::View slow zoom in loop  (Read 1612 times)

0 Members and 1 Guest are viewing this topic.

Milerius

  • Newbie
  • *
  • Posts: 23
    • View Profile
sf::View slow zoom in loop
« 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 :



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 ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10822
    • View Profile
    • development blog
    • Email
Re: sf::View slow zoom in loop
« Reply #1 on: January 16, 2018, 10:57:49 pm »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Milerius

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: sf::View slow zoom in loop
« Reply #2 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

 

anything