FloClapss
(Floreenul)
July 5, 2024, 8:49pm
#1
So I am making a raft-like prototype, and when you are inside the water I want to to like like an abyss, which achieves this effect at max graphics:
Tho at lower graphics, it just looks horrible:
So what is a workaround way to fix this? Or it will just have to look ugly on not so good devices.
XxPhyco1
(XxPhyco1)
July 5, 2024, 10:35pm
#2
I’ve seen this in games like SharkBite before!
A game called SharkBite 2 has a cool touch in it that plays ocean noises if your camera is in the water.
I don’t know how to code a function to execute when a player’s camera is in terrain water but I have some suggestions:
Code it to do the following locally every time the player’s camera is in the water
Set the Lighting.FogEnd low to something like 50?
Change the Lighting.FogColor to the water’s color?
And of course, you could change the lighting properties to normal when the player’s camera is no longer in the water.
Hope this helps and good luck.
2 Likes
mmm maybe make a large part that is the color you want and put it where the discoloration happens.
fog is probably a better idea tho.
As for this
I believe it is possible to detect the height of the camera, so you can play the effects once the camera is below sea level.
1 Like
vyexon
(zephyr)
July 5, 2024, 11:10pm
#4
add an atmosphere effect whenever the player is on water
use :GetState()
and check if their Swimming
, if so parent it to lighting, otherwise parent it to replicatedstorage
1 Like
A very simple way to counter this would be setting the WaterTransparency to 1 and then detect if the players camera is under water, if it is then change the lighting to make it look like its underwater, exactly like @vyexon said
This post might help
3 Likes
FloClapss
(Floreenul)
July 6, 2024, 8:54am
#6
Thanks that would be a cool touch!
system
(system)
Closed
July 20, 2024, 8:55am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.