POV-Ray : Newsgroups : povray.binaries.images : underwater landscape latest wip [27kb] : Re: underwater landscape latest wip [27kb] Server Time
14 Aug 2024 13:26:43 EDT (-0400)
  Re: underwater landscape latest wip [27kb]  
From: Ben Birdsey
Date: 8 Oct 2002 12:08:07
Message: <3DA30270.D746F8AB@mail.com>
Tom -

It might be possible to add in an isosurface "blob" with a negative
weight that will make a crater in your sand.  If you have to construct
the thing yourself, you could use something like

#define myblob(x,y,z) = function{ (1+sqrt( pow(x-x0,2) + pow(y-y0,2) +
pow(z-z0,2)) exp( sqrt( pow(x-x0,2) + pow(y-y0,2) + pow(z-z0,2) ) }

so if you set <x0,y0,z0> to be at the center of your rock and
subtract(add) the function and you have an instant rock crater(hill)!

- Ben Birdsey


Post a reply to this message

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