earthquake effect on 3d world

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

  1. #1

    Default earthquake effect on 3d world

    Hey there,
    I know I am becoming a plague but I have so many questions. This learning
    curve is bloody steep. Anyway, just wondering if anybody out there have ever
    put any effects on a 3d world member. I would like some kind of shudder/ripple
    effect everytime I hit the base drum. Anybody got suggestions?
    A

    keogan Guest

  2. Similar Questions and Discussions

    1. Hello World?
      I have downloaded Flash Media Server 2 and installed it but I have no way to tell if its working and I have no way to get started. I downloaded the...
    2. Its New World
      :music; Hi Guys Previosly I was a flash Designer.....Now I m in programming..... So welcome me for in the new world.....
    3. 2D map for a 3D world
      you can calculate and scale the positions of your character simply taking only x and y position of it, create a map in 2d and positioning an avatar...
    4. OS 9.2 on a Old World
      I have a Old World that is not a native G3. Its a G3 with a upgrade card. is there someway to run 9.2.x on it? I really want to get OSX, but...
    5. World Pac
      http://catalog.worldpac.com/webparts-overview.html Before I go figuring this out from scratch... Has anyone here worked with their Java API and...
  3. #2

    Default Re: earthquake effect on 3d world

    Put a little random decaying noise on your objects (or, better yet, your
    camera). At a frequent interval, like stepframe, or on a 30ms timeout:

    (pCount would be a global or property that increments every interval)

    pCount = pCount + 1 -- increment this every time interval
    vNoiseVector = randomVector() / pCount -- returns a random vector that gets
    smaller with time
    vNoiseVector = vNoiseVector * vSomeScalingFactor -- scale this very small
    vector up to a size that can be used in your scene
    -- set your object/camera position
    yourObjectReference.translate(vNoiseVector)

    You might want to get the position of the object (pInitialPosition) before
    doing this, and adjust against that postion every time. So, instead of
    translate, use:
    yourObjectReference.transform.position = pInitialPosition + vNoiseVector

    also you may want to power() pCount to get a faster decay.

    Just a thought. Didn't try it myself.




    tedalde2 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