POV-Ray : Newsgroups : povray.general : The question about of projected through option : Re: The question about of projected through option Server Time
20 Apr 2024 06:30:37 EDT (-0400)
  Re: The question about of projected through option  
From: Masaki 
Date: 18 Dec 2017 06:45:00
Message: <web.5a37a9c351d01bcdc32dd2d00@news.povray.org>
I appreciate for your kind advice.

I started pov-ray recently, so it takes some time to understand the all advice.
I would like to try the two way, projected through and spotlights.

The projected through puzzled me, so I have to consider.

There are two questions about using spotlight.




The reason why I place the 10 lights is that I want to know the response when
the light source moves in the depth direction, but I am very happy if the
reasonable result is obtained from the one light at first.

I post again the source code with object (hexagonal prism).

////////////////////////////////////////////////
#include "colors.inc"
#include "textures.inc"

background{Black}

camera {

    location <0, -3, 0>
    right <-1.33, 0, 0>
    angle 40
    look_at <0, 0.5, 0>
  }



//Object
object {
  prism {
    linear_sweep
    linear_spline
    0.
    1.
    7.
    <2,0>, <1,1.7320508>, <-1,1.7320508>, <-2,0>, <-1, -1.7320508>,
<1,-1.7320508>, <2,0>

       hollow


      material {


         texture {

            pigment { rgbf<1.0, 1.0, 1.0, 0.7> }

            finish {
               specular 1
               roughness 0.001
               ambient 0
               diffuse 0

               reflection {
                  0.1
                  fresnel on
               }

               conserve_energy
            }

         }

      }

      interior {
         ior 1.458
         fade_distance 1.0
         fade_power 2
      }
    }
}

 //Source
 #declare r2 = seed(12345);
 #declare I = 0;
 #declare Number = 10;



 #while (I < Number)

 #declare A = rand(r2);

 #declare Object1 = torus {
                            0.1, 0.05
                            sturm
                            translate <0, A-0.1, 0>

 }





 light_source {

        <0, A, 0>
        color
        projected_through {Object1}

        }



#declare I = I+1;
#end
/////////////////////////////////////////////////////////////////

Regards,

Masaki


Post a reply to this message

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