POV-Ray : Newsgroups : povray.general : Media and clipped_by, intersection and difference : Re: Media and clipped_by, intersection and difference Server Time
3 Aug 2024 12:16:22 EDT (-0400)
  Re: Media and clipped_by, intersection and difference  
From: Christopher James Huff
Date: 21 Feb 2004 20:21:01
Message: <cjameshuff-FC549F.20214321022004@news.povray.org>
In article <MPG.1aa206d25403ff9989691@news.povray.org>,
 Bjorn Jonsson <bjj### [at] mmediais> wrote:

> What I'm trying to get here is a media cloud that is not a complete 
> sphere but one half of a sphere. The problem is that if I look at this 
> from below (camera's y<0) the 'bottom' of the media cloud looks black, 
> as if it's opaque.

That's because it *is* black and opaque. You have:

intersection  {
   sphere {<0,0,0>, 2
      texture { pigment { rgbt 1 } }
      interior  {...}
   }
   cylinder {<0,0,0>,<0,1.01,0>,1000}
}

That's an intersection of a sphere with a clear texture and a cylinder 
with the default texture, which happens to be black and opaque. You want 
to apply the texture and interior to the intersection, not to just one 
of its parts:
intersection  {
   sphere {<0,0,0>, 2}
   cylinder {<0,0,0>,<0,1.01,0>,1000}
   texture { pigment { rgbt 1 } }
   interior {...}
}


> It doesn't matter if I use intersection, difference 
> or clipped_by. How can I get a media cloud that is not a complete sphere 
> but only for example the part of the sphere with y>0 ?

Well, you shouldn't use clipped_by, because the media starts and stops 
at the surface of the shape, and clipped_by leaves gaps in the surface. 
CSG difference and intersection will work fine, once you get them 
textured right.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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