Jump to content
Tuts 4 You

Nice About Effect


FudoWarez

Recommended Posts

Ahh, I have been looking for this exact effect for awhile! Many thanks! Time to go check out the source. Thanks again!

Link to comment

Hi

I have this First see from Generic ExeStealth Unpacker v1.1 from cobans coded 2004
/>http://www.cobans.net/files/download.php?a=exes

Link to comment

The effect exists from the "olden" days and is called "metaballs".


/>http://en.wikipedia.org/wiki/Metaballs
/>http://www.niksula.cs.hut.fi/~hkankaan/Homepages/metaballs.html

Link to comment
  • 1 month later...

Hi Fudowarez,

Very nice effect. I liked it.

What program did you use to create the "music.asm" file?

If that program is written in asm, could you pls give us its source?

Thanks.

Link to comment
  • 2 months later...
  • 4 years later...
  • 3 weeks later...

Someone able to port this to C# / C++ ?

 

this is c89 (mostly) copy/pastable between all windows C or C++ compilers . attached mingw & VS2013 project/src/binaries. tried in c# but was too slow.

credit to fudo for background effect, his code (fixed some bugs) + original metaballs algo author

 

Metaballs.zip

Edited by simple
  • Like 1
Link to comment
  • 4 weeks later...
        
        public static int RGB(int Red, int Green, int Blue)
        {
            // these 3 checks are useless
            // 300 & -2147483648 = 0 . 300 is invalid value
            if ((Red & -2147483648) != 0)
                throw new Exception("Invalid ColorValue : Red");
 
            if ((Green & -2147483648) != 0)
                throw new Exception("Invalid ColorValue : Green");
 
            if ((Blue & -2147483648) != 0)
                throw new Exception("Invalid ColorValue : Blue");             // these 3 checks are redundant - this is already checked by winapi inside the .dll
            if (Red > 255)
                Red = 255;
 
            if (Green > 255)
                Green = 255;
 
            if (Blue > 255)
                Blue = 255;
           
            // slowest possible way
            return (Blue * 65536 + Green * 256 + Red);
        }
 

 


Can be summed as...


 


        public static int RGB(byte Red, byte Green, byte Blue)
        {
            return (int)( Red | (Green << 8) | (Blue << 16) );
        }

  • Like 2
Link to comment
  • 2 months later...

 

Can be summed as...


        public static int RGB(byte Red, byte Green, byte Blue)

        {

            return (int)( Red | (Green << 8) | (Blue << 16) );

        }

 

 

:D

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...