#How do i add foam where the water meets objects like terrain?

1 messages · Page 1 of 1 (latest)

errant forge
#

Beaches in my case

hidden sinew
#

Basically look up almost any water/sea shader tutorial. In fact, since it's hdrp, the built-in water shader should already have it.

errant forge
errant forge
hidden sinew
#

I mean, you could probably do it dynamically via code, but I see what you mean. Perhaps look up some open source water/sea shaders. Something that should be pretty easy by reading the depth buffer.

errant forge
#

pathetic that i have to reside to a 3rd party asset for that

hidden sinew
#

Well, go a few years back and there was no water feature at all. To be honest, it's not really an engine feature and you need to implement it yourself IMHO.

errant forge
#

im against the logic that engines should provide the bare minimum, its not how technology/business works

hidden glacier
errant forge
#

doesnt hdrp have a specific water solution? i studied the foam examples, theres one that does what i want but i couldnt find how it dynamically fits the shape. unless it uses a premade foam mask i missed

remote frost
#

Probably the fault of Terrain being outdated and not really worth investing in, since shore foam would require cooperation of the type of terrain tech used
Or it'd require a dedicated top down depth buffer which isn't very scalable
Unless it was really complex

hidden sinew
errant forge
#

Im using unity cause i like the freedom but there should be a balance. I mean they implement water in hdrp which looks great why not finish the job with the foam

hidden sinew
#

I guess decals and wind based foam was finished enough for them.

#

I'm wandering what's the foam in this screenshot though

#

Wind driven I guess.
But thinking about it, still water doesn't really produce foam in real life.

#

Unless you add soap or some other substance to it.

#

For example

#

Or basically most lake photos

errant forge
#

how does the moon shaped island produce contact foam?

#

dont think thats a decal

hidden glacier
#

Open the scene and check?

hidden sinew
#

In fact, "contact foam" is not even a real word/phrase. You just came up with it.

errant forge
errant forge
hidden sinew
#

Though I guess there would be some foam remaining for a while after the motion.

errant forge
#

Dont think wind foam works with other gameobjects its just an effect on the whole water body

hidden sinew
#

Indeed. Did the forum post not provide you an answer though?

errant forge
#

It does ill try it and update thanks!

hidden glacier
errant forge
hidden glacier
#

The decals project the mask onto the water surface