Extensions:2.4/Plugins/Texture/Water

提供: wiki
移動先: 案内検索
Water
Generate many cool water droplet/ripple/wave effects as a texture. It can be animated too.
UI location Group: Materials
Version 0.24 Author(s) Donn Ingle
Blender Works on 2.45. Has worked for years, so older versions should be ok. License GPL


Executable information
File name


Links WaterPlugin


Water Texture Plugin

Sometimes "old school" is just what you need. If you don't have the time to render fluids and you just need a quick effect, this might help you.

The inspiration for this plugin came from the old 80's computer graphics demos and it still looks darn good today. It's a very convincing illusion of ripples on water and can be tweaked to produce all kinds of different effects.

Thanks to those who helped me code it, compile it and test it.

References:

http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
http://www.libsdl.org/projects/water/ (broken link)
Credit to: Scott Scriven.
Eeshlo (interpolation and noise and tips: MAJOR help!)
Lguillaume (elysiun/Blender Art forums) - for help compiling DLL's
What's beneath the surface?

Files

I hope these files translate across the wiki. If there is any problem, please contact me on d o n n dot i n g l e at g m a i l dot c o m

Source

The instructions for how to compile this are noted further on.

http://wiki.blender.org/uploads/f/fe/Water0.24_source.zip

Gnu/Linux binary

Tested on Kubuntu since 2004. Recently tested on Kubuntu 7.10 and it works without re-compilation.

http://wiki.blender.org/uploads/1/14/Water0.24.Linux.so

Windows binary

Untested recently, but known to work in the past.

http://wiki.blender.org/uploads/d/df/Water0.24dll.zip (It's in a zip)

How to

I won't format this how-to; here it is as a text file:

http://wiki.blender.org/uploads/4/44/Water_plugin_howto.txt

A rather dull looking Roman Bath.

Compiling under Gnu/Linux

I hate to confess this, but I did not make notes and I've totally forgotten the details. You need gcc and some odds from Blender (the plugin sources). I seem to recall a special makefile that did all the hard work. Please read the docs, that's all I did to develop the whole thing.

Compiling under Windows

Compilation of water plugin By L.guillaume.

Get the Lcc compiler
Lcc is a free compiler for windows, the url of the site is http://www.cs.virginia.edu/~lcc-win32/ and the direct link for the installer is ftp://ftp.cs.virginia.edu/pub/lcc-win32/lccwin32.exe
The includes
Get all the includes of blender's plugins. The include file can be found on the archive: http://www-users.cs.umn.edu/~mein/blender/plugins/plugins_src.zip
Beginning
Now, if you have installed LCC in c:\lcc for example, create a new directory called Blender inside that and unzip plugins_src.zip into it.
NB: When you unzip it, it will create a folder called 'plugins'. You want all the stuff inside that folder to be inside the 'blender' folder instead. So, cut and paste as required and remove the now empty 'plugin' folder.
To successfully compile plugins, I remove a line in the tex.def file: the last line hnoise causes an error when compiling.
Compilation
In a command prompt, go into your c:\lcc\blender directory. Put the source-code of the water plugin in the same directory of the include (i.e. c:\lcc\blender) so you don't have to type the include directory for the compilation.
Now, normally, you are in c:\lcc\blender on the command prompt.
At the prompt type:
..\bin\lcc water0.24.c 
(or whatever the version)
The warning is not important, if you get an error, you can't do the next step.If you get an error about _hnoise then remove the line hnoise in the tex.def file
At the prompt type:
..\bin\lcclnk -dll -nounderscores water0.23.obj tex.def

Now, you should have a file called water0.23.dll and, for me, it works in Blender!


Support