POV-Ray : Newsgroups : povray.newusers : Photons Server Time
30 Jul 2024 14:27:50 EDT (-0400)
  Photons (Message 1 to 5 of 5)  
From: CFM
Subject: Photons
Date: 3 May 2004 14:25:01
Message: <web.40968d72d4d8861bb90c55f80@news.povray.org>
I'm new to POV-ray, and I can't get photons to refract through the glass
cylinder. Check out the programming language below, and see what I did
wrong.
#include "colors.inc"
#include "textures.inc"
#include "finish.inc"
#include "glass.inc"
global_settings {
  photons {
    count 20000
    autostop 0
    jitter .4
  }
}
camera {
  location <0,5,-10>
  look_at 2
}
light_source {<1000,1000,-1000>White
  photons {refraction on
           reflection on}}
background {rgb<.7,.7,1>}
plane {<0,1,0>,-1
  texture {pigment {
    granite
    turbulence 1
      pigment_map {
        [0, rgb<.2,.1,0>]
        [.5, rgb<.5,.3,.1>]
        [1, rgb<.8,.5,.2>]
    }}
  finish {ambient 1}
}
}
lathe {
  cubic_spline
  6,
  <1,0>,<1.1,0.1>,<1.1,4>,<.5,5>,<.3,7>,<.2,7.5>
  texture {pigment {Col_Glass_Beerbottle}}
  finish {ambient .3
          specular .5 roughness .01
  }
  translate 0
}
lathe {
  cubic_spline
  4,
  <.95,.01>,<1.05,.15>,<1.05,3.9>,<.95,4>
  pigment {Brown}
  finish {ambient .1}}
object {
  cylinder {<4,4,0>,<4,0,0>,1
  pigment {White filter .75}
  finish {ambient .15
          diffuse .5
          reflection .25
          /*irid {.3
                thickness .1
                turbulence 0}*/
} interior {dispersion 1.1}
} photons {
    target 2
    refraction on
    reflection off
    collect off
}
}


Post a reply to this message

From: The Afro
Subject: Re: Photons
Date: 3 May 2004 15:23:36
Message: <40969c38$1@news.povray.org>
"CFM" <nomail@nomail> wrote in message
news:web.40968d72d4d8861bb90c55f80@news.povray.org
> I'm new to POV-ray, and I can't get photons to refract through the
> glass cylinder. Check out the programming language below, and see

> interior {dispersion 1.1}

don't forget to include the ior in the interior statement, for glass it is
1.5 ish

T


Post a reply to this message

From: Alain
Subject: Re: Photons
Date: 3 May 2004 17:53:21
Message: <4096bf51$1@news.povray.org>
The Afro nous apporta ses lumieres ainsi en ce 2004/05/03 15:23... :

>"CFM" <nomail@nomail> wrote in message
>news:web.40968d72d4d8861bb90c55f80@news.povray.org
>  
>
>>I'm new to POV-ray, and I can't get photons to refract through the
>>glass cylinder. Check out the programming language below, and see
>>    
>>
>
>  
>
>>interior {dispersion 1.1}
>>    
>>
>
>don't forget to include the ior in the interior statement, for glass it is
>1.5 ish
>
>T
>
>
>  
>
Water ior around 1.3 to 1.4 for fresh to salt water.
Also, increase max_trace_level to around 12... That's the level I had to 
use to get rid of the warning. You have an ambient value of 1 for the 
ground, it hides the effect of the photons. Lower is or let it at the 
default value and increase the diffuse value if the ground is to dark 
(you may also lighten the colour map).

Alain


Post a reply to this message

From: Warp
Subject: Re: Photons
Date: 4 May 2004 09:07:28
Message: <40979590@news.povray.org>
Alain <aze### [at] qwertygov> wrote:
> Also, increase max_trace_level to around 12... That's the level I had to 
> use to get rid of the warning.

  I thought no warning is given if you explicitly specify a max_trace_level
(any value).

  And besides, it's not a question of getting rid of the warning. It's
a question of image quality vs. rendering speed ratio. If your image
looks good with a max_trace_level of 2, then by all means use it.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: CFM
Subject: Re: Photons
Date: 4 May 2004 16:45:00
Message: <web.4098002477466b42f1c8a6e90@news.povray.org>
I'll have to post elsewhere in the newsgroups because I need to post the
image of my sphere, and compare it with an ideal image I'm trying to
emulate. I'm still not getting the desired effects of refraction, and even
reflection. The prism barely shows at all.


Post a reply to this message

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