POV-Ray : Newsgroups : povray.advanced-users : Help with special density for blob: getting my feet wet : Re: Help with special density for blob: getting my feet wet Server Time
28 Jul 2024 14:29:05 EDT (-0400)
  Re: Help with special density for blob: getting my feet wet  
From: Bob Hughes
Date: 11 Jan 2005 02:16:49
Message: <41e37d61$1@news.povray.org>
The mention of glass confused me, was thinking of plate glass turned edge-on 
and yet this being about a blob shape I thought of something rounded.

If it were like a microscopic view of a plant cell I imagine this would be 
about the extinction of light across denser places along line of sight. What 
Mike suggests could work, I guess, just that I was thinking of media getting 
thicker at the outer edge of a spherical shape and thinner in the middle. 
Much like the Earth's atmosphere, as seen from orbit.

If you fill the object with media uniformly then the opposite will happen. 
That is, if not only a shell. So, it would seem a shell is needed. The shape 
of the blob object might make that difficult. A sphere alone would be very 
simple, though, by using the 'spherical' pattern in the density_map.

Well, I don't have any brilliant ideas to share really, just wanted to 
elaborate this question a bit. However, I do have a little scene of a plant 
cell-like thing showing an example of media filling a blob. Should be 
obvious enough to understand. Basically just a positive strength sphere and 
negative strength side spheres to make it boxy and 'boxed' patterns for both 
surface color and interior. Feel free to do whatever you want with this if 
it is any good at all for what is needed. If not, continue asking... maybe 
at povray.general or povray.newusers, too, since there's more traffic there.

/* BEGIN */
global_settings {
 assumed_gamma 1
}

camera {
 location -5*z
 look_at 0
 angle 50
 rotate <30,30,0>
}

light_source {
 -1000*z, 1
 rotate <30,-30,0>
}

plane { // floor
 y,-2/3
 pigment {
  rgb 1
 }
}

// plant cell?
blob {
 threshold 0.5
 sphere {
  0,1.75,1
  pigment {
   boxed
   color_map {
    [0.45 color rgbt <0.1,0.6,0.1,0.9>]
    [0.55 color rgbt <0.6,0.1,0.1,0.3>]
   }
   scale 1.3
  }
 }
 sphere {
  0,1,-1
  scale <0.5,2,2>
  translate x
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 sphere {
  0,1,-1
  scale <0.5,2,2>
  translate -x
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 sphere {
  0,1,-1
  scale <2,2,0.5>
  translate z
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 sphere {
  0,1,-1
  scale <2,2,0.5>
  translate -z
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 sphere {
  0,1,-1
  scale <2,0.5,2>
  translate y
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 sphere {
  0,1,-1
  scale <2,0.5,2>
  translate -y
  pigment {
   color rgbt <0.1,0.6,0.1,0.9>
  }
 }
 pigment {
  color rgb 1
 }
  interior {
   media {
    method 2
   // samples 10
    absorption <0.9,0.1,0.9>*9
    emission <0.1,0.9,0.1>
    scattering {
     4, rgb 4
     // eccentricity 0.2
     // extinction 0
    }
  density {
   boxed
   density_map {
    [0.45 color rgb <0.6,0.1,0.1>*0]
    [0.55 color rgb <0.1,0.6,0.1>*1]
    [0.65 color rgb <0.1,0.6,0.1>*0]
   }
   scale 1.3
  }
   }
  }
 hollow
}
/* END */


Post a reply to this message

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