Camera Jumping when using the "look at" puzzle

Home Forums Puzzles Camera Jumping when using the "look at" puzzle

This topic contains 9 replies, has 4 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 1 week, 4 days ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7552

    I could be getting some settings wrong but I have a setup where the camera is supposed to be locked to the origin and you can pan around in a 360 spherical photo with some objects that are selectable cut out of the photo. In using the “look at” and the “tween camera to” puzzles, it seems the camera is made to jump to the subject instead of being locked to the origin as I intended.

    #7555

    Here is a link to a setup that replicates the problem. Click the “Click Me” HTML element at the bottom so see what I’m talking about. I’m not sure if it’s a puzzles bug or the way I have my camera set up in blender being sub-optimal.

    #7557
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    The camera in your file has Max Distance value set to a small number 0.01 (default is 100). I guess this interferes with the look at operator.

    Also it is better to use a second No controls camera for tweening, and switch between it and the user-controlled camera with the set active camera puzzle.
    https://www.soft8soft.com/docs/#manual/introduction/Puzzles.set_active_camera

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #7559

    I’m a little unclear about the different camera control options. I want to be able to pan but I don’t want the camera to move it’s position from the origin (messing up the perspective on the 360 photo sphere. Scrolling (zooming in) actually changes the camera position instead of viewing angle. I want to disable zoom and position changes but allow panning and have the “look at” functional. What setup should I use? Orbit, Flying, No control?

    #7560
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    I want to be able to pan but I don’t want the camera to move it’s position from the origin (messing up the perspective on the 360 photo sphere.

    Then I think you can parent the photo sphere to the camera so that it looks as immobile.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #7561

    Okay I get the issue now. I want the camera to be setup to pan but not around an object (orbit). I just want to click and drag to rotate my view (like a 360 youtube video). In order to do this, I am currently using a small camera offset from center (0,0.01,0) and using the origin as my target. So the camera orbits the origin and all works as I want.
    When I use the “look at” puzzle, the orbit target changes to the object. Now my view is distorted because I’m no longer in the center of the sphere and I’m no longer panning around the origin, I’m panning around an object on the surface of my sphere. I want the camera to be pointed at an object but not rotate around it.
    Could I/should I use a different camera set up to achieve what I’m after (A camera locked to the origin and able to pan and look at specific items on the interior surface of a sphere)

    #7571

    Could I/should I use a different camera set up to achieve what I’m after (A camera locked to the origin and able to pan and look at specific items on the interior surface of a sphere)

    You can change the camera type when it look at specific object on “No Controlls” camera type, and then back to Orbit cmer when it return to it’s main position.

    Co-founder and lead graphics specialist at Soft8Soft.

    #7576

    Thanks, your suggestion got me to an acceptable behavior for my application. Generally I’d like to know the proper way to implement a camera mode which is “pan only” and can be pointed at various targets without rotating around them (like the orbit camera does.) I’ll post on the forum if I figure it out.

    #20002
    Avatar
    mugga
    Newbie

    I’m also having a hard time to switch between a panning only and “normal” camera. I also tried the approach using a camera for moves and switching to another camera when the tween is done.

    But I’m getting weird jumps sometimes. Can someone maybe show an example puzzle, how a proper setup would look like?

    Update:
    I managed to get it working messing around with the cam limits, jumping back and forth. It would be great for upcoming version to have a puzzle to change the cam limits for the active camera.

    • This reply was modified 1 week, 5 days ago by Avatar mugga.
    #20014
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    great you worked it out! We’ll think about a more flexible solution.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.