PDA

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



candy
12-24-2002, 07: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

jmg
12-24-2002, 08: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.

candy
12-24-2002, 09: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~

MofuX
12-25-2002, 04: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

EDIT:
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).]

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

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

candy
12-29-2002, 04: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