Back to the Korax Forum Archives


Forum

Horizon and water

Wed, 17 Jun 2009 15:42:42

RambOrc

Is there a way to use 3D water for horizon?
Thu, 18 Jun 2009 14:39:05

Firebrand

AFAIK, there's no way to use 3d water with line horizon, but you could make a really big 3d water sector limited by a 2 sided line and then on a sector without 3d floors use the line horizon special to make the effect work. It's not ideal, but it might work in some cases IMO <!-- s:) --><img src="{SMILIES_PATH}/orc2.gif" alt=":)" title="Smile" /><!-- s:) -->.
Tue, 23 Jun 2009 12:01:38

Crimson Wizard

Maybe make a really large sector with 3d water and put a F_SKY texture to a far sector side. You may also add mirroring to water surface (a guy named Karnizero on vavoom forums showed he made it once) - so that player won't see water depths in the far and won't notice sky texture underwater. Effect will depend on player's Z of view, ofcourse (read: how high player can get to look on "horizon").
Tue, 23 Jun 2009 13:40:11

RambOrc

What I did was first I made a 3D water sector close to the shore, then defined horizon for the far side linedef. It looked perfect except for the one little thing that the "fake" part of the water was dark, whereas the real 3D part was a lighter color since it was partially transparent. If I set the opacity to 0 for the 3D part, it looks seamless.
Tue, 23 Jun 2009 13:55:55

Crimson Wizard

[quote="RambOrc":5m0dntgb]What I did was first I made a 3D water sector close to the shore, then defined horizon for the far side linedef. It looked perfect except for the one little thing that the "fake" part of the water was dark, I believe it is simply because engine rendered base water texture for horizon, without applying transparency. Well, it can't because it does not render whole sectors stack there (region above transparent water, water surface and below region). I also think, maybe if an appropriate sky texture/skybox is made with water/sky horizon drawn, that may solve the problem somehow.
Tue, 23 Jun 2009 15:03:27

RambOrc

For other maps, I could do this, but for the main city map I am reluctant to throw in a huge sector just for this, the map is slow enough already. <!-- s;) --><img src="{SMILIES_PATH}/orc9.gif" alt=";)" title="Wink" /><!-- s;) --> I currently solved the problem halfway by making the water completely opaque, so it blends in nicely, just doesn't have a 3D feel.
Tue, 23 Jun 2009 15:39:12

Firebrand

I think I've found the slowdown problem in the renderer, but I'm not sure yet how to fix it... <!-- s:( --><img src="{SMILIES_PATH}/orc10.gif" alt=":(" title="Sad" /><!-- s:( -->

Back to the Korax Forum Archives