Jump to content

Water Effects


wakillon
 Share

Recommended Posts

About water, some other examples here:

http://www.escapemotions.com/experiments/fluid_water_3/

http://grantkot.com/MPM/Liquid.html >_<

I don't know how do they program such this natural simulations?

 

May be a good wave equation in three dimensions, a bit of knowledge of water properties and a complicated algorithm for some water effects !  :P

http://29a.ch/sandbox/2010/water/

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • 3 weeks later...

Hey wakillon,

I was trying to apply the water effect on a resizable picture control in my GUI, i had a problem of course as the bmp is not create as a known control to me.

The control name is:

[CLASS:#32770; INSTANCE:1]

can i change the size of it? my Pic Control is resized as the window width.

thank you.

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Link to comment
Share on other sites

Hey wakillon,

I was trying to apply the water effect on a resizable picture control in my GUI, i had a problem of course as the bmp is not create as a known control to me.

The control name is:

[CLASS:#32770; INSTANCE:1]

can i change the size of it? my Pic Control is resized as the window width.

thank you.

 

you could use a GUIRegisterMsg ( $WM_SIZE, '_WM_SIZE' )  for detect resize 

and for each time size change, close waterblob & watereffect

with :

AdlibUnRegister ( '_WaterBlob' )

_FlattenWater ()

_DisableWater ()

; and relaunch water efffect with new values adapted to the new size

_EnableWater ( $sBmpFilePath, $hGui, new WaterRadius,  new WaterHeight, new Left, new Top )

_WaterBlob ()

AdlibRegister ( '_WaterBlob', 3000 )

:)

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • 3 weeks later...
  • Moderators

becky.

Welcome to the AutoIt forum. :)

If you are not happy with the script, then just do not run it - no-one is forcing you to do so. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

this is nice! but what about these cripted parts? seems a little suspicious...

 

Read the first post !

"All files are embeded in script with BinaryToAu3Kompressor."

See link in my signature  ;) 

becky.

Welcome to the AutoIt forum. :)

If you are not happy with the script, then just do not run it - no-one is forcing you to do so. ;)

M23

 

Hi Melba, nice to see you on my humble topic !  :bye:

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • Moderators

wakillon,

Bonjour, mon ami. Ca va? :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

becky.

Welcome to the AutoIt forum. :)

If you are not happy with the script, then just do not run it - no-one is forcing you to do so. ;)

M23

1. thanks! i'm a regular visitor of this forum :D but decided to make just now a new acc :)

2. it's not about that...maybe it sounded a little bit strengh but i was just wondering...why are there cripted parts? :D

Link to comment
Share on other sites

"All files are embeded in script with BinaryToAu3Kompressor."

See link in my signature  ;) 

ok, sorry then. but i was not doubting you, i was just curious. i know it sounded a bit har but...sorry again. i knew that viruses are cripted in base64 and that's why i asked :D. anyway, nice script. i'm trying to understand a part of it (i'm pretty new in Autoit), and i'm trying to change the pic, but nothing so far...

Link to comment
Share on other sites

wakillon,

Bonjour, mon ami. Ca va? :)

M23

 

Very well thank you !  :D

1. thanks! i'm a regular visitor of this forum :D but decided to make just now a new acc :)

2. it's not about that...maybe it sounded a little bit strengh but i was just wondering...why are there cripted parts? :D

 

The encryption used permit to embed external files in script, and to highly compress them !  :)

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • 6 months later...

Can i create Controls on water effect...............?

Edit::

Like InputBox, Labels Buttons...etc

Edited by Starstar

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Link to comment
Share on other sites

  • 4 years later...

Sorry for Digging out that old threat but i got a problem with the watereffect.au3

when i use small bmps like up to 600x500px its working well but with bigger ones the program freezes and exits, is there a way to fix it without changing the dll?

cant anyway cause i only got the binary source.

thank you!

Link to comment
Share on other sites

  • 3 years later...

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
 Share

×
×
  • Create New...