@majidmanzarpour@threejs haha yeah I spent most of the time on the waves and kinda failed towards the end making the surfing physics itself work/fun ^^
gonna make a surfing game for this year's #vibejam
a breaking/barrel wave is impossible with traditional ocean shaders alone, so it took me a few days to get this (breakdown below)
@sweriko@SXR123 “Noooooo! You’re supposed to make a hyper realistic model with 80 billion polygons and shaders! Each grain of wood should have its own cellular structure and influence on the destruction model!”
@DUSKdev@TheLocalBogan this is the pom https://t.co/yg9jNhYH7z
the dmm above is something different, each wall can be instanced, its not cheap though, the pom version is way cheaper and its a single shared material drawn instanced,
@TheLocalBogan its parallax occlusion mapping with a per texel mask and some coloring, that allone wont give you physically accurate glass shatter though, peridynamic/fem solver might work for thin glas, maybe coupled with just quads that use pom or prebake with voronoi mask?
@JaysLogicDev 2D spatial-hash broadphase to narrow it down to nearby walls, then capsule/obb narrowphase consults a cpu mask that tells it which texels are gone, is one way to get cheap collision.
a Threejs portal to Narnia?
The experience includes getting yeeted off the skilift and run over by other players and uh, thats it.
https://t.co/XEHPsDYGgd