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.

Zoom/Fov mouse wheel

Home Forums General Questions Zoom/Fov mouse wheel

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #51287
    ATGmedialab
    Customer

    Dear all,
    I am making a project where we can rotate around a 3D factory model with several clickable rooms.
    When one is clicked the camera flies to the centre of the room and the user can view the room 360 degrees from inside. The customer wants to be able to zoom in/out or change the fov of the camera at this point.

    How can I modify the mouse wheel value when is scrolled to change the fov instead of doing a dolly movement?

    Please if you can provide an example to support me.
    Thank you all.
    A.

    #51298

    You can create a multiple cameras with different FOV and scroll speed and swithc between them using puzzle Set Active Camera.

    Co-founder and lead graphics specialist at Soft8Soft.

    #51373
    ATGmedialab
    Customer

    Excuse me if I misunderstood your answer.

    What I need is to change the FOV of the active camera with the mouse-wheel in real-time. Instead of translating the camera forward & backwards.

    Hope someone can help to code this.

    #51378

    Then you can use Set Param Camera puzzle for that.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #51387
    ATGmedialab
    Customer

    That’s a good idea indeed.

    But the parameter ’50’ should be driven by the mouse-wheel input from the user.
    How do we link the FOV parameter to the mouse-wheel input?

    Thanks for the follow-up.

    Pd: The attached is an idea that does not work =(
    Pd: I got this code from the web (codeFOV.jpg)
    Could you explain where to add these lines? Can I call/execute it with the puzzles somehow?

    Attachments:
    You must be logged in to view attached files.
    #51396

    Here’s an example for you.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #51502
    ATGmedialab
    Customer

    Ey Mikhail,
    Thank you a lot, this is great and really helpful.
    You’re fantastic guys.

    Best regards,
    A.

    #51503

    You’re welcome! :good:

    Co-founder and lead graphics specialist at Soft8Soft.

    #51949
    ATGmedialab
    Customer

    Update: To anyone interested in changing the camera FOV with the mouse wheel. I post another solution I found more appropriate for my project.

    Attachments:
    You must be logged in to view attached files.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.