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.

Getting errors when switching to a Camera with no controls.

Home Forums Puzzles Getting errors when switching to a Camera with no controls.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #59137
    Brian
    Customer

    Hello!

    So in this example:
    https://www.provia.com/wp-content/uploads/verge3d/115013/

    When I click an annotation, it zooms the camera to the proper location without jumping and animates perfectly. I have a separate call that shows a div in HTML and that is also working as expected.

    The only issue I seem to have is the console throws the same error
    “autorotate camera: wrong controls type” at EVERY frame until the user backs out to the previous Orbit Camera.

    (see screen shots attached)

    How can I fix this issue? Can I just tell it to stop looking for autorotation? It seems to be listening for an autorotation event and I don’t know if there is a way to stop it?

    Attachments:
    You must be logged in to view attached files.
    #59142
    kdv
    Participant

    add a condition, that will check what camera is active before activating autorotation.

    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.

    #59154
    Brian
    Customer

    How do I force the orbit camera to look at the object smoothly without suddenly jumping? There seems to be a setting that I am not following.

    A zoom, location, or FOV that I am not understanding.

    #59155
    kdv
    Participant

    use the camera look at or tween camera to puzzles

    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.

    #59156
    Brian
    Customer

    Ok I spoke too soon. Earlier, when learning verge3d, I realized that the camera would jump (sometimes violently) when coming to a stop after using the “look at” object command.

    I had wrongly assumed it was because of camera controls, and generated a motionless feature camera, however having the user zoom in with the orbit camera, no longer causes a jump.

    So what is the best way to restrict movement when the camera stops?

    #59157
    kdv
    Participant

    show your app (a link)

    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.

    #59158
    Brian
    Customer

    Ok after all of that, I think I have it figured out. For any noob out there, if you are getting a “jump” when camera tweening, make sure that the camera’s FOV, rotation, and location are all accurate the final resting spot of your tween.

    I hope that makes sense. I have it all working now with no errors. Time to clean up the file.

    I’ll share it when I am not embarrassed by my code… :-P

    Thanks for your help.

    #59159
    kdv
    Participant

    make sure that the camera’s FOV, rotation, and location are all accurate the final resting spot of your tween

    exactly

    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.

    #59173
    kdv
    Participant

    But it’s quite possible to make a smooth transition between two cameras with different parameters (FOV, position, rotation)
    https://v3d.net/ctv

    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.

    #59183
    Brian
    Customer

    Great example, but does it throw an error if your zoomed in camera is set to “no-controls” ?

    #59184
    kdv
    Participant

    no errors. as I said, it’s sufficient to check what camera is active before doing smth.

    and I do not use cameras with no controls because the right click on the screen shows the browser conext menu, not needed.

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