3Gs openGL es 2.0 demo

Discussion in 'Off-Topic Lounge' started by joni99, Oct 17, 2009.

  1. joni99

    joni99 Well-Known Member

    Dec 17, 2008
    101
    0
    0
  2. bomber

    bomber Well-Known Member

    Nov 9, 2008
    942
    1
    0
    You can also see it in Adrenaline Golf with additional reflection, although we had to reduce the wave effect to keep the game playable ;)
     
  3. NomaD

    NomaD Well-Known Member

    Jun 29, 2009
    1,506
    0
    36
    California
    that was so hot
     
  4. nuclearbit

    nuclearbit New Member

    Oct 25, 2009
    1
    0
    0
    Hi,
    Cool you like it.
    In fact it was only a few 100 lines of code to get this thing rendered on the iPhone.
    In the demo I use 4 sines on different amplitude and frequency to get the waves and a simple 512x512 bump map to render the small ripples, reflection is done with the opengl es 'reflect' and a skybox. Because I was in a hurry I did not render the skybox itself, just used a plain lightblue background.
    the ocean surface is a 128 x 128 (x2) triangle grid
    Currently I am working on a more realistic wave model to create surfable waves that actually break, based on the navier stokes equations. Not sure whether I will be able to calc & render the whole thing in real time, if not I will precalc the moving wave grid

    cheers to you all
    NB
     

Share This Page