water tutorial needed

does anyone know of a good water tutorial with waves and buoys and stuff

Hi there here is a quick way of making some water not the best but here it is :

Create a new text file and paste this in it :

[quote=] import GameLogic
from math import *

Own = GameLogic.getCurrentController().getOwner()
Mesh = Own.getMesh()

len = Mesh.getVertexArrayLength(0)

IDC = Own.Indicator

berechne XY Positionen in der Matrix

xxx=Own.Feld/IDC
PX,PY = modf(xxx)
PX = PX*IDC+1
PY = PY

vertexindex=0
while vertexindex < len:
vertex = Mesh.getVertex(0,vertexindex)
uv=vertex.getUV()

uv[0] = uv[0]-(PX*1/IDC)+((PX+1)*1/IDC)

if PX == 1:
    uv[0] = uv[0]-1
    if PY &lt; IDC:
        uv[1] = uv[1]-((PY-1)*1/IDC)+(PY*1/IDC)
    else:
        uv[1] = uv[1]-((PY-1)*1/IDC)

vertex.setUV(uv)
vertexindex = vertexindex+1

Own.Feld=Own.Feld+1
if Own.Feld > pow(IDC,2): Own.Feld=1[/quote]

Then open Blender up and import it.
Add A New Plane.
Then go in The Buttons Window And Apply It To The Plane That You Just Made.

Make sure when you apply it the sensor is Always.
And make sure that in Controllers you have selected Python.
Then in script just type in the imported code’s name / Text

Make Sure That You Make The Face Of The Plane Additive Blend Mode.

And Then after doing all that above

Add 2 New Properties make sure they look like this so you wont get lost :stuck_out_tongue:

Del / Float / Name:Indicator / 50.000 /
Del / Float / Name:Feld / 1.000 /

And now you can re-Size your plane or whatever you want to it give it a new look ect…

Hope this helps :wink:

AND REMEMBER KEEP ON BLENDERING PEOPLE OF ELYSIUN !!! :cool:

One word:

http://www.cogfilms.com/index.html

OK, so it’s not exactly a word…

I thought he was taking about the game engine since it was posted in the game topic :stuck_out_tongue: Anyways Sorry for my other post. :frowning: might come ussfull to some other people so I will leave it :slight_smile:

Anyways
REMEMBER KEEP ON BLENDERING PEOPLE OF ELYSIUN !!! :cool:

actually i need that and a nongame engine one

Cogfilms.com is definitely the place for a non engine piece. Thanks to him I can create awsome water scenes that impress even myself.

Hey Death, what does your script do, animate the UV map?

Sorry I kinda forgot about this thread my script basicly just animate’s the plane. And the properties that you add control the speed of the planes texture movement. pretty simply script I use it for water cause I make the face of the plane additive blend mode. Then I just Sub Divide the plane a bit add an armiture to it and make waves ect… on it / Animate it.
I will make an example later right now I am at a friends house :stuck_out_tongue:

AND REMEMBER KEEP ON BLENDERING BLENDER ARTISTS !!! :cool:

http://www.slibe.com/fullimage/c8161a56-Sliber.jpg
nice script…

Jacco;

Hmmm… let me try the script on my friends pc 1 minute.
I will edit this post after trying it

Hmm… I will fix the problem later not right now lol but I know whats the problem.

Anyways

REMEMBER KEEP ON BLENDERING BLENDER ARTISTS !!!

the indents didn’t show up when you posted, it’s happened to me before. just add them where they’re supposed to go.

I Have Updated My Other Old Thread I Have Uplaoded The Water Example There If You Want And If You Dont Like that One I Think A Have Another .blend File Somwhere On That Thread With Another Example Of Water. :wink:

Here is the threads link :

http://blenderartists.org/forum/showthread.php?t=72838

And
Remeber keep on blendering blender artists !!! :cool:

i used the cog tutorial but i dont think i did it right because there are no white crests and the sky looks odd.
ID GIVE A FILE BUT IT KEEPS BEING CORRUPTED
anyone know what i did?
BTW if youre mad that i bumped this thread up i am sorry

Script didn’t work for me either. Same error :(.

hmmmm… Did you go to this thread here F1LT3R :

http://blenderartists.org/forum/showthread.php?t=72838

And downlaoded the zip file (The very last last .blend I posted there)
That one should work.

Dont try the sciprt I posted in this thread I kinda messed up on it :o.

If the zip example one dose not work then I am stomped.
(meaning I have no clue why its not working.)
But it should work. It works for me 100% with no errors :S

AND REMEMBER KEEP ON BLENDERING BLENDER ARTISTS !!! :cool: