License from €75
DE EN FR ES IT CZ

shaderViewport movement isn't straight

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    Hi,

    I'm having this kind of issue. I zoomed through the shaderViewport into a scene. Now i want a slow camera zoom out effect. The problem is that the zoom out isn't straight movement - it goes to the right and back while zooming out which doesn't make any sense to me.

    Setting the zoom:
    shaderViewport(1.5, 315, 95, 0, 0, easeLinearInOut)


    When i want the zoom out:
    shaderViewport(1, 0, 0, 0, 2500, easeLinearInOut)

    Btw how do i matematically calc the offset that the camera needs in a 16:9 scene if i want to zoom exactly to the center? I don't want to guess it grin

    • Image in post
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 10 years ago
    If you're using the newest version, there is a function
    function shaderViewportInterpolationPoint(x,y) 
    

    You can set it to 0.5,0.5, which will interpolate through the center position, default is 0,0 meaning the left top position.
  4. · 10 years ago
    Thanks Simon, works great!
  5. · 7 years ago
    How to use function?
    I use it but nothing happens.
    • Image in post
    • Image in post
  6. · 7 years ago
    Check the log or press tab and check lua errors.
  7. · 7 years ago
    I copied from " Shader Toolkit". Why doesn't it work?
    Can you recommend a solution?
    • Image in post
  8. · 7 years ago
    Where did you get the shader toolkit script from? The one on the wiki is out of date. The up to date one is here.
  9. · 7 years ago
    In the screenshot the execute script is: shaderZoom(1, 500, easing)
    Shoudn't the easing be specified? Like easeLinarIn, easeQintOut ...
    Could that be the problem?
  10. · 7 years ago
    OK."Shader Toolkit"No problem.    Why doesn't it work?
    Am I using the wrong function? 
    i use fuction at begine of scene.
    • Image in post
    • Image in post
  11. · 7 years ago
    Check your spellings mate. easeLinarIn > easeLinearIn.

    @Esmeralda: tsk tsk, I see it was you that told them the incorrect spellings. grin

    Easings can be found here: https://easings.net/en but In, Out, InOut goes on the end & not where it says on that page. For example: easeInSine would be easeSineIn in Visionaire.
  12. · 7 years ago
    Thank you so much .
    I didn't notice and interpret.
    OK, it works.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?