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.

Change touch gesture to change focal length of camera

Home Forums General Questions Change touch gesture to change focal length of camera

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #59504
    jasonod888
    Customer

    Hi,
    I need the camera to change field of view instead of dolly when user tries to zoom. ( ineffective it will give a zoom feel itself, but i dont want the camera to move ).

    I managed to achieve this on desktop by detecting wheel and translating that to camera Field of view. I cant seem to find a way yo detect zoom in or out gesture in touch.

    Can you please help solve this ?

    Thank You

    #59518
    kdv
    Participant


    https://v3d.net/e6p

    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.

    #59527
    jasonod888
    Customer

    Thank you !!
    Appreciate the time taken to respond.

    It works perfectly.

    #59531
    jasonod888
    Customer

    Hi, Sorry to bother again.
    This works perfectly when I save the puzzle and run the project.

    However, the next time i try to access the puzzle from the App Manager I get a blank screen. I then need to use the backup .xml to access the puzzle. Thus im assuming the Java script is causing some issue with the puzzle. Any ideas on how to solve this.

    Thank You

    #59532
    kdv
    Participant

    Have no idea about this issue on your side (see the browser console log for details). It’s the question to the Verge3D team. On my side there are no issues with scripts.

    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.

    #59533
    jasonod888
    Customer

    OK. Thank you for your response. I think the verge3D team will respond on this thread itself.

    #59534
    kdv
    Participant

    You can move this script to your_app_name.js, to the runCode(app) function.

    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.

    #59535
    jasonod888
    Customer

    Uploading the .xml file for reference of the verge3d team ( hope it helps )

    #59540
    jasonod888
    Customer

    Perfect. Works great now. Puzzles working and the FOV changes as expected.
    Thanks a ton !!

    #59541
    kdv
    Participant

    However, the next time i try to access the puzzle from the App Manager I get a blank screen.

    Press F12 and show the log errors. It’s not normal. Maybe you’ve made typos in the script…

    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 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.