|
-
Sep 21st, 2006, 04:20 AM
#1
Thread Starter
Lively Member
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...
-
Sep 21st, 2006, 10:05 PM
#2
Member
Re: Liquify effect
You should search for DirectX terms I guess.
-
Sep 21st, 2006, 10:31 PM
#3
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:
Case EFFECT_RIPPLE:
Dim Ripples() As Long, RippleVal As String
Dim Temp As Long
ReDim Ripples(1 To PicInfo.bmWidth)
RippleVal = CStr(Offset) 'InputBox("Input ripple intensity", "Ripple Effect", "2")
If (Val(RippleVal) <= 0) Then Exit Function
For i = 1 To PicInfo.bmWidth
Temp = i + Sin(i / Val(RippleVal)) * Val(RippleVal)
If Temp > PicInfo.bmWidth Then
Ripples(i) = PicInfo.bmWidth
ElseIf Temp < 1 Then
Ripples(i) = 1
Else
Ripples(i) = Temp
End If
Next i
Dim rip As Long
For i = 1 To PicInfo.bmWidth
For j = 1 To PicInfo.bmHeight
r = ImgData(1, Ripples(i), j)
g = ImgData(2, Ripples(i), j)
b = ImgData(3, Ripples(i), j)
ImgData(1, i, j) = r
ImgData(2, i, j) = g
ImgData(3, i, j) = b
Next j
Next i
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Sep 22nd, 2006, 02:13 AM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|