Jump to content

  • Log In with Google      Sign In   
  • Create Account

Simulating water with a plane


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 george7378   Members   -  Reputation: 1227

Like
0Likes
Like

Posted 15 February 2013 - 06:28 PM

Hi everyone,

 

I'm interested in using a plane object to simulate water surfaces by applying a displacement function (like a sine wave) to the surface. I was wondering how people usually go about this? I can create a plane in Direct3D well enough, but how would I go about deforming it (unless I made it using LOTS of vertices and displaced them individually). Is there a simple way?

 

Thanks!



Sponsor:

#2 Seabolt   Members   -  Reputation: 633

Like
0Likes
Like

Posted 15 February 2013 - 10:15 PM

Hey!

So if you're wanting to do traditional displacement mapping, you would need a fairly dense vertex count to get some good waves, at least from what I know. Though you can look into tessellation to generate more vertices for use, if your card can support it. I believe DX9 has some tessellation features, though it's been awhile since I've looked.

You can also get some decent looking waves with normal mapping, if you'd like. It doesn't require more vertices, and it can still look really good, though if looked at very closely, you'll see that the plane is still flat.

Good luck!


Perception is when one imagination clashes with another

#3 george7378   Members   -  Reputation: 1227

Like
0Likes
Like

Posted 16 February 2013 - 04:46 AM

Thanks a lot - yes, I imagined that it would take a lot of vertices to make smooth waves. I've looked into normal mapping too, and I think that might be the best idea, but I'm yet to find a good tutorial to get me started in DX9! I'll keep looking! Perhaps there's a good book about it?




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS