Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started 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!
-
Woow ... that effect looks really nice ...
K++ and thanks for sharing the source ...
Cheers,
SLiPPY
-
Thanks :D Greatly appreciated :)
-
Looks really good.
-
Thanks :D
-
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.
-
Very nice indeed!
Jim
-
Awesome.
-
That's definately a good one. Respect!
-
not too impressed with the framerate (horribly slow on my dual core 2.4ghz) but its very eye-pleasing :)
-
pls reupload,attachment not found..
-
Attachment fixed!
-
Looks pretty good :)
-
Amazing m8 :inspired:
-
Thanks guys :) K++ to Jim too for restoring the upload
-
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.
-
I love water effects so this is right up my street.Brilliant stuff Ferris :clap:
-
Test
-
Wow! Absolutly brilliant! Possible the best version of this effect i have ever seen! Great Work!
-
*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...
-
Shockwave, are there limits to how many lines can be put inside the code tags
Shouldn't be any limits like that.
-
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.
-
very good :)
-
The screen-saver version is a little bit slow on my 1920x1080 desktop.
-
Runs nice on my netbook, good fx!
Jim
-
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.
-
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
-
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
-
impressive, I'm wondering if its possible to simplify it so it could be run on 8 bit machine
-
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 :) .