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.

Limit paning of a orbit camera

Home Forums General Questions Limit paning of a orbit camera

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #61701
    vjecht169
    Customer

    Hello,
    still the same app as in a topic before:

    https://v3d.net/hqf

    Now I would like to limit the camera panning to the surrounding sphere, so that you can’t leave this area with the camera.

    I have now searched the forum for various solutions to this and have so far found a single Maya solution (I use 3dsMax myself) that I don’t understand and can’t replicate.

    Is there a way to limit camera panning on orbitcameras ( I know it works on first-person through collision materials) ?

    Or is there possibly a workaround.

    Thanks for the help :)

    • This topic was modified 1 year, 8 months ago by vjecht169.
    #61704
    kdv
    Participant

    There are a lot of topics about how to limit the scene camera panning. This one is the most useful

    Is there a way to restrict panning ?

    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.

    #61705
    vjecht169
    Customer

    Hm, according to the link there is unfortunately no good solution at the moment ?!

    So then I guess I should integrate a button ,that automatically resets the camera to the origin – in case someone navigated out….

    Now I just have to figure out how ;)

    #61706
    kdv
    Participant

    You can try to limit the max distance between the camera and the center of that big sphere…

    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.

    #61707
    vjecht169
    Customer

    You can try to limit the max distance between the camera and the center of that big sphere…

    Ok thanks a lot, that sounds good, but how can I implement that e.g. with the help of puzzles?

    #61708
    kdv
    Participant

    Use the constraint puzzle
    https://www.soft8soft.com/docs/manual/en/puzzles/Animation.html#limit_transform

    Not perfect but better than nothing )))
    https://v3d.net/hrt

    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.

    #61709
    vjecht169
    Customer

    Not perfect but better than nothing )))
    https://v3d.net/hrt

    Wow, but ahemm, how did you get the data of my file?

    and more important: can you give me also the puzzle?
    I tried it with the limit distance but it didn’t work ;)
    Perhaps because I’am still a beginner…

    • This reply was modified 1 year, 8 months ago by vjecht169.
    #61710
    kdv
    Participant

    Wow, but ahemm, how did you get the data of my file?

    Simply downloaded the files

    and more important: can you give me the also puzzle?

    You’d better place your town more symmetrically relative to the sphere’s center.

    And fix the geometry

    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.

    #61714
    vjecht169
    Customer

    :good: :yahoo:

    The geometry is only there for testing purposes – I have mirrored it 3x ;)

    • This reply was modified 1 year, 8 months ago by vjecht169.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.