POV-Ray : Newsgroups : povray.newusers : How to create a beam inside a glass? : Re: How to create a beam inside a glass? Server Time
29 Jul 2024 18:26:17 EDT (-0400)
  Re: How to create a beam inside a glass?  
From: Bob Hughes
Date: 21 May 2005 13:36:03
Message: <428f7183$1@news.povray.org>
"Ziyan" <beg### [at] hotmailcom> wrote in message 
news:web.428f5bf3650d078490ff0fdd0@news.povray.org...
> The glass has a form of cylinder and the refraction index 1.33(ior 1.33).
> How to create a beam inside it?

Add 'media' for the light beam to interact with the object. Maybe something 
like the following:

global_settings {
    assumed_gamma 1.0
}

cylinder {
    0, 2*y, 1
    hollow // must be hollow
    pigment {
        rgbt 0.9 // not entirely transparent
    }
    interior {
        ior 1.33
        media {
            scattering {
                1, 1.5 // isotropic type, and amount of scatter
                extinction 0.5 // fades out if >0
            }
        }
    }
}

light_source {
    <1,9,1>, 1
    cylinder // for the "beam" appearance, otherwise use 'spotlight'
    point_at <0,0,0>
    radius 0.1
    falloff 0.2
}

camera {
    location <0,1,-4>
    look_at y
}


Post a reply to this message

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