PDA

View Full Version : waves



cricricri
04-28-2011, 03:25 AM
hi,
I have a floor with a texture that simulates the sea and I should create the waves, how can I do?
thanks

BionicBytes
04-28-2011, 07:16 AM
You could tesselate the ocean floor and then in real time alter the heights of each vertex in a sine wave like fashion.
Depending upon the number of verticies you use this could be quite acceptable with any rendering technique.
The best thing to do is try it and see what performance you get rather than worrying about how to optimise it before you have even tested the basics.

cricricri
04-28-2011, 09:46 AM
Thank you for responding.
I used to create the floor, "glutsolidcube" which should already be tessellated is correct? so what should I do now?
thanks again