Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, RealSerious3D, BrainSailor), 1,265 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shaders Lite - Water Causics ? #27987
05/26/04 09:32
05/26/04 09:32
Joined: Jul 2003
Posts: 1,563
B
blaaaaa Offline OP
Expert
blaaaaa  Offline OP
Expert
B

Joined: Jul 2003
Posts: 1,563
is there any way to display water caustics on terrain (like in aquanox) with shaders (only pixel or vertex shader if it has to be, i would like to run the game also on old machines or machines without ps&vs shaders)? i currently use 2 terrains, 1 terrain with the ground texture and one with caustic texture. the "caustic-terrain" above the first. that looks quite nice, but i have to use the same terrain twice, which brings me to an fps of min. 45 and max.80 fps ( 60 is Average). without these caustics i achieve framerates from 60-80 fps ( 70 is Average ). so there is a big performance loss on lower machines. is there any script to do such caustics or do i have to do it this way ?

Here is a screen of it with 2 terrains , one as caustic overlay:


since iam a shader n00b, i would be pleased if you would have an idea


Edit: Hier ist noch ein link zu dem quellcode von dem DolphinTween von der ATI Page wo genau dieser effekt drin vorkommt. leider weiss ich nicht wie man den code so "umwandelt" (bzw. umschreibt) das der auch bei 3DGS funktioniert, vielleicht kann ja einer mit ahnung sich das viech mal ansehen

DolphinTween.CPP

Re: Shaders Lite - Water Causics ? [Re: blaaaaa] #27988
05/26/04 10:39
05/26/04 10:39
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Use a multitexture effect (There are a couple here on the forums) with one layer as the regular terrain skin, then a layer over that with the caustic texture. Then blend them with an alpha channel. If you were really ambitious, you could make 2 caustic layers, and scroll them in opposite directions. With some effort you could get this effect to work without vrtex/pixel shaders.


--Eric
Re: Shaders Lite - Water Causics ? [Re: Nadester] #27989
05/26/04 10:52
05/26/04 10:52
Joined: Jul 2003
Posts: 1,563
B
blaaaaa Offline OP
Expert
blaaaaa  Offline OP
Expert
B

Joined: Jul 2003
Posts: 1,563
but how do i do that? cause iam a complete shader/material n00b or i leave the effect the way it is and change it in a few months when iam capable of programming material/shader effects ...

Re: Shaders Lite - Water Causics ? [Re: blaaaaa] #27990
05/26/04 10:58
05/26/04 10:58
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Well start off with grabbing SteamPipe's FFP multitexturer, no shaders required. Edit the textures so that the top 2 textures are water caustics, and the bottom is your actual terrain texture. Then edit the alpha channel accordingly. That shouldn't require any coding Then examine his code.. and research texture scrolling... and that should give you a pretty good start. Look at other effects as well to see how they achieve the movement.


--Eric
Re: Shaders Lite - Water Causics ? [Re: Nadester] #27991
05/26/04 11:29
05/26/04 11:29
Joined: Jul 2003
Posts: 1,563
B
blaaaaa Offline OP
Expert
blaaaaa  Offline OP
Expert
B

Joined: Jul 2003
Posts: 1,563
ok, thank you nadester you were a great help thats N#1 on my ToDo list for tomorrow, now ill upload a video and then i catch some sleep thx again ^^


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