• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to make a dolphin model swim like a dolphin?

This topic is 5593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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. 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.

Share this post


Link to post
Share on other sites
Advertisement
Thanks static_matt13 & flegmato.

My expected output is similar to the dolphin example in directX SDK. In that example, the dolphin is swimming in a "wave" form which looks like a real dolphin.

However in my project, my dolphin just swim(translate) from one position to another position in a straight way just like a car...

Share this post


Link to post
Share on other sites
DirectX uses vertex shaders to accomplish the dolphin effect. In OpenGL, you can use vertex programs for the same thing.


Don''t listen to me. I''ve had too much coffee.

Share this post


Link to post
Share on other sites
The dolphin would need to have skeletal animation sequence and you would need to play it in you code. I don thtink he is talking about moving the dolphin in a wave, he wants it to move the dolphin in a line (or whatever) and as it moves, the body will form to make it seem like it is flapping its fins.

Be more specific next time to get better answers.

IT Administrator / Software Engineere
http://drdsoftware.cjb.net

Share this post


Link to post
Share on other sites
Not too familiar with OpenGL vertex stuff, so you''ll have to find tutorials for yourself... but the OpenGL website would probably be a good place to start (it''s an extension).


Don''t listen to me. I''ve had too much coffee.

Share this post


Link to post
Share on other sites
You''re probably best off learning the techniques behind skeletal animation in software (eg do it on the cpu using matrix math) and then learn the hardware way afterwards. Otherwise you may get too bogged down in extension hell to learn anything. If you are only using one model it will make no performance difference anyway.

There''s a good turorial on skeletal animation on Brett Porter''s site. It follows on from his milkshape model loading tutorial on nehe.gamedev.net.

Dan

Share this post


Link to post
Share on other sites
Thanks all of you~

Is it possible to let the model to swim in a simple sine-wave? For example,

y = sin(x)*someScaleFactor

x, y is the position of the model.


Share this post


Link to post
Share on other sites

  • Advertisement