Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Making textures move...? #91058
09/22/06 08:23
09/22/06 08:23
Joined: Apr 2006
Posts: 36
P
pwy Offline OP
Newbie
pwy  Offline OP
Newbie
P

Joined: Apr 2006
Posts: 36
What I am trying to do is make the water effect you see in games like Tomb Raider, etc--where the water texture slides along the surface in one direction. I've looked into HLSL and what not, but I don't think that's how to do it. I'm totally confused about how to approach this.

Is there a way to just simply animate the texture on a block or entitiy in one direction using C-Script.

A point in the right direction would be awesome.

Thanks.

Re: Making textures move...? [Re: pwy] #91059
09/22/06 08:24
09/22/06 08:24
Joined: Apr 2006
Posts: 36
P
pwy Offline OP
Newbie
pwy  Offline OP
Newbie
P

Joined: Apr 2006
Posts: 36
Oh, and I am a newbie with the Commercial version of Gamestudio.
=)

Re: Making textures move...? [Re: pwy] #91060
09/22/06 08:34
09/22/06 08:34
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Hey, there are lot of resources in the forum and AUM Magazine, its a good idea do some searches in the forum before posting.
If you have 3DGS take a look on water room in the techdemo, but there are others that i dont remember in the moment.
You have to handle with textures offset u,v...

Re: Making textures move...? [Re: demiGod] #91061
09/22/06 08:39
09/22/06 08:39
Joined: Apr 2006
Posts: 36
P
pwy Offline OP
Newbie
pwy  Offline OP
Newbie
P

Joined: Apr 2006
Posts: 36
I did do quite a bit of searching, but I am probably searching for the wrong thing. But, I will also look again in the AUM to see if there is anything...and "Water Room" in the tech demo. Gotcha. Thanks demiGod.

Re: Making textures move...? [Re: pwy] #91062
09/22/06 08:44
09/22/06 08:44
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
The simplest way is shifting entity's u,v :

my.u += or -= any value * time_step;
my.v += or -= any value * time_step;

They were discontinued for model on the next update
but it still work for sprite.

Re: Making textures move...? [Re: pwy] #91063
09/22/06 08:46
09/22/06 08:46
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
In the AU Resources link on main page you have, for example, the Outdoor Demo by lennart, in Fall 2005 contest entry, where you can find a good example on that

Re: Making textures move...? [Re: demiGod] #91064
09/22/06 09:10
09/22/06 09:10
Joined: Apr 2006
Posts: 36
P
pwy Offline OP
Newbie
pwy  Offline OP
Newbie
P

Joined: Apr 2006
Posts: 36
awesome, demi and vlau. i just downloaded a couple AUM's that might help too. thanks again.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1