POV-Ray : Newsgroups : povray.binaries.images : strange: light goes through wall Server Time
17 Nov 2024 22:17:58 EST (-0500)
  strange: light goes through wall (Message 1 to 2 of 2)  
From: marabou
Subject: strange: light goes through wall
Date: 4 Jul 2002 05:52:30
Message: <3d241ada@news.povray.org>
as i wanted to proof from where my spotlight does come i found a strange 
thing: the light goes through a wall a can be seen on the wall behind! and 
no shadows can be seen! 
how could this happen? 

here is a code fragment:

//--------------------------------------
#macro Spotlight(noBox, goColor, ang_x, ang_y, ang_z, trans_x, trans_y, 
trans_z, radi, fallo)
//--------------------------------------

union{
#if (!noBox)
box{
        <-0.1,-0.1,0.01>,<0.1,0.1,0.05>
        pigment {color goColor*2}
        finish{
                ambient 1
        }
}
#end//if

#declare myradius = radi;
#declare myfalloff = fallo;

#declare area_no = 4;

light_source{
        <0,0,0>
        color goColor*2

        spotlight
        point_at <0,0,10>
        area_light <-0.5,-0.5,0>,<0.5,0.5,0>,area_no,area_no
        adaptive 1
        jitter
        radius myradius
        falloff myfalloff
        tightness 10
}

rotate <ang_x, ang_y, ang_z>
translate <trans_x, trans_y, trans_z>

}//union

#end //Spotlight()


box{
        <-0.5,-0.5,-0.005>,<0.5,0.5,0.5>
        pigment {color White}
        translate <0,0,-0.05>
}

object{
        Spotlight(0,<193,255,194>/255, 0, 0, 0, 0, 0.2, -0.5, 20, 20)
}


Post a reply to this message


Attachments:
Download 'strange.jpg' (21 KB)

Preview of image 'strange.jpg'
strange.jpg


 

From: marabou
Subject: Re: strange: light goes through wall
Date: 5 Jul 2002 04:13:47
Message: <3d25553b@news.povray.org>
for all those who had a lough about last post: i found the mistake now.


Post a reply to this message

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