POV-Ray : Newsgroups : povray.binaries.images : Tracing the path of streams : Re: Tracing the path of streams Server Time
16 May 2024 02:06:44 EDT (-0400)
  Re: Tracing the path of streams  
From: Samuel B 
Date: 17 Feb 2017 13:50:00
Message: <web.58a7456bbd8ebaff102e48c00@news.povray.org>
"Kirk Andrews" <kir### [at] tektonartcom> wrote:
> To do this *right*, I'm thinking you'd have to do a full-blown physics
> simulation.

Hey Kirk,

I'm not sure if this is helpful or not, but if your computer has a GPU
supporting pixel shaders, check out this one I posted a while back:
https://www.shadertoy.com/view/XsKGWG

It approximates hydraulic erosion on a height map, using a sort of basin-filling
method as a key part of the process. It won't form rivers on flat plains, since
momentum isn't taken into account (would need to probably implement
Navier-Stokes equations for that, which would be difficult using Shadertoy since
a fluid sim needs to iterate over a certain operation some 30-50 times per
frame, to the same texture). Also, the lakes seem to be slightly sloped.

Sam


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.