Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (3run, AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip), 605 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Generating waves in water #40928
02/13/05 03:19
02/13/05 03:19
Joined: May 2004
Posts: 66
Brazil
key_46 Offline OP
Junior Member
key_46  Offline OP
Junior Member

Joined: May 2004
Posts: 66
Brazil
i am trying to create a Water shader that creates waves in a specified vector, here is my idea image:



ADPA Ataque Dos Pôneis Assassinos! Atack Of Killer Ponys! ADPA(R) all rights reserved
Re: Generating waves in water [Re: key_46] #40929
02/13/05 03:30
02/13/05 03:30
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
i suppose this can be done by passing a position vector to a material skill. As for actually creating the ripple, the best way i can think of is to have an enviromental bump map, and another bump map overlayed on it that animates and moves according to the position vector. I dont have code for this but i assume you could modify one of the existing shaders with a lot of work.

Re: Generating waves in water [Re: key_46] #40930
02/13/05 22:16
02/13/05 22:16
Joined: May 2004
Posts: 66
Brazil
key_46 Offline OP
Junior Member
key_46  Offline OP
Junior Member

Joined: May 2004
Posts: 66
Brazil
but i think the best way is give the position and a other skill with the wave force and let the shader compute the normals and dispersion


ADPA Ataque Dos Pôneis Assassinos! Atack Of Killer Ponys! ADPA(R) all rights reserved
Re: Generating waves in water [Re: key_46] #40931
02/14/05 07:08
02/14/05 07:08
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
I seriously doubt that would be a fast way, to generate a normalmap on the fly.

Re: Generating waves in water [Re: key_46] #40932
02/14/05 13:17
02/14/05 13:17
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Is this what you mean?


Re: Generating waves in water [Re: XNASorcerer] #40933
02/14/05 13:42
02/14/05 13:42
Joined: Nov 2004
Posts: 56
S
shock Offline
Junior Member
shock  Offline
Junior Member
S

Joined: Nov 2004
Posts: 56
thiat effect looks cool. can u explain what exactly r u doing for that effect.

Re: Generating waves in water [Re: key_46] #40934
02/14/05 17:21
02/14/05 17:21
Joined: May 2004
Posts: 66
Brazil
key_46 Offline OP
Junior Member
key_46  Offline OP
Junior Member

Joined: May 2004
Posts: 66
Brazil
uau! this is realy what i need!


ADPA Ataque Dos Pôneis Assassinos! Atack Of Killer Ponys! ADPA(R) all rights reserved
Re: Generating waves in water [Re: XNASorcerer] #40935
02/15/05 17:31
02/15/05 17:31
Joined: May 2004
Posts: 66
Brazil
key_46 Offline OP
Junior Member
key_46  Offline OP
Junior Member

Joined: May 2004
Posts: 66
Brazil
Can You Release the CODE?


ADPA Ataque Dos Pôneis Assassinos! Atack Of Killer Ponys! ADPA(R) all rights reserved
Re: Generating waves in water [Re: key_46] #40936
02/16/05 06:51
02/16/05 06:51
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
This is not my code. I am only trying to help you to explain what you want.
the screenshot is from a game of plastation 2.

Re: Generating waves in water [Re: key_46] #40937
02/17/05 13:40
02/17/05 13:40
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Maybe you can use the code from the water sample from OGRE.
http://www.ogre3d.org/



Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

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