Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
water shader (real-time reflections) #417316
02/11/13 14:42
02/11/13 14:42
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I wanted to ask, if there is a water shader around the forum? As I couldn't find anything myself.. The native one looks crap, with some strange reflection offsets.. I tried the older shade-c water and I loved it, but I got some troubles with it as well (some black lines, on the edges with level blocks and a black point, at the center of the water model, which becomes bigger on the distance). I need a translucent water shader with real-time reflections, and I would be really grateful if someone could point with a right link to it. I'm a shader noob, so no way for me to make it myself.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: water shader (real-time reflections) [Re: 3run] #417341
02/11/13 18:52
02/11/13 18:52
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Ok.. So after I've spent the whole fucking day, trying to get some results with the native water shader...
I found out, that an old one, works pretty nice (there is an old one and new, if you'll check "mtlFX.c")..
As I've said, that I've faced offset problem (with new one), I couldn't fix it.. Here is how it looks like:

But I've decided to go with an old one (maybe it's slower, I don't really know), and it looks pretty nice..
Here is the screen:

The color of the water is adjustable (this is default color). I've decided to rip it out, and to upload it here:
Water Shader (OLD)
Thanks once again, this community is just freaking awesome.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: water shader (real-time reflections) [Re: 3run] #417395
02/12/13 09:17
02/12/13 09:17
Joined: Dec 2003
Posts: 1,225
germany
gri Offline
Serious User
gri  Offline
Serious User

Joined: Dec 2003
Posts: 1,225
germany

hey thank you,

I realy like to see when guys gives their results for free.


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)
Re: water shader (real-time reflections) [Re: gri] #417396
02/12/13 09:37
02/12/13 09:37
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Yeah, looks cool, thanks for sharing! But I am wondering about the ASM part in the shader, can you explain that?

Re: water shader (real-time reflections) [Re: HeelX] #417397
02/12/13 10:22
02/12/13 10:22
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi thanks, I'm also looking for a better water shader. in a demo of Slin I found a nice river shader, something like that is what I need, beside a sea-like shader... Emre also had some nice water shaders, and he has also a little tool for making them, maybe you can check them too.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: water shader (real-time reflections) [Re: sivan] #417399
02/12/13 10:52
02/12/13 10:52
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi guys, and it's really nice too see that you've found it useful as well, this makes sense for being here and uploading stuff.

HeelX@ I really have no idea about ASM part, as I didn't rewrite/redone the shader at all, I just riped it out and made a demo.

Edit: sivan@ thank you for help, I'll take a look at those examples as well.

Last edited by 3run; 02/12/13 11:47. Reason: ***

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: water shader (real-time reflections) [Re: 3run] #419669
03/13/13 11:36
03/13/13 11:36
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
if you change in mtlFX.c bmap_to_uv to bmap_to_normals (I just wrote 50 as factor value), the mirrorWater shader works without offset. there is a difference between the 2 resulting textures, but if the ripple and scale values are increased a bit, you can get nearly the same result.

p.s. Slin also made a shader collection incuding water shader. I have not tested it yet, so I don't know how it works... you can download it from AUM or from the forum, I don't remember.

Last edited by sivan; 03/13/13 11:39.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: water shader (real-time reflections) [Re: sivan] #419670
03/13/13 11:43
03/13/13 11:43
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
sivan@ I guess you mean this. haven't tried the water shader yet laugh
I've seen a lenceflare script included in the main script of the demo, but it's not there frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: water shader (real-time reflections) [Re: 3run] #419674
03/13/13 12:34
03/13/13 12:34
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
yes, it is what I talked about, the lensflare line should be commented and it works.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: water shader (real-time reflections) [Re: sivan] #419675
03/13/13 12:38
03/13/13 12:38
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: sivan
the lensflare line should be commented and it works.
Yes I know, but I would like to see them frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

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