POV-Ray : Newsgroups : povray.newusers : Stacking stones without overlapping : Re: Stacking stones without overlapping Server Time
17 May 2024 00:59:26 EDT (-0400)
  Re: Stacking stones without overlapping  
From: Thomas de Groot
Date: 22 Jun 2017 03:49:01
Message: <594b766d@news.povray.org>
On 21-6-2017 13:58, Bald Eagle wrote:
> 
> Without really knowing exactly what I was doing, and just plugging some stuff
> into the editor and changing some values, I got this in 5 min:
> (many thanks to Mike Williams   http://www.econym.demon.co.uk/isotut/
> and David Wagner   http://wiki.waggy.org/dokuwiki/povray/stainedglass)
> 
> #version 3.71;
> 
> global_settings {
>    assumed_gamma 1.0
> }
> 
> #include "colors.inc"
> 
> camera {
>   location  <0.0, 0, -5.0>
>   right    x*image_width/image_height
>   look_at   <0, 0, 0>}
> 
> light_source {<10, 10, -30> White}
> 
> #declare Packing = 1.3; //(increase to make more tightly packed)
> 
> #declare F =
> function {
>   pigment {
>    crackle
>    form < -1, Packing, 0>
>    metric 3
>    offset 0
>    turbulence 0.1
>    color_map { [0 rgb 1] [0.99 rgb 0] [1 rgb 0] }
>    scale 0.25
>   }
> }
> 
> isosurface {
>          function { F(x,y,z).red - 0.5 }
>          max_gradient 5.5
>          contained_by{box{-1,1}}
>          pigment {rgb 0.9}
> }
> 
> Just needs some tweaking, colors and textures.
> NO idea how to get the parts sliced smooth by the container removed, but I
> supposed doing a difference or intersection with a highly textured box or
> something might be a good way to fake it.
> 

This is a nice try but... it is not a /stacking/ of stones. It is a 
crackled volume. If you drop stones, they will behave differently from 
what you see here.

-- 
Thomas


Post a reply to this message

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