Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/20/24 06:09
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (flink, Edgar_Herrera), 695 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Template Water Shader Problem #148541
08/16/07 20:51
08/16/07 20:51
Joined: Mar 2005
Posts: 80
S
SirSven Offline OP
Junior Member
SirSven  Offline OP
Junior Member
S

Joined: Mar 2005
Posts: 80
Hi,

I'm just got my new A7 comm and startet trying around a bit.
I tried the shader from the mtlFX.wdl and it works nice but I have a small problem.
Everything is rendered the wrong way around, means areas that are far away are rendered first.



As you can see the flames (it's not only happening with particles but with every object) are rendered infront of the spheres, but actually they are behind them.
What I don't understand is that when I have a look at the view used to render the mirror then I can't see the flames in it. What's wrong. Why is the stuff seen in the view different from the stuff the view renders to the image?

Thanks

Re: Template Water Shader Problem [Re: SirSven] #148542
08/16/07 21:01
08/16/07 21:01
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Did you use the fx_water_mirror? If yes, this shader only works with the Pro versoin of GS.


A7 Com V7.80
Re: Template Water Shader Problem [Re: Schmerzmittel] #148543
08/16/07 21:23
08/16/07 21:23
Joined: Mar 2005
Posts: 80
S
SirSven Offline OP
Junior Member
SirSven  Offline OP
Junior Member
S

Joined: Mar 2005
Posts: 80
Yes I used the fx_water_mirror but I have A7 comm and this supports render to textur. So imho it kind of works already but the result has some little error.
Maybe it's not totally clear what you see on this picture so what you see are two spheres, behind each sphere is a flame and the sphere are penetrated by the water plane in their middles (it also happens if there is no intersection between water and objects). The flames are behind the spheres and thats correct in the view but in the effect on the water it's then wrong. Is that normal?

Re: Template Water Shader Problem [Re: SirSven] #148544
08/17/07 03:31
08/17/07 03:31
Joined: Jul 2003
Posts: 47
Indiana
S3an Offline
Newbie
S3an  Offline
Newbie

Joined: Jul 2003
Posts: 47
Indiana
i can confirm that fx_water_mirror will work fine with A7 comm. a couple of things to double check maybe..

  • Use a flat terrain .hmp file with at least 32 verticies in x and y directions
  • Assign a bump map texture to skin 1 of the terrain. There is a good bump located in your 3dgs install at "template_6\images\waves.dds"

That should be all you need to get things going. I always add a skybox in the level just to give me some bearings to the world, plus it keeps the background from smearing when moving making it harder to tell what is really going on. hope that helps!




Re: Template Water Shader Problem [Re: S3an] #148545
08/17/07 04:52
08/17/07 04:52
Joined: Mar 2005
Posts: 80
S
SirSven Offline OP
Junior Member
SirSven  Offline OP
Junior Member
S

Joined: Mar 2005
Posts: 80
I think the shader itself is working but I have these sorting errors...

Here everything is correct:


But when the reflections intersect I get the error:


PS: I'm sorry for the big images but on the pc I'm working on at the moment only A7 and Firefox works, every other programm is crashing it (even mspaint)
To much viruses... Luckily it's not my pc

Last edited by SirSven; 08/17/07 04:56.
Re: Template Water Shader Problem [Re: SirSven] #148546
08/17/07 08:32
08/17/07 08:32
Joined: Jul 2003
Posts: 47
Indiana
S3an Offline
Newbie
S3an  Offline
Newbie

Joined: Jul 2003
Posts: 47
Indiana
Oh, now i understand. i never noticed that issue before. is that the same terrain, the island and the shore? If i can duplicate it i can try my hand at fixing it. Probably needs a different reflection view to make it work right.

Re: Template Water Shader Problem [Re: S3an] #148547
08/17/07 08:40
08/17/07 08:40
Joined: Mar 2005
Posts: 80
S
SirSven Offline OP
Junior Member
SirSven  Offline OP
Junior Member
S

Joined: Mar 2005
Posts: 80
It happens with the same terrain, but also with different objects. All visible triangles in the view are rendered from the back to the front.

Re: Template Water Shader Problem [Re: SirSven] #148548
08/17/07 10:26
08/17/07 10:26
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I´m not sure but it is possible that the view used for the reflections is placed under the terrain. Try to make the water deeper.

Re: Template Water Shader Problem [Re: Slin] #148549
08/17/07 15:13
08/17/07 15:13
Joined: Mar 2005
Posts: 80
S
SirSven Offline OP
Junior Member
SirSven  Offline OP
Junior Member
S

Joined: Mar 2005
Posts: 80
Ok, I tried around a bit and I found out that it's only happening when the camera.pan is more then 180. But it doesn't matter wheather the objects are under the water plane or not it happens in every case. But as mentioned before everything is correct when you have a look at the view directly...

pan < 180 = correct

pan > 180 = error


Re: Template Water Shader Problem [Re: SirSven] #148550
08/17/07 18:56
08/17/07 18:56
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Ich finde es ja schön, dass bei euch der Shader geht

Aber bei mir geht gar nichts....ich habe die Mtlfx.c included, aber, wie in einem anderem Post (wie ich schon geschrieben hab), funktioniert bei mir gar nichts.

Wie habt ihr das eingebunden, bzw. zum laufen gebracht?

Bei mir kommt immer dieser Fehler

Malfunction W1550
-----------------
Error in effect:
(23): error X3003: redifinition of 'matWorldView'

>float 4x4 matWorldView;<

Ich habe, wie in diesem Post http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/775919/an//page/0/vc/1
die Zeilen schon abgeändert, aber es geht nicht.

Könnte mir, falls es möglich ist, die mtlfx.c und die default.fx vielleicht schicken? Wäre super. Ich will auch das Wasser, in Verbindung mit dem Terrainshader.

Um jede Hilfe wär ich mehr als dankbar.

Grüße
Schmerzmittel


A7 Com V7.80
Page 1 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