Results 1 to 4 of 4

Thread: Liquify effect

  1. #1

    Thread Starter
    Lively Member poggo's Avatar
    Join Date
    Sep 2005
    Posts
    90

    Liquify effect

    I'm searching for a liquify/dripping effect code.. i'm planning to use it on icons (does anybody know UberIcon ?) but after googling i couldn't find anything... does anyone know how to achieve it? Thanks.. it would be good also in VB6/C/C++ code i think...
    Currently using VB.NET 2005...

  2. #2
    Member
    Join Date
    May 2006
    Location
    Perú
    Posts
    52

    Re: Liquify effect

    You should search for DirectX terms I guess.

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Liquify effect

    I wrote this for our Photoshop clone a while back. Its just a ripple effect...you should be able to get the jist of it if you're attempting something like this
    VB Code:
    1. Case EFFECT_RIPPLE:
    2.     Dim Ripples() As Long, RippleVal As String
    3.     Dim Temp As Long
    4.     ReDim Ripples(1 To PicInfo.bmWidth)
    5.     RippleVal = CStr(Offset) 'InputBox("Input ripple intensity", "Ripple Effect", "2")
    6.     If (Val(RippleVal) <= 0) Then Exit Function
    7.     For i = 1 To PicInfo.bmWidth
    8.         Temp = i + Sin(i / Val(RippleVal)) * Val(RippleVal)
    9.         If Temp > PicInfo.bmWidth Then
    10.             Ripples(i) = PicInfo.bmWidth
    11.         ElseIf Temp < 1 Then
    12.             Ripples(i) = 1
    13.         Else
    14.             Ripples(i) = Temp
    15.         End If
    16.     Next i
    17.     Dim rip As Long
    18.     For i = 1 To PicInfo.bmWidth
    19.         For j = 1 To PicInfo.bmHeight
    20.             r = ImgData(1, Ripples(i), j)
    21.             g = ImgData(2, Ripples(i), j)
    22.             b = ImgData(3, Ripples(i), j)
    23.            
    24.             ImgData(1, i, j) = r
    25.             ImgData(2, i, j) = g
    26.             ImgData(3, i, j) = b
    27.         Next j
    28.     Next i
    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4

    Thread Starter
    Lively Member poggo's Avatar
    Join Date
    Sep 2005
    Posts
    90

    Re: Liquify effect

    Thank you guys... I'll check it out as soon as possible!
    Currently using VB.NET 2005...

Posting Permissions

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



Click Here to Expand Forum to Full Width