Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mugen Wizardry
User Banned
Posted: 1st Aug 2010 15:47 Edited at: 1st Aug 2010 15:48
Does anyone have an example of rolling ocean waves not using a matrix? if there is no other way, then does someone have an example of rolling ocean waves using a matrix?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st Aug 2010 18:31 Edited at: 1st Aug 2010 18:34


EDIT : (There is something weird with the lighting of the matrix... Can someone fix that?)

This is using a matrix, but you can easily change it to use a subdivided plain object instead. The best way to manipulate the vertices would be to use the vertexdata commands.

All credits for the next example go to empty. It should give you an idea on how to deform an object:



TheComet

Mugen Wizardry
User Banned
Posted: 1st Aug 2010 18:38
thanks.

but by waves, i meant waves that you see at the beach

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 2nd Aug 2010 13:13
waves you see at the beach = not rolling waves

uhh... for like, legit accurate 3d waves the best practical solution would be an animated 3d model. Actually, the best solution isn't to have 3d stuff, but just animated textures.


Is't life, I ask, is't even prudence, to bore thyself and bore thy students?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Aug 2010 17:58
Goto www.evolved-software.com for "The Best" ocean shader out there. You'll need a impressive PC to run it in a game though...

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2010 19:43
Quote: "but by waves, i meant waves that you see at the beach"


Don't expect to be spoon fed. You'll have to modify the code or write new code to get the desired effect you wish for. For example, the closer the wave gets to the edge, the more you offset the vertices at the top of the wave towards the shore to make the wave break.

TheComet

Login to post a reply

Server time is: 2026-07-25 17:05:43
Your offset time is: 2026-07-25 17:05:43