POV-Ray : Newsgroups : povray.binaries.images : interesting shape: CA, DF3, isosurface (284k jpg) : Re: interesting shape: CA, DF3, isosurface (284k jpg) Server Time
19 May 2024 02:20:35 EDT (-0400)
  Re: interesting shape: CA, DF3, isosurface (284k jpg)  
From: stbenge
Date: 5 Jun 2009 11:58:49
Message: <4a2940b9@news.povray.org>
Darren New wrote:
> Actually, I'd like to see the file into which you injected your DF3. 
> That is, the surrounding lighting and statements and such.

Okay, here it is. I can also post the df3 file if you are interested. I 
have the max_gradient for the isosurface set at 80, even though POV 
suggested 2037.859:

/*
CAdf3B.pov

June 2009
Samuel Benge
*/

#default{finish{ambient 0}}

camera{
  location <-0.1735,10.3,-13>
  look_at<0,.5,0>
  angle 20/1.75
}

#declare air = <.1 .2 .5>;
#declare lres = 3;
#declare lpos = <.5,.5,1>;

light_source{
  lpos*100000,1.75
  area_light x*80000,z*80000,lres,lres
  adaptive 2 jitter
}

background{rgb <92,30,1>/1024}

#declare densityFile = "brainB.df3";

#declare DF3B=
pigment{
  pigment_pattern{planar scale 2 translate -y}
  pigment_map{
   [0 rgb 0]
   [.05
    density_file df3 densityFile
    interpolate 1
    translate -1/2
    rotate x*90+y*90
    scale 2*<1,-1,1>
   ]
  }
}

#declare DF3=
function{
  pigment{
   pigment_pattern{DF3B}
   color_map{
    [0 rgb 0]
    [.25 rgb 1]
   }
  }
}

isosurface{
  function{
   -DF3(x,y,z).grey+.5
  }
  accuracy .001
  max_gradient 80
  contained_by{box{-1,1}}
  pigment{
   bumps scale<100,.1,100>
   frequency 20
   translate y*.25
   color_map{
    [0 rgb<.8,.8,1>]
    [.25 rgb 1]
    [.5 rgb<.8,.7,1>]
    [1 rgb<1,.8,.7>]
   }
  }
  finish{brilliance 0}
  translate -y/8
  scale<2,1,2>
  double_illuminate
  no_shadow
}

box{-1.01,1.01
  pigment{rgbt 1}
  interior{
   media{
    absorption 70*air
    density{
     pigment_pattern{DF3B}
     color_map{
      [.1 rgb 0]
      [.125 rgb 1]
     }
    }
   }
  }
  translate -y/8
  scale<2,1,2>
  hollow
}


Post a reply to this message

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