POV-Ray : Newsgroups : povray.newusers : Media scattering and photons doesn't work! : Re: Media scattering and photons doesn't work! Server Time
2 Jun 2024 13:13:56 EDT (-0400)
  Re: Media scattering and photons doesn't work!  
From: LanuHum
Date: 12 May 2013 09:25:00
Message: <web.518f9700f0c558ea7a3e03fe0@news.povray.org>
James Holsenback <nom### [at] nonecom> wrote:

>
> I thought this example was very familiar ... it's basically from the the
> tutorial section on media. You forgot /one/ important step. Have a look
> at this section and see if you can spot it:
>
> http://wiki.povray.org/content
>/Documentation:Tutorial_Section_3.7#Media_and_photons
> BTW: you also have 2 camera definitions (one gets ignored ... see
> warning stream)

Yes! This is it's basically from the the
tutorial section on media

I rewrote again

I followed an example above where there are no photons and added reflecting
floor and changed global settings
Look:
http://blender3d.org.ua/forum/rendering/iwe/upload/povray_gluk.png

//I don't know that I miss in this text.Help me please!
 global_settings
 { photons
   { count 20000
     media 100
   }
 }
 camera { location <14.9, 1, -8> look_at -z angle 70 }
 light_source { <10,100,150>, 1 }
 background { rgb <0.3, 0.6, 0.9> }

 // A dim light source inside the room which does not
 // interact with media so that we can see the room:
 light_source { <14, -5, 2>, 0.5 media_interaction off }

 // Room
 union
 { difference
   { box { <-11, -7, -11>, <16, 7, 10.5> }
     box { <-10, -6, -10>, <15, 6, 10> }
     box { <-4, -2, 9.9>, <2, 3, 10.6> }
   }
   box { <-1.25, -2, 10>, <-0.75, 3, 10.5> }
   box { <-4, 0.25, 10>, <2, 0.75, 10.5> }
   pigment { rgb 1 }
 }
 // Reflective floor:
 box
 { <-10, -5.99, -10>, <15, -6, 10>
   pigment { rgb 1 }
   finish { reflection <0.5, 0.4, 0.2> }
   photons { target reflection on }
 }
 // Scattering media box:
 box
 { <-5, -6.5, -10.5>, <3, 6.5, 10.25>
   pigment { rgbt 1 } hollow
   interior
   { media
     { scattering { 1, 0.07 extinction 0.01 }
       samples 30
     }
   }
 }


Post a reply to this message

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