VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Distortion Field

by Jotaf98 (9 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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 ;)

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).
Assumes
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.

Rate Distortion Field

Download Distortion Field

Download Distortion Field (28 KB)

Distortion Field Comments

No comments have been posted about Distortion Field. Why not be the first to post a comment about Distortion Field.

Post your comment

Subject:
Message:
0/1000 characters