POV-Ray : Newsgroups : povray.newusers : Glass in window: problem with caustics Server Time
28 Apr 2024 20:00:23 EDT (-0400)
  Glass in window: problem with caustics (Message 1 to 8 of 8)  
From: LanuHum
Subject: Glass in window: problem with caustics
Date: 24 Aug 2013 05:15:01
Message: <web.5218787e6c2054367a3e03fe0@news.povray.org>
Hi.
If not glass in window:
very good reflection caustic in room from the sun. :)
If is glass in window:
not reflection caustic in room from the sun. :(

What to include?


Post a reply to this message

From: Stephen
Subject: Re: Glass in window: problem with caustics
Date: 24 Aug 2013 06:46:37
Message: <52188f0d@news.povray.org>
On 24/08/2013 10:10 AM, LanuHum wrote:
> Hi.
> If not glass in window:
> very good reflection caustic in room from the sun. :)
> If is glass in window:
> not reflection caustic in room from the sun. :(
>
> What to include?
>
>
Example please.

-- 
Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: Glass in window: problem with caustics
Date: 24 Aug 2013 07:12:28
Message: <5218951c$1@news.povray.org>
Am 24.08.2013 11:10, schrieb LanuHum:
> Hi.
> If not glass in window:
> very good reflection caustic in room from the sun. :)
> If is glass in window:
> not reflection caustic in room from the sun. :(
>
> What to include?

What's your max_trace_level?


Post a reply to this message

From: LanuHum
Subject: Re: Glass in window: problem with caustics
Date: 24 Aug 2013 09:00:01
Message: <web.5218abec731993dc7a3e03fe0@news.povray.org>
Stephen <mca### [at] aolcom> wrote:

> Example please.
>
> --
> Regards
>      Stephen

window without glass:
http://yadi.sk/d/8s3O4tua8GhD4
window with glass:
http://yadi.sk/d/XDIU0qA-8GhCg
Povfile(The sphere is removed: very large text):

//----------------------------------------------
//--Exported with POV-Ray exporter for Blender--
//----------------------------------------------

#version 3.7;
#include "functions.inc"
#include "shapes3.inc"

//--CUSTOM CODE--


//--Global settings and background--

global_settings {
    assumed_gamma 1
    max_trace_level 5
    photons {
        count 2000000
    }
}

background {rgbt<0.0871, 0.333, 0.855, 0>}

//--Material Definitions--

#declare Floor_mat = finish {    brilliance 2
    specular 0
    roughness 0.01
    diffuse 0.8 0
    ambient <0, 0, 0>
    emission 0
    conserve_energy
    reflection {
        <1,1,1> * 1.69
        metallic 1
    }
}
#declare Floor_tex =
texture {
    pigment {
        checker
        color rgbf<0,0,0,0>
        color rgbf<1,0.9708,0.9578,0>
        translate <0,0,0> scale <1,1,1>
        rotate <0,0,0>
        turbulence <0,0,0>
        octaves 1
        lambda 1
        omega 1
        frequency 2
        phase 0
    }
finish{Floor_mat}}

#declare Winglass = finish {    brilliance 2
    specular 0
    roughness 0.0001
    diffuse 0.8 0
    ambient <0, 0, 0>
    emission 0
    conserve_energy
    irid { 0.5365 thickness 3.014 turbulence 0 }}
#declare Winglass_tex = texture {pigment {color
rgbft<0.8,0.8,0.8,0.93,0>}finish{Winglass}}

#declare Room_mat = finish {    brilliance 2
    specular 0
    roughness 0.0001
    diffuse 0.8 0
    ambient <0, 0, 0>
    emission 0
    conserve_energy
}
#declare Room_mat_tex = texture {pigment {color
rgbft<0.8,0.8,0.8,0,0>}finish{Room_mat}}

#declare Window_mat = finish {    brilliance 2
    specular 0
    roughness 0.0001
    diffuse 0.8 0
    ambient <0, 0, 0>
    emission 0
    conserve_energy
}
#declare Window_mat_tex = texture {pigment {color
rgbft<0.8,0.8,0.8,0,0>}finish{Window_mat}}

#declare Floor_tex = texture {Floor_tex}
#declare Glass_tex = texture {Winglass_tex}
#declare Room_tex = texture {Room_mat_tex}
#declare Window_tex = texture {Window_mat_tex}

//--Mesh objects--
#declare Floor =
mesh {
    triangle {<-17.36,-10.29,17.36>,<-17.36,-10.29,-17.36>,<17.36,-10.29,17.36>}
    triangle {<-17.36,-10.29,-17.36>,<17.36,-10.29,-17.36>,<17.36,-10.29,17.36>}
    texture{Floor_tex}
    photons {reflection on  target }
}
object {Floor}
#declare Glass =
mesh {
    triangle
{<-4.989,6.703,-18.38>,<-4.989,-4.497,-18.38>,<-12.44,6.703,-18.38>}
    triangle
{<-4.989,6.703,-18.48>,<-12.44,6.703,-18.48>,<-4.989,-4.497,-18.48>}
    triangle {<-4.989,6.703,-18.38>,<-12.44,6.703,-18.38>,<-4.989,6.703,-18.48>}
    triangle
{<-12.44,-4.497,-18.38>,<-4.989,-4.497,-18.38>,<-12.44,-4.497,-18.48>}
    triangle
{<-12.44,6.703,-18.38>,<-12.44,-4.497,-18.38>,<-12.44,6.703,-18.48>}
    triangle
{<-4.989,-4.497,-18.38>,<-4.989,6.703,-18.38>,<-4.989,-4.497,-18.48>}
    triangle
{<-4.989,-4.497,-18.38>,<-12.44,-4.497,-18.38>,<-12.44,6.703,-18.38>}
    triangle
{<-12.44,6.703,-18.48>,<-12.44,-4.497,-18.48>,<-4.989,-4.497,-18.48>}
    triangle {<-12.44,6.703,-18.38>,<-12.44,6.703,-18.48>,<-4.989,6.703,-18.48>}
    triangle
{<-4.989,-4.497,-18.38>,<-4.989,-4.497,-18.48>,<-12.44,-4.497,-18.48>}
    triangle
{<-12.44,-4.497,-18.38>,<-12.44,-4.497,-18.48>,<-12.44,6.703,-18.48>}
    triangle
{<-4.989,6.703,-18.38>,<-4.989,6.703,-18.48>,<-4.989,-4.497,-18.48>}
    texture{Glass_tex}
    photons {reflection on  target }
}
object {Glass}
#declare Room =
mesh {
    triangle {<-17.36,10.29,17.36>,<-17.36,10.29,-17.36>,<-17.36,-10.29,17.36>}
    triangle {<-17.36,10.29,-17.36>,<17.36,10.29,-17.36>,<-12.54,6.876,-17.36>}
    triangle {<17.36,10.29,-17.36>,<17.36,10.29,17.36>,<17.36,-10.29,-17.36>}
    triangle {<17.36,10.29,17.36>,<-17.36,10.29,17.36>,<17.36,-10.29,17.36>}
    triangle {<17.36,10.29,17.36>,<17.36,10.29,-17.36>,<-17.36,10.29,17.36>}
    triangle
{<-17.36,-10.29,-17.36>,<-17.36,10.29,-17.36>,<-12.54,6.876,-17.36>}
    triangle {<17.36,10.29,-17.36>,<17.36,-10.29,-17.36>,<-4.857,6.876,-17.36>}
    triangle
{<17.36,-10.29,-17.36>,<-17.36,-10.29,-17.36>,<-12.54,-4.671,-17.36>}
    triangle
{<-4.857,-4.671,-17.36>,<-12.54,-4.671,-17.36>,<-4.857,-4.671,-18.74>}
    triangle
{<-12.54,-4.671,-17.36>,<-12.54,6.876,-17.36>,<-12.54,-4.671,-18.74>}
    triangle {<-12.54,6.876,-17.36>,<-4.857,6.876,-17.36>,<-12.54,6.876,-18.74>}
    triangle
{<-4.857,6.876,-17.36>,<-4.857,-4.671,-17.36>,<-4.857,6.876,-18.74>}
    triangle
{<-17.36,10.29,-17.36>,<-17.36,-10.29,-17.36>,<-17.36,-10.29,17.36>}
    triangle {<17.36,10.29,-17.36>,<-4.857,6.876,-17.36>,<-12.54,6.876,-17.36>}
    triangle {<17.36,10.29,17.36>,<17.36,-10.29,17.36>,<17.36,-10.29,-17.36>}
    triangle {<-17.36,10.29,17.36>,<-17.36,-10.29,17.36>,<17.36,-10.29,17.36>}
    triangle {<17.36,10.29,-17.36>,<-17.36,10.29,-17.36>,<-17.36,10.29,17.36>}
    triangle
{<-12.54,-4.671,-17.36>,<-17.36,-10.29,-17.36>,<-12.54,6.876,-17.36>}
    triangle
{<17.36,-10.29,-17.36>,<-4.857,-4.671,-17.36>,<-4.857,6.876,-17.36>}
    triangle
{<-4.857,-4.671,-17.36>,<17.36,-10.29,-17.36>,<-12.54,-4.671,-17.36>}
    triangle
{<-12.54,-4.671,-17.36>,<-12.54,-4.671,-18.74>,<-4.857,-4.671,-18.74>}
    triangle
{<-12.54,6.876,-17.36>,<-12.54,6.876,-18.74>,<-12.54,-4.671,-18.74>}
    triangle {<-4.857,6.876,-17.36>,<-4.857,6.876,-18.74>,<-12.54,6.876,-18.74>}
    triangle
{<-4.857,-4.671,-17.36>,<-4.857,-4.671,-18.74>,<-4.857,6.876,-18.74>}
    texture{Room_tex}
    photons { refraction on  }
}
object {Room}
#declare Window =
mesh {
    triangle {<-10.32,6.876,-18.62>,<-10.06,6.876,-18.62>,<-10.32,6.514,-18.62>}
    triangle {<-12.54,6.876,-18.62>,<-10.32,6.876,-18.62>,<-10.32,6.514,-18.62>}
    triangle
{<-10.06,-4.671,-18.62>,<-10.32,-4.671,-18.62>,<-10.32,-4.308,-18.62>}
    triangle
{<-4.857,-4.671,-18.62>,<-10.06,-4.671,-18.62>,<-10.06,-4.308,-18.62>}
    triangle
{<-12.54,-4.671,-18.62>,<-12.54,6.876,-18.62>,<-12.2,-4.308,-18.62>}
    triangle {<-10.06,6.876,-18.62>,<-4.857,6.876,-18.62>,<-10.06,6.514,-18.62>}
    triangle
{<-4.857,6.876,-18.62>,<-4.857,-4.671,-18.62>,<-5.196,6.514,-18.62>}
    triangle
{<-10.32,-4.671,-18.62>,<-12.54,-4.671,-18.62>,<-10.32,-4.308,-18.62>}
    triangle
{<-10.32,-4.671,-18.25>,<-10.32,-4.308,-18.25>,<-12.54,-4.671,-18.25>}
    triangle
{<-10.06,-4.671,-18.25>,<-10.32,-4.671,-18.25>,<-10.06,-4.671,-18.62>}
    triangle
{<-4.857,6.876,-18.25>,<-5.196,6.514,-18.25>,<-4.857,-4.671,-18.25>}
    triangle
{<-4.857,-4.671,-18.25>,<-10.06,-4.671,-18.25>,<-4.857,-4.671,-18.62>}
    triangle {<-10.06,6.876,-18.25>,<-10.06,6.514,-18.25>,<-4.857,6.876,-18.25>}
    triangle
{<-10.32,-4.671,-18.25>,<-12.54,-4.671,-18.25>,<-10.32,-4.671,-18.62>}
    triangle
{<-12.2,-4.308,-18.25>,<-10.32,-4.308,-18.25>,<-12.2,-4.308,-18.62>}
    triangle
{<-12.54,-4.671,-18.25>,<-12.2,-4.308,-18.25>,<-12.54,6.876,-18.25>}
    triangle
{<-4.857,-4.671,-18.25>,<-5.196,-4.308,-18.25>,<-10.06,-4.308,-18.25>}
    triangle
{<-10.06,-4.671,-18.25>,<-10.06,-4.308,-18.25>,<-10.32,-4.308,-18.25>}
    triangle {<-12.54,6.876,-18.25>,<-12.2,6.514,-18.25>,<-10.32,6.514,-18.25>}
    triangle {<-10.32,6.876,-18.25>,<-10.32,6.514,-18.25>,<-10.06,6.876,-18.25>}
    triangle {<-10.32,6.514,-18.25>,<-12.2,6.514,-18.25>,<-10.32,6.514,-18.62>}
    triangle {<-12.2,6.514,-18.25>,<-12.2,-4.308,-18.25>,<-12.2,6.514,-18.62>}
    triangle
{<-10.06,6.514,-18.25>,<-10.32,6.514,-18.25>,<-10.06,-4.308,-18.25>}
    triangle
{<-12.54,-4.671,-18.25>,<-12.54,6.876,-18.25>,<-12.54,-4.671,-18.62>}
    triangle {<-5.196,6.514,-18.25>,<-10.06,6.514,-18.25>,<-5.196,6.514,-18.62>}
    triangle
{<-10.06,-4.308,-18.25>,<-5.196,-4.308,-18.25>,<-10.06,-4.308,-18.62>}
    triangle {<-10.06,6.876,-18.25>,<-4.857,6.876,-18.25>,<-10.06,6.876,-18.62>}
    triangle {<-12.54,6.876,-18.25>,<-10.32,6.876,-18.25>,<-12.54,6.876,-18.62>}
    triangle
{<-5.196,-4.308,-18.25>,<-5.196,6.514,-18.25>,<-5.196,-4.308,-18.62>}
    triangle
{<-10.06,6.514,-18.62>,<-10.06,6.514,-18.25>,<-10.06,-4.308,-18.62>}
    triangle
{<-4.857,6.876,-18.25>,<-4.857,-4.671,-18.25>,<-4.857,6.876,-18.62>}
    triangle {<-10.32,6.876,-18.25>,<-10.06,6.876,-18.25>,<-10.32,6.876,-18.62>}
    triangle
{<-10.32,6.514,-18.25>,<-10.32,6.514,-18.62>,<-10.32,-4.308,-18.25>}
    triangle
{<-10.32,6.514,-18.62>,<-10.06,6.514,-18.62>,<-10.32,-4.308,-18.62>}
    triangle {<-10.06,6.876,-18.62>,<-10.06,6.514,-18.62>,<-10.32,6.514,-18.62>}
    triangle {<-12.2,6.514,-18.62>,<-12.54,6.876,-18.62>,<-10.32,6.514,-18.62>}
    triangle
{<-10.06,-4.308,-18.62>,<-10.06,-4.671,-18.62>,<-10.32,-4.308,-18.62>}
    triangle
{<-5.196,-4.308,-18.62>,<-4.857,-4.671,-18.62>,<-10.06,-4.308,-18.62>}
    triangle {<-12.54,6.876,-18.62>,<-12.2,6.514,-18.62>,<-12.2,-4.308,-18.62>}
    triangle {<-4.857,6.876,-18.62>,<-5.196,6.514,-18.62>,<-10.06,6.514,-18.62>}
    triangle
{<-4.857,-4.671,-18.62>,<-5.196,-4.308,-18.62>,<-5.196,6.514,-18.62>}
    triangle
{<-12.54,-4.671,-18.62>,<-12.2,-4.308,-18.62>,<-10.32,-4.308,-18.62>}
    triangle
{<-10.32,-4.308,-18.25>,<-12.2,-4.308,-18.25>,<-12.54,-4.671,-18.25>}
    triangle
{<-10.32,-4.671,-18.25>,<-10.32,-4.671,-18.62>,<-10.06,-4.671,-18.62>}
    triangle
{<-5.196,6.514,-18.25>,<-5.196,-4.308,-18.25>,<-4.857,-4.671,-18.25>}
    triangle
{<-10.06,-4.671,-18.25>,<-10.06,-4.671,-18.62>,<-4.857,-4.671,-18.62>}
    triangle {<-10.06,6.514,-18.25>,<-5.196,6.514,-18.25>,<-4.857,6.876,-18.25>}
    triangle
{<-12.54,-4.671,-18.25>,<-12.54,-4.671,-18.62>,<-10.32,-4.671,-18.62>}
    triangle
{<-10.32,-4.308,-18.25>,<-10.32,-4.308,-18.62>,<-12.2,-4.308,-18.62>}
    triangle {<-12.2,-4.308,-18.25>,<-12.2,6.514,-18.25>,<-12.54,6.876,-18.25>}
    triangle
{<-10.06,-4.671,-18.25>,<-4.857,-4.671,-18.25>,<-10.06,-4.308,-18.25>}
    triangle
{<-10.32,-4.671,-18.25>,<-10.06,-4.671,-18.25>,<-10.32,-4.308,-18.25>}
    triangle {<-10.32,6.876,-18.25>,<-12.54,6.876,-18.25>,<-10.32,6.514,-18.25>}
    triangle {<-10.32,6.514,-18.25>,<-10.06,6.514,-18.25>,<-10.06,6.876,-18.25>}
    triangle {<-12.2,6.514,-18.25>,<-12.2,6.514,-18.62>,<-10.32,6.514,-18.62>}
    triangle {<-12.2,-4.308,-18.25>,<-12.2,-4.308,-18.62>,<-12.2,6.514,-18.62>}
    triangle
{<-10.32,6.514,-18.25>,<-10.32,-4.308,-18.25>,<-10.06,-4.308,-18.25>}
    triangle
{<-12.54,6.876,-18.25>,<-12.54,6.876,-18.62>,<-12.54,-4.671,-18.62>}
    triangle {<-10.06,6.514,-18.25>,<-10.06,6.514,-18.62>,<-5.196,6.514,-18.62>}
    triangle
{<-5.196,-4.308,-18.25>,<-5.196,-4.308,-18.62>,<-10.06,-4.308,-18.62>}
    triangle {<-4.857,6.876,-18.25>,<-4.857,6.876,-18.62>,<-10.06,6.876,-18.62>}
    triangle {<-10.32,6.876,-18.25>,<-10.32,6.876,-18.62>,<-12.54,6.876,-18.62>}
    triangle
{<-5.196,6.514,-18.25>,<-5.196,6.514,-18.62>,<-5.196,-4.308,-18.62>}
    triangle
{<-10.06,6.514,-18.25>,<-10.06,-4.308,-18.25>,<-10.06,-4.308,-18.62>}
    triangle
{<-4.857,-4.671,-18.25>,<-4.857,-4.671,-18.62>,<-4.857,6.876,-18.62>}
    triangle {<-10.06,6.876,-18.25>,<-10.06,6.876,-18.62>,<-10.32,6.876,-18.62>}
    triangle
{<-10.32,6.514,-18.62>,<-10.32,-4.308,-18.62>,<-10.32,-4.308,-18.25>}
    triangle
{<-10.06,6.514,-18.62>,<-10.06,-4.308,-18.62>,<-10.32,-4.308,-18.62>}
    texture{Window_tex}
    photons { refraction on  }
}
object {Window}
//--Shapes declare--
//--Shapes objects--

//--Lamps--

light_source {
    <-5.08,220,-251>
    color rgb<2.36, 2.36, 2.36>
    parallel
    point_at  <0, 0, -1>
}
light_source {
    <0,0,0>
    color rgb<0.1, 0.1, 0.1>
    media_interaction off
}

//--Cameras--

camera {
    perspective
    location  <0, 0, 0>
    look_at  <0, 0, -1>
    right <-1.7777777777777777, 0, 0>
    up <0, 1, 0>
    angle  96.805211
    rotate  <-0.361713, 87.896646, -0.000068>
    translate <14.365375, -4.016157, 0.601173>
}
//--Scattering media box--


Post a reply to this message

From: LanuHum
Subject: Re: Glass in window: problem with caustics
Date: 24 Aug 2013 09:20:00
Message: <web.5218b27b731993dc7a3e03fe0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:

> #declare Glass =
> mesh {
.....................
>     texture{Glass_tex}
>     photons {reflection on  target }

Sorry! In glass not refraction on.
It is necessary:
    photons {reflection on refraction on target } - Works :) :) :)
Thanks!


Post a reply to this message

From: Stephen
Subject: Re: Glass in window: problem with caustics
Date: 24 Aug 2013 10:07:41
Message: <5218be2d$1@news.povray.org>
On 24/08/2013 2:18 PM, LanuHum wrote:
> Sorry! In glass not refraction on.
> It is necessary:
>      photons {reflection on refraction on target } - Works:)  :)  :)
> Thanks!

Glad to have helped. ;-)

I would increase your max_trace_level a bit, though.

-- 
Regards
     Stephen


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Glass in window: problem with caustics
Date: 25 Aug 2013 08:45:08
Message: <5219fc54$1@news.povray.org>
LanuHum wrote:

> If not glass in window:
> very good reflection caustic in room from the sun. :)
> If is glass in window:
> not reflection caustic in room from the sun. :(

you may wish to add "pass_through" to the glass in window,
then photons should ignore it prior to hitting the target.


Post a reply to this message

From: LanuHum
Subject: Re: Glass in window: problem with caustics
Date: 25 Aug 2013 14:15:00
Message: <web.521a467b731993dc7a3e03fe0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:

> you may wish to add "pass_through" to the glass in window,
> then photons should ignore it prior to hitting the target.

Yes, work!
On this site good support.
Thanks to all! :)


Post a reply to this message

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