VideoHelp Forum
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 34 of 34
Thread
  1. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Here's a nice Political Truth Meter the networks can use whenever a politician is speaking on camera. It was done in AviUtl just for fun:
    Image Attached Files
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  2. Originally Posted by jagabo View Post
    Some fun with sin and cos avisynth animations...

    Here's the function for the bouncing character:

    Code:
    function Bounce(clip vid, clip overlay, clip mask, int x, int y, int angle, int amplitude)
    {
       radians = float(angle) / (360.0 / PI / 2.0)
       yoff = sin(radians) * float(amplitude)
       yoff < 0 \
        ? Overlay(vid, overlay, x+angle, y + int(yoff), mask) \
        : Overlay(vid, overlay, x+angle, y - int(yoff), mask)
    }
    
    # call with:
    
    Animate(0, 360, "Bounce",\
       last, dog, mask, -130, 380, 0, 100,\
       last, dog, mask, -130, 380, 640, 100)
    great! excellent! magnificent! superb! splendid! awesome! - Thx jagabo - You've made my day!
    Quote Quote  
  3. Here's the code to move the overlay in a circle:

    Code:
    function Circle(clip vid, clip overlay, clip mask, int x, int y, int angle, int radius)
    {
       radians = float(angle) / (360.0 / PI / 2.0)
       xoff = sin(radians) * float(radius)
       yoff = cos(radians) * float(radius)
       Overlay(vid, overlay, x+int(xoff), y+int(yoff), mask)
    }
    Quote Quote  
  4. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Having fun with my current favorite Politician:
    Image Attached Files
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!