1 registered members (AndrewAMD),
1,160
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Realtime water reflections shader
[Re: oliver2s]
#40469
02/06/05 00:02
02/06/05 00:02
|
Joined: Dec 2001
Posts: 2,172 Portugal - Brazil
XNASorcerer
OP
Expert
|
OP
Expert
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
|
If I use your level, the code works, but if I try to use your code in any other level, Wed crashs and it doesn't give any information.
The steps that I did to use your code:
* Make a new level.
* Open Map Properties and set the script to water_shader.wdl.
* Put water model inside and give it the water action.
* Run the level and Wed crashs.
OBS.: The engine is crashing, not Wed. Sorry!
Last edited by Sorcerer; 02/06/05 00:55.
|
|
|
Re: Realtime water reflections shader
[Re: XNASorcerer]
#40470
02/06/05 22:30
02/06/05 22:30
|
Joined: Dec 2001
Posts: 2,172 Portugal - Brazil
XNASorcerer
OP
Expert
|
OP
Expert
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
|
Yes, finally. Just when I was going to my bed, I decide to give it just one more try. It is working now. But it gives me some limitation. For instance, you use a called model floor.mdl as water. He only has 4 vertexes and two faces. And I need to use a terrain with 2025 vertexes. With my terrain, the effect is realy terrible.
This is with your floor.mdl:
This is with my terrain:
Last edited by Sorcerer; 02/06/05 22:38.
|
|
|
Re: Realtime water reflections shader
[Re: oliver2s]
#40475
02/06/05 23:48
02/06/05 23:48
|
Joined: Dec 2001
Posts: 2,172 Portugal - Brazil
XNASorcerer
OP
Expert
|
OP
Expert
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
|
With the other shader that Iwas using, the one that only reflects the sky cubes(Steempipe's), I could set alpha transparency with this: Code:
AlphaBlendEnable = True; ZwriteEnable = True; ZEnable = True;
// Main point is that pixelShaderConstant 'W' will control the alpha tranparency. The XYZ will adjust some coloring.
PixelShaderConstant[0] = {0.80,0.80,0.92,0.88}; // x, y, z, w
,before "VertexShader = compile vs_1_1 WaterBump_VS();"
|
|
|
Re: Realtime water reflections shader
[Re: XNASorcerer]
#40476
02/07/05 01:25
02/07/05 01:25
|
Joined: May 2004
Posts: 66 Brazil
key_46
Junior Member
|
Junior Member
Joined: May 2004
Posts: 66
Brazil
|
This Water Reflection impressed me, can you release the code?
ADPA Ataque Dos Pôneis Assassinos!
Atack Of Killer Ponys!
ADPA(R) all rights reserved
|
|
|
|