Page 1 of 1

Water Frag/Vert Files

Posted: Tue Feb 08, 2011 3:48 pm
by Flashbang232
In the frag/vert files, what if you used really small numbers to make the waves precise/detailed. (<=.09)
in other words, using decimals starting from the hundreths and less?


vec3 N = wave_grad( vec2( 10.101567231, 11.1 ), 0.1 * t, 0.0, tn_coord )


water_pass1.frag

Re: Water Frag/Vert Files

Posted: Tue Feb 08, 2011 7:43 pm
by zuzuf
This is possible. However these constants were generated by a program (basically it's a random set of parameters which produced visually good results) in order to produce complex patterns. If you want to add details, it'll have a cost and it's not easy to get a convincing set of parameters. If you want more details I suggest you try the GPU simulated water which simulates much more waves :).

Re: Water Frag/Vert Files

Posted: Wed Feb 09, 2011 9:13 am
by Balthazar
zuzuf wrote:This is possible. However these constants were generated by a program (basically it's a random set of parameters which produced visually good results) in order to produce complex patterns. If you want to add details, it'll have a cost and it's not easy to get a convincing set of parameters. If you want more details I suggest you try the GPU simulated water which simulates much more waves :).
Recently i found that the ultimate water quality is... let`s sat.. perfect? Yeah, babay ) It`s really perfect )

Re: Water Frag/Vert Files

Posted: Wed Feb 09, 2011 1:18 pm
by Flashbang232
it'll have a cost and it's not easy to get a convincing set of parameters. If you want more details I suggest you try the GPU simulated water which simulates much more waves .
Rawr, i normally like to do stuff the hard way....... (but i sure will give it a try)
I mean sometimes i feel like hacking the totala.exe with notepad lol.

Also, ultimate water quality has those weird white lines, which is why i brought up this issue in the first place :P

Re: Water Frag/Vert Files

Posted: Wed Feb 09, 2011 1:21 pm
by Balthazar
Flashbang232 wrote:Also, ultimate water quality has those weird white lines, which is why i brought up this issue in the first place :P
The lines are not white anymore )

Re: Water Frag/Vert Files

Posted: Wed Feb 09, 2011 4:00 pm
by MattyWS
There are no lines anymore, but the coast goes slightly transparent all the way round all land, which is an amazing effect that blends the land with the water properly.

Re: Water Frag/Vert Files

Posted: Thu Feb 10, 2011 12:41 am
by Flashbang232
Yeah, i took a closer look at your commander pic on tau.
Well, the last i can say on that is i think the coast should "fade" out of view when underwater, (using a script for visual effect ?), instead of just stopping at a certain point underwater.

If I know which files control all visual graphics i can probably learn the coding with experimentation and what little readable words are in there.....
Its how i learned to create ta weapons, fbi files, build menus, guis, and corpses lol.

Re: Water Frag/Vert Files

Posted: Thu Feb 10, 2011 9:25 am
by zuzuf
The final rendering pass for GPU simulated water is done with the water_sim_reflec.frag/water_simu_fog.frag fragment programs.

Re: Water Frag/Vert Files

Posted: Thu Feb 10, 2011 3:39 pm
by Flashbang232
Fragment programs? (Where to get? :0)
Also, awesome!!!!!! Ta3d may be just as easy to mod as ta is! :D




No it isnt, but meh....

to get features "white" for sh*ts and giggles go to ta3d\shaders\3doshadow.frag(and vert) and change every "2d" you see to "3d". :(