1 registered members (AndrewAMD),
920
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Expert
|
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: Matt_Aufderheide]
#40461
02/05/05 08:21
02/05/05 08:21
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
Serious User
|
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: Matt_Aufderheide]
#40464
02/05/05 08:44
02/05/05 08:44
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
Serious User
|
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
Matt_Aufderheide
Expert
|
Expert
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
OP
Expert
|
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.
|
|
|
|