We get it. We use ad blockers too. But GameDev.net displays them so we can continue to be a great platform for you.
Please whitelist GameDev.net and our advertisers.
Also consider a GDNet+ Pro subscription to remove all ads from GameDev.net.
Jump to content
Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.
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.
Posted 26 October 2009 - 05:12 PM
Posted 26 October 2009 - 07:32 PM
Posted 27 October 2009 - 12:31 AM
Posted 27 October 2009 - 01:36 AM
Posted 27 October 2009 - 01:52 AM
Posted 27 October 2009 - 02:42 AM
Original post by Atrix256
since a sine wave itself doesn't look like realistic waves, i multiple the output of sin by 0.125 to make it 1/8th as tall of a wave.
Original post by knighty
Now if I've understood well you have: f(x)=sin(a*x)
Posted 27 October 2009 - 02:43 AM
It seems that the formula above calculates the right-hand normal that points "inside" the wawes. To calculate the left-hand normal vector (which has positive y-component) you should just multiply the components by -1.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.