Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Scene Snap Back effect

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    2

    Scene Snap Back effect

    Hi folks,
    I have a question for you. I could not really find anything on this matter. (maybe i searched with wrong keywords)
    I have a scene with a model. So, now if you pan out of a "bounding" box, in a way that the model is not completely visible anymore and you release the mouse button, the scene should "bounce" or "snap" back to the previous position where the complete model was visible. That should happen with a nice, slick and smooth animation with some easing.
    Example for the html5 canvas: canvas demo
    Hope this helps to illustrate what i want.

    I have zero experience in OpenGl programming. I just want to know if that is possible and some hints on how to do it (maybe an example if availible). And if it is complicated and requires a lot of effort.
    Or if anyone knows plugins or extensions that allow this, that would also be appreciated.

    Thank you for your help gyus.

    Best Regards.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,194
    Just smoothly change (interpolate) your camera parameters.

  3. #3
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    2
    So there is no plugin or extension availibele that could do this for me?
    Thats a shame

    So basicallt i have to create something like a bounding box and every time the camera goes out of these bounds I interpolate it back to it's previous position.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •