Results 1 to 3 of 3

Thread: Fast Image Warping(with animated Demo) [vb5 & vb6]

  1. #1
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 08
    Location
    Chicago
    Posts
    864

    Fast Image Warping(with animated Demo) [vb5 & vb6]

    This is a super quick algorithm to warp images.
    There are 4 red dots, those are the handles - click and drag them to warp the image!!!

    The secret is plgblt being used to draw the scanlines.

    Overdraw is an antialiasing factor used for strecthing larger than the original image.

    When the left side scanline finishes lower that the right side the image is flipped .
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by technorobbo; Aug 7th, 2009 at 07:01 PM.
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

  2. #2
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 08
    Location
    Chicago
    Posts
    864

    Re: Fast Image Warp (image taffy) [vb5 & vb6]

    Fixed a bug that I injected into the routine when I tried to flip the image - I fixed that flip bug. Reposted fixed code.

    Current Oversample setting is 5, adjust as need - smaller images don't require large settings therefore can render faster.
    Last edited by technorobbo; Aug 7th, 2009 at 11:08 AM.
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

  3. #3
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 08
    Location
    Chicago
    Posts
    864

    Re: Fast Image Warp (image taffy) [vb5 & vb6]

    Here's an animated Demo to show the possiblities
    Attached Files Attached Files
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •