POV-Ray : Newsgroups : povray.newusers : Transparent objects in media -- object appears and cuts hole in media? Server Time
25 Nov 2024 13:23:29 EST (-0500)
  Transparent objects in media -- object appears and cuts hole in media? (Message 1 to 1 of 1)  
From: zachrahan
Subject: Transparent objects in media -- object appears and cuts hole in media?
Date: 13 Sep 2005 03:40:00
Message: <web.4326816fc2be8aa61e6432b90@news.povray.org>
Hi folks,

I'm trying to figure out how to tweak the media settings so that transparent
objects stay transparent even in media, and don't cause any strange
artifacts.

At the end of the message is a simple scene with a transparent square that
is still visible when media is added. (The object rightly disappears when
media is removed.)

Also note the bizarre artifacts generated against the checker "floor" by the
"transparent" square -- the square seems to cancel out all the media
effects behind it, leaving a "cut out" in the fog.

What's going on here? Any way to fix these problems?

Here's the render of the following scene I'm getting on my system (POV
3.6.0):
http://www.stanford.edu/~zpincus/artifacts.png

Thanks,

Zach

media { // Offending media statement. Comment out to fix.
 scattering {1, 0.5 }
}

polygon {
 5,
 <0,0,0>,
 <1,0,0>,
 <1,1,0>,
 <0,1,0>,
 <0,0,0>
 pigment {
  transmit 1 // completely transparent!
  }
}

plane {
 y, 0
 pigment {
   checker 0, 1
 }
}

light_source {
 <-2,4,-5>, 1
}

camera {
    location <2,1,-.3>
    look_at <.5,0.5,0>
}


Post a reply to this message

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