POV-Ray : Newsgroups : povray.newusers : basic isosurfaces : Re: basic isosurfaces Server Time
30 Jul 2024 14:21:11 EDT (-0400)
  Re: basic isosurfaces  
From: Matthew Pace
Date: 28 Feb 2004 12:34:40
Message: <matthewpace-96FE7A.09343928022004@news.povray.org>
In article <403dc80c@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> Matthew Pace <mat### [at] earthlinknet> wrote:
> > Well, it is not showing up, please tell me why.
> 
>   How do you expect us to know what you have done if you don't show us?
> 
>   Please post a small scene which shows your problem.

oops, I am sorry, I meant to, but must have forgotten to paste the 
code...  Its working now...  sorta, here is the code if you are curious

I adjusted the max gradient and the threshold






camera
{
   location <2,2,-13>
   look_at  <0 ,0,0>
}
light_source
{
   <2,0,-5>
   color rgb 3
}
#declare myfunct= function(x,y,z,r){x*x+y*y+z*z-r*r};
isosurface
{
// function{myfunct(x,y,z,2)}
   function{(x*x)+(y*y)+(z*z)-(2.5*2.5)}
   threshold 2
   max_gradient 2
   contained_by {sphere {0,3}}
   pigment
   {
      color rgb <.8,.2,.8>
   }
}
plane
{
   y,-4
   pigment
   {
      color rgb .85
   }
   
}


Post a reply to this message

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