Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Water Shader #202039
04/12/08 23:21
04/12/08 23:21
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
Can anybody link me to one of these that they know (For sure) that it works in Lite-C. I am a complete shader newbie but it would be a wonderful addition to my terrain.

Re: Water Shader [Re: crumply] #202041
04/12/08 23:28
04/12/08 23:28
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi Crumply,
the mtlFx.c shader library has some nice watershader ready to use. Just look in there what you need and how you get it done.

Regards,
- Christian

Re: Water Shader [Re: HeelX] #202043
04/12/08 23:31
04/12/08 23:31
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Why don't you use the template water shader? It looks very nice in my oppinion. You can find it in mtlfx.c in your gamestudio folder.

Last edited by Uhrwerk; 04/12/08 23:32. Reason: *lol* You're da man, HeelX. ;)

Always learn from history, to be sure you make the same mistakes again...
Re: Water Shader [Re: Uhrwerk] #202045
04/13/08 00:00
04/13/08 00:00
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
hmm, I included it in my main source file and I get errors when compiling straight away.

I get errors and they alternate for some reason even though I am always running my main.c file. They are

Error in mtlFX.c line 1058 'u ' is not a member of ENTITY

http://indiegamingportal.net/uploads/screenshots/2008-04-13_010022.jpg

Re: Water Shader [Re: crumply] #202049
04/13/08 00:59
04/13/08 00:59
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Uh, the last free Lite-C version is from August last year. It could be the case that the mtlFx.c and that version don't fit together. Please make a rough check: in atypes.h, does the entity struct contain the line

 Code:
var u,v; // texture offsets


?

Bye,
- Christian

Last edited by HeelX; 04/13/08 00:59.
Re: Water Shader [Re: HeelX] #202051
04/13/08 01:05
04/13/08 01:05
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
Cool, it compiles now - but shows the level for a second then crashes right out.

Re: Water Shader [Re: crumply] #202052
04/13/08 01:07
04/13/08 01:07
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Seriously, that doesnt help.

Reduce your level and your code for the desired effect/shader and make sure that you do everythingwhat it needs, e.g. a bumpmap in the second skin or so.

I hope you didnt modified the atypes.h after I made that hint.

Re: Water Shader [Re: HeelX] #202053
04/13/08 01:16
04/13/08 01:16
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
I did but I can change it back? I am unsure as what to do really.

Would it be possible for someone to make a level with just a water plane with the effect applied in and rar it up for me? (may be asking a bit much)

Re: Water Shader [Re: crumply] #202060
04/13/08 01:44
04/13/08 01:44
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
UPDATE:

Here's my bare minimum test and I can't get it working. http://www.indiegamingportal.net/uploads/watertest.rar

Re: Water Shader [Re: crumply] #202092
04/13/08 09:03
04/13/08 09:03
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
since when can you use shaders with the free lite-c version? o.O

Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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