POV-Ray : Newsgroups : povray.bugreports : media/emission does not work for unions : media/emission does not work for unions Server Time
25 Apr 2024 08:10:01 EDT (-0400)
  media/emission does not work for unions  
From: afm
Date: 18 Apr 2015 14:20:00
Message: <web.55329fff1c92f474937c61150@news.povray.org>
A union of two boxes like

        union {
                box { <0,0,0> <1,1,1> }
                box { <0.5,0,0> <1.5,1,1> }
        }

 should be indistinguishable from a single box

        box { <0,0,0> <1.5,1,1> }

However, when one fills the union with an emitting medium, using code like

----------------- 8< ------------------
#include "colors.inc"

camera {
        location <2,2,2>
        look_at <1,0.5,0.5>
}

object {
 union {
  box { <0,0,0> <1,1,1> }
  box { <0.5,0,0> <1.5,1,1> }
 }
 pigment { rgbt 1 } hollow
 interior {
  media {
   emission <0,3,8,1>
   samples 1 100
  }
 }
}
----------------- 8< ------------------

povray renders three separate boxes filled with emitting media.

Tested with 3.6 and 3.7.

Best regards



Post a reply to this message

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