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.

Possible to adjust the camera’s horizontal and rotational limits with puzzles?

Home Forums Puzzles Possible to adjust the camera’s horizontal and rotational limits with puzzles?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31283
    chornblow
    Participant

    Hi,

    I’m using blender coupled with Verge 3D and wondering if it possible to adjust the camera’s horizontal and rotational limits within puzzles?

    What I’m trying to achieve is to begin with the camera looking down at the model from 45 degrees, only allowing the user to rotate the view horizontally. If the user then clicks on an element in the model the camera will then tween to focus on the element at a 90-degree angle, again only allowing the users to rotate the view horizontally. They will then be able to click off the element and tween back to the original 45-degree position looking down.

    I’ve had some success by tweening the camera into position and then switching the view to a second camera which has the rotational limits I want, however I cannot see a way to tween back to the original position smoothly because if I cut back to camera 1 to reverse the tween it will not be perfectly lined up with camera 2 if it has been moved.

    Many thanks for any help!

    #31387

    Hi,

    sorry for the delay,

    AFAIK this is kinda difficult to realize with the Puzzles alone. It may require looking into some coding I’m afraid.

    Chief 3D Verger | LinkedIn | Twitter

    #31561
    chornblow
    Participant

    Hi Yuri,
    No worries, thanks for letting me know.

    #31575

    :good:

    Chief 3D Verger | LinkedIn | Twitter

    #31628
    GLiFTeK
    Customer

    You can parent the camera to an empty,
    Give the camera zero movement abilities in blender, then have your mouse/pointer input (html puzzles) control the orientation of the empty which can also be limited by the physics constraint puzzles.

    Might want to experiment with that

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