• Welcome to Dark Bit Factory & Gravity.
 

Simple 2 Hour Water Effect

Started by ferris, June 12, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Shockwave

QuoteShockwave, are there limits to how many lines can be put inside the code tags

Shouldn't be any limits like that.
Shockwave ^ Codigos
Challenge Trophies Won:

dmitrinove

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.


hellfire

The screen-saver version is a little bit slow on my 1920x1080 desktop.
Challenge Trophies Won:

Jim

Runs nice on my netbook, good fx!

Jim
Challenge Trophies Won:

Shockwave

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.
Shockwave ^ Codigos
Challenge Trophies Won:

dmitrinove

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

Clyde

The liquid challenge is the current themed dbf competition.

very impressive that dude  :D
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

gorgh

#28
impressive, I'm wondering if its possible to simplify it so it could be run on 8 bit machine

ferris

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 :) .
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won: