Reply To: How to Create Water in Reverse?

Home Forums AR Sandbox Forum How to Create Water in Reverse? Reply To: How to Create Water in Reverse?


So, from my own attempt it seems there is an implicit assumption that the gravitational term is non-negative, and values ≤ 0 produce a static fluid. Rather than try to address this limitation in the water simulation code, it seems a simpler workaround would be to invert the bathymetry before the calculation of the spatial gradients, fluid fluxes, etc. and then re-invert the resulting fluid texture grid back into normal depth space before the transformation to projector space.

Optimistically I would like to think this could all be accomplished with the inclusion of two minus signs. Unfortunately, my MATLAB background has left me ill-prepared, and I’m having some trouble parsing the code.

Any suggestions from anyone (or counterpoints as to why this wouldn’t work)?

Comments are closed.