VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Realistic Water Effect

by Reiner Rottmann (1 Submission)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

I found many interesting code snippets on vbcoders.com. And I think it is time to make a contribution to this great community.
Although there are already a few submissions available that simulate an water effect, they all seem not very realistic to me. This submission is an attempt to translate the original water effect directly to Visual Basic. Although this effect still needs some improvement on its own.
It calculates the spreadout and the damping of an simulated wave and renders the corresponding reflexions on the water. And so it looks like there is a water surface on top of the picturebox.
The sourcecode is still a work in progress and thus there are some limitations: a) the rendering speed needs to still improvement, b) the mousemove effect is still disabled due to the slow rendering and c) the effect is still not 100% correct. Vote if you think I would deserve it and please let me know your suggestions how to further improve this amazing effect...

Side Effects
The source code is still a work in progress. So the program may include some unknown bugs. Sometimes the program crashes due to an read error on some mem location.

Rate A Realistic Water Effect

Download A Realistic Water Effect

Download A Realistic Water Effect (24 KB)

A Realistic Water Effect Comments

No comments have been posted about A Realistic Water Effect. Why not be the first to post a comment about A Realistic Water Effect.

Post your comment

Subject:
Message:
0/1000 characters