We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to get camera zoom value?

Home Forums General Questions How to get camera zoom value?

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #60889
    benhoffen
    Participant

    Hi,

    How can I get the current camera zoom value in puzzles?

    Thanks heaps

    #60892
    kdv
    Participant

    What type of camera? The perspective one or orthographic?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #60893
    benhoffen
    Participant

    Perspective, thanks.

    #60894
    kdv
    Participant

    The zoom value is always 1. The perspective camera doesn’t use zooming. It changes its position (distance) relative to its orbit point.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #60895
    benhoffen
    Participant

    Ah, thanks. So I would have to get the camera position and calculate the difference from the orbit point?

    #60896
    kdv
    Participant

    but there is one problem: you don’t know the orbit center coordinates after panning. there is no puzzle for that.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.