POV-Ray : Newsgroups : povray.advanced-users : Isosurface CSG : Isosurface CSG Server Time
28 Jul 2024 18:18:37 EDT (-0400)
  Isosurface CSG  
From: pkowal
Date: 3 Sep 2004 06:30:00
Message: <web.41384769856e2e9f486f61060@news.povray.org>
//I don't know why adding noise to isosurface csg object tears it apart.
//There's a simple example:

#include "functions.inc"

camera {
  location  <0, 0, -3.0>
  up <0, 1, 0>
  right <4/3, 0, 0>
  look_at <0, 0,  0>
}

light_source { <-100, 100, -100> color rgb<1, 1, 1> }

isosurface {
 function {
  min(
   max((x*x+y*y+z*z)-1, -y),
   max((x*x+y*y+z*z)-1, y)
  )+f_noise3d(x,y,z)
 }
 contained_by { sphere { 0, 2.0 } }
 max_gradient 3
 pigment { color rgb<1, 1, 0> }
 translate <0.9, 0, 0>
}

isosurface {
 function {
  (x*x+y*y+z*z)-1+f_noise3d(x,y,z)
 }
 contained_by { sphere { 0, 2.0 } }
 max_gradient 3
 pigment { color rgb<1, 0, 0> }
 translate <-0.9, 0, 0>
}

// Any ideas?
// Thanks for help.
// Pawel


Post a reply to this message

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