Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Template Water Shader Problem [Re: Schmerzmittel] #148551
08/17/07 21:31
08/17/07 21:31
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Das hier ist der entscheidende Post von JCL, das muss abgeändert werden:
Quote:

Yes, this is a bug in default.fx. It happens when you use <fog> and <view> at the same time in a shader.

Solution: Edit default.fx and replace

float4x4 matWorldView;

by:

#ifndef MATWORLDVIEW
float4x4 matWorldView;
#define MATWORLDVIEW
#endif

This ensures that matWorldView is only defined once.





Always learn from history, to be sure you make the same mistakes again...
Re: Template Water Shader Problem [Re: Uhrwerk] #148552
08/17/07 21:41
08/17/07 21:41
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Hab ich ja gemacht, aber es kommt trotzdem noch der Fehler, dass matWorldView doppelt definiert wurde. Das ist es ja grade, was ich nicht verstehe.


A7 Com V7.80
Re: Template Water Shader Problem [Re: Schmerzmittel] #148553
08/19/07 08:44
08/19/07 08:44
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I have followed the steps from above posts and still
don't get the shader work. I've try the following
shaders from the mtlFX.c (version A7.05)

fx_water_mirror : The water.hmp shows black and semi-transparent
fx_water_env : The water.hmp is invisible

Any ideas?

Re: Template Water Shader Problem [Re: SirSven] #148554
08/19/07 13:13
08/19/07 13:13
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
don't you need that cull counter clockwise flag for mirror views? cull_cw or something the like.

Re: Template Water Shader Problem [Re: Joey] #148555
08/19/07 13:56
08/19/07 13:56
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK


I've attached fx_water_mirror action to the water.hmp but no effect.
I suppose those shaders from mtlFX.c are easy and ready to use but
it didn't.

Re: Template Water Shader Problem [Re: vlau] #148556
08/19/07 15:13
08/19/07 15:13
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
I have the same problem as Vlau...

Now, with the new Beta, no Error. But the Mirror_water shows a black surface and its transparent.

The water_env works good.

If i use the water_mirror it works with c_script. But i want use Lite_c.


A7 Com V7.80
Re: Template Water Shader Problem [Re: Schmerzmittel] #148557
08/19/07 18:10
08/19/07 18:10
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Ich habe rausgefunden, warum das Wasser unter LiteC nichts spiegelt und nur Schwarz ist.

Sucht einfach nach der Zeile mtlfx_mirrorvisible = 0; und setzt sie auf 1.
Dann wird auch was reflektiert. Aber mich wundert nur, warum das von Haus aus auf 0 gesetzt wurde?

Jetzt läuft das Wasser.


A7 Com V7.80
Re: Template Water Shader Problem [Re: Schmerzmittel] #148558
08/19/07 18:26
08/19/07 18:26
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Nun arbeitet das Wasser. Aber der nächste Fehler ist schon da...
Anscheinend ist die View von der Camera etwas zu groß.

Hat da jemand Rat?




Wenn jemand da ne Lösung weis, wär ich sehr froh.

Gruß
Schmerzmittel


A7 Com V7.80
Re: Template Water Shader Problem [Re: Schmerzmittel] #148559
01/14/08 20:27
01/14/08 20:27
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline
Serious User
ulf  Offline
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
can anyone provide a simple working demo.wmp with a water.hmp (bumpmap in skin1), with the latest water template shader(fx_water_env) action attached + a skycube?

i seem to get some strange results using this (template) shader and want to verify its not my fault... ): thanks!

Last edited by ulf; 01/14/08 20:29.
Re: Template Water Shader Problem [Re: ulf] #148560
01/15/08 14:05
01/15/08 14:05
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Do you use a shader on the terrain? If you use a not ffp-effect on it the clipping will be wrong. That causes errors as on the screenshots above.

Page 2 of 3 1 2 3

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