Dynamically rotating/zooming camera to a certainposition

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Dynamically rotating/zooming camera to a certainposition

    Hi,

    I am having some difficulties with dynamically zooming on a 3D model. I want
    to zoom back to a predefined camera position after the user has orbited and
    zoomed around the model freely using the mouse, with animation.

    I have a frame handler that moves and rotates the camera in several steps
    (i.e. with a maximum "speed"), back to the desired position, by comparing the
    camera's current XYZ position with target XYZ.

    This works, but if I want to zoom back to a position where the camera is still
    rotated, the zooming animation is far from smooth. It tends to move from left
    to right, back and forth, until it reaches its final position. I want to have
    it move in a STRAIGHT line.

    Does anyone know how to accomplish this? I guess I would need to calculate
    some kind of path, but I can imagine there is a Lingo method to do this.

    Thank you

    Wriker Guest

  2. Similar Questions and Discussions

    1. limited camera zooming
      Hello all. I have this zooming method which works fine, but when i zoom onto models, the "amount" of zoom is fixed. i want to make the zooming...
    2. Rotating a camera position
      hi, I have a w3d file with a behaviour in which i can rotate the camera in the scene and that works very fine. But the problem i am facing is that...
    3. Camera zooming, general 3D model view interaction
      hello i'm working on a viewer for 3D models. the possibilities of interaction are: - zooming by moving RMB - orbiting by moving LMB -...
    4. Rotating and Zooming image sequence
      Hi. I am new to using Flash. What I am trying to do is take an object in a series of photos, and create all-direction rotation, as well as the...
    5. Rotating a camera left/right and up/down while targeting the origin
      I've tried for a while to get this to work but have done it unsuccessfully, I want to be able to rotate a camera (in this case the default camera)...
  3. #2

    Default Re: Dynamically rotating/zooming camera to a certainposition

    I'm not sure if I have my head around the specifics you're going for, but in
    general I've had great success using bezier calculations. Paul Lemon opened it
    up for me when I found this:
    <a target=_blank class=ftalternatingbarlinklarge
    href="http://www.directorforum.de/showthread.php?t=11284
    I">[url]http://www.directorforum.de/showthread.php?t=11284[/url]
    I</a> tend to chop his work up and poke it into my stuff.

    You may be going for something a little more like the follow link. It's in
    progress so the instructions are missing. left click drag to rotate, right
    click to pan, click both mouse buttons and drag vertically to zoom.
    <a target=_blank class=ftalternatingbarlinklarge
    href="http://www.stuffycorporatedesign.com/open/ss.htm">[url]http://www.stuffycorpora[/url]
    tedesign.com/open/ss.htm</a>

    Paulygon Guest

  4. #3

    Default Re: Dynamically rotating/zooming camera to a certainposition

    Thanks. The magic word I was looking for is "interpolate", but bezier
    calculations is even better because it gives you the option to add several
    "waypoints" in your trajectory.

    Nice galaxy, by the way. :-)

    Wriker Guest

  5. #4

    Default Re: Dynamically rotating/zooming camera to a certainposition

    [q]Originally posted by: Paulygon
    [url]http://www.stuffycorporatedesign.com/open/ss.htm[/url][/q]

    I know this post is old, but you would not have the script for this would ya?
    I ask this because, I am trrying to orbit my camera arround an object and I am
    not getting the results as in the above shockwave 3d demo.

    I am have tried rotating with the below method but it causes the camera to fly
    all over the place...
    pCamera.rotate(dx, dy, 0, sprite(me.spriteNum).member.model("box"))

    ... where dx dy are the rotation angles that I have calculated from where the
    mouse is located


    Roofy Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139