Home › Forums › General Questions › Change touch gesture to change focal length of camera
Tagged: touch
- This topic has 9 replies, 2 voices, and was last updated 2 years, 9 months ago by
kdv.
-
AuthorPosts
-
2023-01-11 at 4:10 pm #59504
jasonod888
CustomerHi,
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
2023-01-11 at 10:33 pm #59518kdv
ParticipantPuzzles 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.
2023-01-12 at 7:32 am #59527jasonod888
CustomerThank you !!
Appreciate the time taken to respond.It works perfectly.
2023-01-12 at 9:57 am #59531jasonod888
CustomerHi, 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
2023-01-12 at 10:08 am #59532kdv
ParticipantHave 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.
2023-01-12 at 10:12 am #59533jasonod888
CustomerOK. Thank you for your response. I think the verge3D team will respond on this thread itself.
2023-01-12 at 10:12 am #59534kdv
ParticipantYou can move this script to
your_app_name.js, to therunCode(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.
2023-01-12 at 10:14 am #59535jasonod888
CustomerUploading the .xml file for reference of the verge3d team ( hope it helps )
2023-01-12 at 10:21 am #59540jasonod888
CustomerPerfect. Works great now. Puzzles working and the FOV changes as expected.
Thanks a ton !!2023-01-12 at 10:26 am #59541kdv
ParticipantHowever, 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.
-
AuthorPosts
- You must be logged in to reply to this topic.

