POV-Ray : Newsgroups : povray.general : [feature idea] blob pattern : Re: [feature idea] blob pattern Server Time
29 Mar 2024 09:24:49 EDT (-0400)
  Re: [feature idea] blob pattern  
From: jceddy
Date: 16 Jul 2022 00:25:00
Message: <web.62d23d8a9db63f2b864166f75d51d79c@news.povray.org>
> But yes. That's it. I just used brute force (using Nim).
> By limiting the radius (max 1.5 cell ~2.6) and strength one can probably
> limit the amount of cells/blobs to sum to 48(?)
>

Poking around, this actually already exists: the potential pigment

for example:

box {
  <-0.5, -0.5, 0>, <0.5, 0.5, 0>
  texture {
    pigment {
      potential {
        blob {
          threshold 0.6
          sphere { <.75, 0, 0>, 1, 1 }
          sphere { <-.375, .64952, 0>, 1, 1 }
          sphere { <-.375, -.64952, 0>, 1, 1 }
          scale 0.25
        }
      }
      color_map {
        [0.0 color rgb 0.0 ]
        [1.0 color rgb 1.0 ]
      }
    }
    finish {
      ambient 1.0
      diffuse 0.0
    }
  }
}

I rendered this with an orthographic camera and attached the output.


Post a reply to this message


Attachments:
Download 'test_blob_pattern.png' (13 KB)

Preview of image 'test_blob_pattern.png'
test_blob_pattern.png


 

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