You probably need to decrease the grid size (currently 0.1) because this results in a sdf with dimensions 8x8x8 (see first line), which is too small. Try 0.03 instead and see if that helps.
Stupid question: your model has a bottom, doesn’t it?
I have a dam model, but I don’t have an SDF file. How can I combine the dam with the fluid? What tool can I use to obtain the SDF file of the dam model
hi~
I am using fluids to apply to my dam model and have encountered some issues during this process. The fluid directly penetrates the model. This is my code example. Can you help me find the problem
My code example has been modified using the official example
I can see your .obj file has 11 different meshes: try to merge them into a single one, I don’t know if sdfgen works correctly when there are multiple meshes in the file…
You would have to write your own shader and replace the one used by the fluid renderer if you want to change how it looks (the current shader can be found/replaced in BABYLON.ShaderStore.ShadersStore["fluidRenderingRenderPixelShader"]). The glow/highlight layer won’t work because the fluid renderer is using a post-process and not regular meshes for rendering.