Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: ferris on June 12, 2009

Title: Simple 2 Hour Water Effect
Post by: ferris on June 12, 2009
My buddy Zach was playing with a water effect on his iPhone, and dared me to do a better one :P

...so I did :D in about 2 hours :P

Uses tinyptc_ext by rbz and all source is included.

Enjoy!
Title: Re: Simple 2 Hour Water Effect
Post by: slippy on June 12, 2009
Woow ... that effect looks really nice ...

K++ and thanks for sharing the source ...

Cheers,
SLiPPY
Title: Re: Simple 2 Hour Water Effect
Post by: ferris on June 12, 2009
Thanks :D Greatly appreciated :)
Title: Re: Simple 2 Hour Water Effect
Post by: zawran on June 12, 2009
Looks really good.
Title: Re: Simple 2 Hour Water Effect
Post by: ferris on June 12, 2009
Thanks :D
Title: Re: Simple 2 Hour Water Effect
Post by: Shockwave on June 12, 2009
That works so nicely, I love playing with it.

Have a karma boost, posting the effect and the source is very cool af you and appreciated.
Title: Re: Simple 2 Hour Water Effect
Post by: Jim on June 12, 2009
Very nice indeed!

Jim
Title: Re: Simple 2 Hour Water Effect
Post by: rdc on June 13, 2009
Awesome.
Title: Re: Simple 2 Hour Water Effect
Post by: benny! on June 13, 2009
That's definately a good one. Respect!
Title: Re: Simple 2 Hour Water Effect
Post by: mind on June 13, 2009
not too impressed with the framerate (horribly slow on my dual core 2.4ghz) but its very eye-pleasing :)
Title: Re: Simple 2 Hour Water Effect
Post by: Prodigy on September 14, 2009
pls reupload,attachment not found..
Title: Re: Simple 2 Hour Water Effect
Post by: Jim on September 14, 2009
Attachment fixed!
Title: Re: Simple 2 Hour Water Effect
Post by: zawran on September 14, 2009
Looks pretty good :)
Title: Re: Simple 2 Hour Water Effect
Post by: Dr.Death on September 14, 2009
Amazing m8  :inspired:
Title: Re: Simple 2 Hour Water Effect
Post by: ferris on September 16, 2009
Thanks guys :) K++ to Jim too for restoring the upload
Title: Re: Simple 2 Hour Water Effect
Post by: TinDragon on September 17, 2009
Nice effect, I think tetra did a similiar one in blitz a few years back but I dont think it was a smooth or fast at that sort of rez.
Title: Re: Simple 2 Hour Water Effect
Post by: Way.net on September 17, 2009
I love water effects so this is right up my street.Brilliant stuff Ferris :clap:
Title: Re: Simple 2 Hour Water Effect
Post by: Shockwave on October 11, 2009
Test
Title: Re: Simple 2 Hour Water Effect
Post by: va!n on October 11, 2009
Wow! Absolutly brilliant! Possible the best version of this effect i have ever seen! Great Work!
Title: Re: Simple 2 Hour Water Effect
Post by: Merick on October 11, 2009
*edit*

Shockwave, are there limits to how many lines can be put inside the code tags? The trouble I'm having seems to be from trying to post 155 lines of code inside the tags...
Title: Re: Simple 2 Hour Water Effect
Post by: Shockwave on October 11, 2009
Quote
Shockwave, are there limits to how many lines can be put inside the code tags

Shouldn't be any limits like that.
Title: Re: Simple 2 Hour Water Effect
Post by: dmitrinove on March 04, 2010
Hello,
  after see  your cool effect I have  tryed to do some experiment, in attach there is my work.
  the code is a bit messed-up due to differents algorithm used, anybody can play with #define and variables to try different solution.
  I truly appreciate any feedback or suggestion to improve my code.
  All code is pure C + win32 sdk without directx, c runtime library or any other dependency, so it's just 6kb exe without any dependency.
  Based on this code I have also build a little windows's screen-saver.
Title: Re: Simple 2 Hour Water Effect
Post by: Hotshot on March 05, 2010
very good :)
Title: Re: Simple 2 Hour Water Effect
Post by: hellfire on March 05, 2010
The screen-saver version is a little bit slow on my 1920x1080 desktop.
Title: Re: Simple 2 Hour Water Effect
Post by: Jim on March 05, 2010
Runs nice on my netbook, good fx!

Jim
Title: Re: Simple 2 Hour Water Effect
Post by: Shockwave on March 07, 2010
I really like that.
you should enter it into the liquid challenge, it's really good.
It runs nice and smooth here (admittedly I don't have the resolution Hellfire does), really good though.
Title: Re: Simple 2 Hour Water Effect
Post by: dmitrinove on March 07, 2010
Thanks to everybody,

@ Shockwave: I don't know of none liquid challenge, can You give me more info?
Have You tried the fluide.c code? If You change the BLUR_EFFECT, WATER_EFFECT, COLOR_DEPTH_EFFECT and  the variable renderQuality You can get different result, what do You prefer?

@ hellfire: 1920x1080 is really an huge resolution for a not hw accelerate effect, I think there isn't a solution (other to search for a better coder than me :-(), but anyway i see in the tinyPCT they have used the function StretchDIBits() instead of the function StretchBlt().
On my pc i don't see any difference performance with StretchDIBits(), but tomorrow I post a new version with StretchDIBits() to test it on your computer, if You want.

For everybody, why tinyPCT had used the StretchDIBits() and why for the vfw version they have used the LoadLibrary() instead of the classic vfw.lib import library? Is on some windows compiler  unavailable the vfw.lib library?

Thanks to everybody
Title: Re: Simple 2 Hour Water Effect
Post by: Clyde on March 08, 2010
The liquid challenge (http://www.dbfinteractive.com/forum/index.php/topic,4642.0.html) is the current themed dbf competition.

very impressive that dude  :D
Title: Re: Simple 2 Hour Water Effect
Post by: gorgh on June 14, 2011
impressive, I'm wondering if its possible to simplify it so it could be run on 8 bit machine
Title: Re: Simple 2 Hour Water Effect
Post by: ferris on June 15, 2011
Actually, I think the C64 demo Soiled Legacy by Resource did it on the second disk. The water doesn't refract or smooth, but it's not chunky at least :) .