POV-Ray : Newsgroups : povray.bugreports : media/emission does not work for unions Server Time
29 Mar 2024 03:53:36 EDT (-0400)
  media/emission does not work for unions (Message 1 to 2 of 2)  
From: afm
Subject: media/emission does not work for unions
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

From: clipka
Subject: Re: media/emission does not work for unions
Date: 18 Apr 2015 15:04:57
Message: <5532aad9$1@news.povray.org>
Am 18.04.2015 um 20:18 schrieb afm:
> 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> }

That's only true when the surfaces of the boxes are opaque. To suppress 
internal surfaces, use merge{} instead of union{}.


Post a reply to this message

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