Distortion Field
This function basically mixes all the pixels in an area of an image, defined by a mask image. The result is much like the invisibility effect used in the movie "The Predator", very cool if you want a small, quick function for that effect in your games! (It looks like the Predator is made of water or something)
The image doesn't quite reproduce the effect, I just used PrintScreen 3 times, that's all. It has about 100 frames per second in the real code ;)
Original Author: Jotaf98
Inputs
All you need to give is an image, the mask image, the coordinates where the effect will appear, and the height/width of the image (basically ScaleHeight and ScaleWidth of the form or picturebox).
Assumptions
You don't need to know anything at all. Just add the .bas file and call the function.
Side Effects
If you use this function too much (large mask image or used many times), it may slow down because of the calculations it must do.
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 165 times
Categories
Attachments
CODE_UPLOAD78217152000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 33,662 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.