Reply To: Digging for water

Home Forums AR Sandbox Forum Digging for water Reply To: Digging for water


I encountered this issue during the development of a modification of the current project. The objective of the project was to add a vegetation simulation around water sources and to enable digging for water. So by digging in the sand, new water sources arise and vegetation starts to grow and expand over time.

The digging part was solved by modifying the file Water2BathymetryUpdateShader.fs(link). I added a float uniform called baseWaterLevel in order to change the water level from the main program. I fixed the flooding bug by introducing two if-checks to check the boundary. The project is currently only running at one exhibition (that I know of) and so there are probably undiscovered bugs and defects, but it seem to be running fine.

If you are interested to take a closer look, it is available at:

  • This reply was modified 5 years, 6 months ago by SudoQ.

Comments are closed.