View Full Version : How to make a dolphin model swim like a dolphin?

12-24-2002, 06:40 PM
Hello everyone,

I am now making a dolphin swim in the 3D world by OpenGL, I am now able to transform the model to any position in the world. However, the dolphin doesn't look like swimming across the sea, it just like sliding in the sea. http://www.opengl.org/discussion_boards/ubb/frown.gif

Therefore, how can I make the model swims in the "wave" form? If you can, please teach me with some examples or tutorials.

Thanks you very much. http://www.opengl.org/discussion_boards/ubb/smile.gif

12-24-2002, 07:22 PM
I think the mesa-demos comes with a dolphin-swimming demo called Atlantis. ...hmm... can't seem to locate it at the moment.

12-24-2002, 08:38 PM
Thanks jmg, I have checked the Atlantis example, but the dolphin in it just sliding in the sea.

My expected output is similar to the Dolphin example in DirectX SDK. Hope you all can help me.

Thanks you very much~

12-25-2002, 03:57 AM
what about letting it swim a simple sine-wave?

y = sin(x)*someScaleFactor

you can do that on every other plane too, not only for the height, hope it helps

oh i forgot
x is the current way you have already passed, normally it's a variable you count upwards, y will give you the height of the sine-wave at position x (oh, that sounds so newbish)

[This message has been edited by MofuX (edited 12-25-2002).]

12-26-2002, 08:49 PM
Thanks MofuX, it gives an new idea for me.

12-27-2002, 03:08 AM
How about a model with keyframes?

12-29-2002, 03:58 AM
I have thinked about the key frame method, however my skill is not good at 3D studio... so... http://www.opengl.org/discussion_boards/ubb/frown.gif