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.

After zooming camera to an object, how can the camera go back?

Home Forums Puzzles After zooming camera to an object, how can the camera go back?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34899
    derekwang0605
    Customer

    I use puzzle to zoom camera to an object.
    zoomCamera(‘wall001’, 3, function() {});
    After 3 seconds, I want the camera to go back to its original position. Like nothing happened. Is it possible to do this?

    #34912
    matthijsbinmat
    Customer

    Made a quick example,but this is how i am doing this with a static camera.

    Attachments:
    You must be logged in to view attached files.
    #34928
    derekwang0605
    Customer

    Thanks a lot! Worked very well! :good: :good: :good:
    I also tried to setup the camera back to the original position after all the animations by below, but did not work. Camx/y/z are the position variables I saved from the beginning.
    camera.position.x=camx;
    camera.position.y=camy;
    camera.position.z=camz;
    //camera.update();
    camera.updateProjectionMatrix();

    #34938
    matthijsbinmat
    Customer

    maybe by using object position puzzels?

    Attachments:
    You must be logged in to view attached files.
    #34940
    derekwang0605
    Customer

    Thanks! :good:
    Still not working yet! This can not be impelmented by puzzles?

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