POV-Ray : Newsgroups : povray.general : Smooth Edged Spherical Pattern? : Re: Smooth Edged Spherical Pattern? Server Time
30 Jul 2024 06:22:20 EDT (-0400)
  Re: Smooth Edged Spherical Pattern?  
From: Tor Olav Kristensen
Date: 11 Jul 2009 08:23:01
Message: <4a588425$1@news.povray.org>
Skip Talbot wrote:
...
> Warp, I also tried your function and couldn't get it to show up.  After 
> getting a nice result with Alain's function I'm not going to dig too 
> deeply into the math trying to get that function to work, but thanks.

Try this:

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7

#version 3.6;

#include "colors.inc"

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7

isosurface {
   function { y - exp(-(x*x + y*y + z*z)) }
//  function { y + exp(-(x*x + y*y + z*z)) }
//  function { y - exp(-(x*x + z*z)) }
//  function { y + exp(-(x*x + z*z)) }
//  function { y - exp(-z*z) }
//  function { y + exp(-z*z) }
   contained_by { box { -<100, 1.1, 100>, <100, 1.1, 100> } }
   pigment { color White }
}

light_source {
   <1, 3, 2>*100
   colour White
   shadowless
}

camera {
   location <4, 3, -1>
   look_at <0, 0, 0>
}

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7

-- 
Tor Olav
http://subcube.com


Post a reply to this message

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