Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 9 1 2 3 4 5 6 7 8 9
Re: Realtime water reflections shader [Re: oliver2s] #40458
02/05/05 04:04
02/05/05 04:04
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
That is it! It is working now!
Thank you.

Now... How can I move the camera inside your level?

Last edited by Sorcerer; 02/05/05 04:06.
Re: Realtime water reflections shader [Re: XNASorcerer] #40459
02/05/05 05:41
02/05/05 05:41
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
By pressing "0" in development version (like in other 3DGS levels).

Re: Realtime water reflections shader [Re: oliver2s] #40460
02/05/05 07:57
02/05/05 07:57
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Oliver-- great shader.. I have written a DLL that renders the terrain for me.. but since it renders it form the camera view, obviously the reflection wrong.. it should be upside down.. how can you make it so the reflection is upside down..just inverting the mid.xy coords flips it but also makes it move the wrong way left and right when panning the camera..

Re: Realtime water reflections shader [Re: Matt_Aufderheide] #40461
02/05/05 08:21
02/05/05 08:21
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
Yes.. This is a great shader. Thanks for making the code available!

Matt: Maybe you can get some ideas from this place:
http://www.gamedev.net/community/forums/topic.asp?topic_id=253039

This Yann L. guy, says:
Quote:

Assuming your water plane is at y = 0, and y is the up axis, then the easiest method is to simply multiply the view matrix with a mirror matrix like this one:

1 0 0 0
0 -1 0 0
0 0 1 0
0 0 0 1


That will flip the geometry (or the camera, it's the same, just seen from a different coordinate frame) around the Y axis.

If your plane is not exactly at y=0, then you need to adjust the translation part accordingly.






I have never worked on implementing it, however.

Re: Realtime water reflections shader [Re: Steempipe] #40462
02/05/05 08:24
02/05/05 08:24
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
looks like it would work.. also i need to make a user clip plane, but frankl;y i dont get how the plane is setup.. you have any idea how to setup a clip plane in D3D?

Re: Realtime water reflections shader [Re: Matt_Aufderheide] #40463
02/05/05 08:31
02/05/05 08:31
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
sweet, will this be anohter "ultimate" shader?
or "ultimate" dll?



Re: Realtime water reflections shader [Re: Matt_Aufderheide] #40464
02/05/05 08:44
02/05/05 08:44
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
Quote:

looks like it would work.. also i need to make a user clip plane, but frankl;y i dont get how the plane is setup.. you have any idea how to setup a clip plane in D3D?




I have no words of wisdom on doing that. But, I was reading up on it and had found this link to some code.

Maybe this will help in showing a D3D way to deal with clipping.

Re: Realtime water reflections shader [Re: Drew] #40465
02/05/05 09:08
02/05/05 09:08
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:

sweet, will this be anohter "ultimate" shader?
or "ultimate" dll?






dunno.. I'll see how it goes, i'm also currently working on an improved soft shadow method that uses a dll to render projected mesh textures, looking good so far. What i will do eventually ,if i can get it working right, i will release the dll with both the shadowing and reflections and do some example scripts.

Re: Realtime water reflections shader [Re: oliver2s] #40466
02/05/05 10:11
02/05/05 10:11
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
I can't use it in my level. Wed crashs!It only works with your level.
Can you help me? Please!

Another thing... How can I set the alpha tranparency?

Last edited by Sorcerer; 02/05/05 14:16.
Re: Realtime water reflections shader [Re: XNASorcerer] #40467
02/05/05 23:00
02/05/05 23:00
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Does anyone knows why I cannot use this with other level?

Page 3 of 9 1 2 3 4 5 6 7 8 9

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