Page 1 of 1

Altering direction of waveset

PostPosted: Sun Jun 29, 2008 10:09 pm
by ardent red
My age uses wavesets to simulate a river flowing towards a waterfall. It looks and renders fine, but the ripples are heading towards one wall of the canyon rather than towards the waterfall. I had a look at the tutorial in the wiki, but the information doesn't seem to be there, and I can't work out what variables effect what in the AlcScript down the bottom. Is there a way to change the direction of the current using AlcScript, or will I have to edit the waveset mesh?

Thanks,
ardent red

EDIT: Oh, I have another little question that doesn't really need its own thread: how could I change where the Y axis points without rotating the object? I'm trying to make a bench, and I cannot get the Y axis to point away from the bench without rotating the object.

Re: Altering direction of waveset

PostPosted: Mon Jun 30, 2008 12:05 am
by Trylon
ardent red wrote:EDIT: Oh, I have another little question that doesn't really need its own thread: how could I change where the Y axis points without rotating the object? I'm trying to make a bench, and I cannot get the Y axis to point away from the bench without rotating the object.


First, in object mode, rotate the object, so that the Y axis points in the right direction.
Next, go into edit mode (TAB-KEY), select all vertices (A-KEY), and rotate the mesh back to the right position.

Re: Altering direction of waveset

PostPosted: Mon Jun 30, 2008 2:49 am
by Lontahv
My age uses wavesets to simulate a river flowing towards a waterfall. It looks and renders fine, but the ripples are heading towards one wall of the canyon rather than towards the waterfall. I had a look at the tutorial in the wiki, but the information doesn't seem to be there, and I can't work out what variables effect what in the AlcScript down the bottom. Is there a way to change the direction of the current using AlcScript, or will I have to edit the waveset mesh?


Ok, you've got to use wind vectors.

*Me checks if they're implemented into AlcScript*

Uhhh. :shock: AHRG!

They're not in the list of AlcScript properties. Let me see if they're actually programmed in.

Ok... they're not programmed into the AlcScript so, the only way to change it would be to change the pyprp file.

This is bad. :o

You may want to put this on hold until we get this fixed. :?

EDIT: Note to pyprp-devs; I've added the var (empty controlled) in my svn. Note to everyone else: Do not attempt to use the contents of my svn. :P
EDIT2: Large numbers are acting strangely. The feature I've added to my svn has large flaws, don't merge right away. ;)

~Lontahv

Re: Altering direction of waveset

PostPosted: Mon Jun 30, 2008 4:10 am
by D'Lanor
Lontahv wrote:Ok, you've got to use wind vectors.

*Me checks if they're implemented into AlcScript*

Uhhh. :shock: AHRG!

They're not in the list of AlcScript properties. Let me see if they're actually programmed in.

Ok... they're not programmed into the AlcScript so, the only way to change it would be to change the pyprp file.

Yeah, that is what I ended up doing.

I am not sure about the proposed method of using the coordinates of an empy object for the whole age though. Wind directions in real life are not consistent either. They can be quite different in the vicinity of large structures. And how about water streaming through canals or tunnels? IMO this must be configurable for individual wavesets.

Re: Altering direction of waveset

PostPosted: Mon Jun 30, 2008 4:42 am
by Lontahv
D'Lanor, the way I'm doing it is to ref the wind you want in the waveset script. :)

~Lontahv

Re: Altering direction of waveset

PostPosted: Mon Jun 30, 2008 4:50 am
by D'Lanor
Cool 8-) , I hope your solution will be implemented into the 2.0 final then.