Results 1 to 3 of 3

Thread: Scene Snap Back effect

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012

    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
    Join Date
    Oct 2004
    Just smoothly change (interpolate) your camera parameters.

  3. #3
    Newbie Newbie
    Join Date
    Nov 2012
    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.

Similar Threads

  1. How to draw front- and back-scene by GL_DEPTH_TEST
    By charmingzuo in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-31-2008, 11:45 PM
  2. How to do Snap to object?
    By HanWu in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-14-2003, 01:03 AM
  3. snap objects in OpenGL ?
    By rhizome in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-10-2002, 06:14 PM
  4. Snap to vertex
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-28-2002, 05:36 AM
  5. Snap-to grid???
    By mcsellski in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-07-2002, 11:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean