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:30:20 EDT (-0400)
  Re: How to create a beam inside a glass?  
From: Ziyan
Date: 21 May 2005 19:45:00
Message: <web.428fc7304282c60c90ff0fdd0@news.povray.org>
then I created a beam like that

light_source {<0, 0, 68>
    color rgb < 1.2, 1, 1.5>
    cylinder
    point_at <0,0,-68>
    photons {refraction on reflection on}
    translate <-27.5,-0.25,0>
}

cylinder{<0,0,-68>, < 0, 0, 68>,0.5
    hollow
    texture {pigment {color rgbf 1}}
    interior {
        media {
            scattering {1, color Red extinction 0}
            method 3
            intervals 1 samples 4}}
    photons {target}
    translate -27.5*x
}

// to pass through the object

#declare A = merge {object{cylinder {-65*z,65*z,0.4}}

                    object{box {<-0.4,-0.25,-65>,<0.4,0.25,65>}
                           translate 0.25*y  }}
object {A
        translate <-27.5,0,0>

        hollow
        pigment {
        color rgbf 0.7}
        interior {
        ior 1.55
        media {
            scattering {1, 1.5
                extinction 0.5
            }}}}

but nothing happens.....and even a Merge has separated surface.

Stephen McAvoy <mca### [at] aolcom> wrote:
> On Sat, 21 May 2005 19:13:53 EDT, "Ziyan" <beg### [at] hotmailcom>
> wrote:
>
> >Then how could I create a beam through a piece glass? I mean the length of
> >beam langer than that of glass. The beam inside and outside of glass should
> >be all visible.
> >
> >Could you help me?
> >
>
> Surround the cylinder with a box that has scattering media, use
> photons. Look at optics.pov in the sample scenes.
>
>
>
> Regards
>         Stephen


Post a reply to this message

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