POV-Ray : Newsgroups : povray.text.scene-files : patterned light Server Time
1 Nov 2024 13:19:36 EDT (-0400)
  patterned light (Message 1 to 1 of 1)  
From: Mick Hazelgrove
Subject: patterned light
Date: 27 Feb 2000 13:51:41
Message: <38b9723d@news.povray.org>
Sorry posted this in the wrong place

file://light source with a tiny sphere around it with the desired pattern
applied?

#version unofficial MegaPov 0.4;

#include "colors.inc"

global_settings
{
  assumed_gamma 1.0
  max_trace_level 15
}

// ----------------------------------------
#declare Image_Length = 640;
#declare Image_Height = 480;

camera
{
  location  <0.0, 0.0, -25.0>
  direction 1.5*z
  right Image_Length/Image_Height*x
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere
{
  pigment
  {
    gradient y turbulence .3 lambda 3
    color_map { [0.0 color rgb <0,.45,.65>] [1.0 color rgb 1] }
  }
}

light_source{<10, 10,-10> color rgb 2 }

// ----------------------------------------

plane{y,-1 pigment{White}}

sphere{<10, 10,-10>,.0001
    texture{
         pigment {
          crackle file://turbulence .5
              color_map {
               [ 0.000 rgbf<0,1,0,1> ]
               [ 0.25 rgbf <0,0,1,1> ]
               [ 1.5 rgbf<1,0,0,1> ]
               [ 0.75 rgbf <0,0,1,1> ]
               [ 1.000 rgbf<0,1,0,1> ]
              } // color_map
               scale .00005
         } // pigment
 }//texture
}//sphere
sphere{0,5 pigment{rgbt<1,1,1,.75>}finish{specular 1 roughness .5}}
cylinder{y*-1,y*6,1 pigment{White}translate<-5,0,-5>}

--
*************************************************************
       http://www.minda.swinternet.co.uk/index.htm

*************************************************************



--
*************************************************************
       http://www.minda.swinternet.co.uk/index.htm

*************************************************************


Post a reply to this message

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