Page 2 of 2

Re: Remove shadows underwater

Posted: 05 Dec 2013, 17:58
by Beherith
also, the google maps high altitude seabed images are fake.

Re: Remove shadows underwater

Posted: 05 Dec 2013, 18:11
by smoth
possible solution:

can an idividual unit have it's shadows disabled?

if so, why not go with a widget that disables shadows of units that are underwater? Why not have it do blob shadows for unit in shallow water?

Seems like people requesting ENGINE features for a GAMELEVEL decision is yet another trilling round of spring = ba.

Re: Remove shadows underwater

Posted: 05 Dec 2013, 18:43
by Jools
Beherith wrote:also, the google maps high altitude seabed images are fake.
Yeah, wouldn't you think. Don't you think it's a bit weird that there are no clouds at all?
Also, Ginger Ale is just a mix of Coca-Coca and Sprite. But I can't prove it. Damn!

Re: Remove shadows underwater

Posted: 05 Dec 2013, 18:45
by Anarchid
It's totally possible to lua it (or glsl it anyway). I've even posted hints where to look for.

Jools' counter to that was that it wouldn't make surface-snapping plane shadows. But that can also be shadered i think.

Re: Remove shadows underwater

Posted: 05 Dec 2013, 22:01
by raaar
this reminds me of this other thread


the ideal behaviour would be :
water fully transparent -> shadow on the seafloor only
water semi-transparent -> shadow on both the water surface and seafloor
water fully opaque -> shadow on water surface only

this would imply something like
- water opacity effect increases with depth
- water opacity modifier could be a map variable or mod variable

i agree with Jools. On maps where a special sea floor is used to make the water seem more opaque, like "the cold place", having the shadows cast only on the sea floor looks weird.

Re: Remove shadows underwater

Posted: 06 Dec 2013, 01:18
by Jools
/water 3 on the coldplace looks quite all right. But it has one shadow on sea bed and one reflection on water surface.

Re: Remove shadows underwater

Posted: 06 Dec 2013, 02:16
by Funkencool
I'm sure that ocean floor is just a bump mapped texture based on a depth map.

Also, you can only have one or the other. If you can see to the bottom, I don't see why you wouldn't see shadows. In those pictures you see a shadow on the surface because the surface is opaque.

You could easily make the shadows underwater not appear by making the water too opaque to see them (realistic) but that would make for bad gameplay.

Re: Remove shadows underwater

Posted: 06 Dec 2013, 11:28
by Anarchid
On maps where a special sea floor is used to make the water seem more opaque, 
... the water settings should be used instead.

Re: Remove shadows underwater

Posted: 17 Sep 2022, 17:58
by PicassoCT
Did anything ever come of that? I want to deactivate shadows for my holographic icon units?