Author Topic: WaterFun + Source (Blitz 2d)[BB2D]  (Read 4917 times)

0 Members and 1 Guest are viewing this topic.

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
WaterFun + Source (Blitz 2d)[BB2D]
« on: August 25, 2006 »
Some of you mite remember this effect I made a long time ago on Clydes forum. Having recently seen Blitz Amateurs water sim it reminded me of mine.

Named WaterFun, it was a 640x480 water effect made with BlitzBasic that ran at a fairly decent speed. I had never released the source so I will do so now :)

To sum up how it works, the wave map is a low detail, while the texture is high detail. The low detail map I use to calculate texture coord offsets, then i use a textured polygon fill routine to render it onto the screen, giving the effect of a highdetail wave.

Enjoy

p.s Although this will compile fine with BlitzBasic, Blitz3D is the better compiler to use.

[edit ~ Blitzversion added to topic title]

[edit ~ Source code attached]
« Last Edit: July 21, 2007 by Shockwave »
Challenge Trophies Won:

Offline Dad1916

  • Atari ST
  • ***
  • Posts: 112
  • Karma: 3
    • View Profile
Re: WaterFun + Source
« Reply #1 on: August 25, 2006 »
Really nice, thanks for sharing. I must try porting it to BlitzMax shortly.

Offline zparticle

  • Atari ST
  • ***
  • Posts: 168
  • Karma: 11
    • View Profile
    • ScottShaver2000
Re: WaterFun + Source
« Reply #2 on: August 28, 2006 »
Very cool

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: WaterFun + Source
« Reply #3 on: August 28, 2006 »
You should definately use this somehow Daf. It's too good to waste.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: WaterFun + Source
« Reply #4 on: August 29, 2006 »
Whooa!!! That's cool!!!

FB version!!!!

I don't have Bmax. :*(
Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: WaterFun + Source
« Reply #5 on: August 29, 2006 »
Glad you like it guys, Dont worry Shock, I will be using it in my first ever real production :) its going to be big.

FB version uploaded Rel, It was one of the first thins I ever wrote in FB, and last lol, thats how well I know FB  :whack:
 
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: WaterFun + Source
« Reply #6 on: August 30, 2006 »
Great water effect in 2D, really cool !
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: WaterFun + Source
« Reply #7 on: October 03, 2006 »
Very nice smooth effect.
Challenge Trophies Won: