GodotVR / godot-xr-tools

Support scenes for AR and VR in Godot
MIT License
514 stars 74 forks source link

Water #348

Open pietru2004 opened 1 year ago

pietru2004 commented 1 year ago

I think there should be a demo for water diving (clear and mudy). Swim mechanic could be made with mix of gliding flap motion and fly, but with hand actions for swim in directions.

BastiaanOlij commented 1 year ago

Thats actually a pretty neat idea for an addition to the demo, I need to think some about this

pietru2004 commented 1 year ago

so I have some ideas for this: -1 when player enters water check its AABB and with some kind of shader colorize players view distance -2 Use 4.0 env. area fog to make water effect (yep the one that is having issues ATM https://github.com/godotengine/godot/issues/72331) Make water work similar to flying, but when in water :

Starkium commented 1 year ago

@pietru2004 this is how I was going about water in unreal engine mobile pipeline. No post processing of any kind. All color and lighting are driven through material. I'm thinking about remaking this, different and likely better, in Godot 4. The colors are driven from a world position height value and color curve. Ignore the top water effect. Was debugging an android vulkan thing in unreal at the time.

Water Video

pietru2004 commented 1 year ago

Looks nice