POV-Ray : Newsgroups : povray.general : Lightsys Reflective Spectral data Server Time
2 Aug 2024 02:24:42 EDT (-0400)
  Lightsys Reflective Spectral data (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Jaime Vives Piqueres
Subject: Re: Lightsys Reflective Spectral data
Date: 16 Apr 2005 05:19:52
Message: <4260d8b8$1@news.povray.org>
fls13 wrote:
> Ah, and how do you do that? :O) 

   Ouch! ...I thought the demos will show that, but obviously I 
commented them poorly.

> alone if I understood how. I set up a page with some figure meshes hacked
> into the demos and the camera moved about.
> http://www.geocities.com/fls13ec/PovTest-Lightsys4.html

   These look very nice... you seem to have fit the scale very well.

> For example, what do the .inc files actually include? I see in
> lightsys_constants.inc file certain brands of light bulbs are assigned a
> certain amount of lumens. Then there is a relationship with a spline that
> is defined in either espd_cie_standard.inc or espd_lightsys.inc. At least I
> think. 

   The contents of the include files are explained on the readme files, 
and it's too long to explain here, but about the constants, there are 
basically 3 types: typical lumens intensity values, typical color 
temperatures on kelvin degrees, and usual light colors in rgb format 
converted from spectral data (the splines contain the spectral data for 
the light bulbs, which are converted to rgb colors with the help of the 
CIE macros). You need usually these 3 types of data as parameters for 
the Lightsys and CIE macros.

> How do you insert in a scene a GE 100 watt lightbulb in a particular
> location, like a lamp? 

   Use the Light() macro supplying the desired parameters:

   object{
    Light(
     EmissiveSpectrum(ES_GE_SW_Incandescent_100w), // direct conversion
     Lm_Incandescent_100w, // from lightsys_constants.inc
     0,0,0,0,0 // no area_light nor cosine falloff spotlight
    )
   }

   or if you prefer to use the light_source directly (to tweak other 
features), there are some "sub-macros" which can be used to have the 
same result:

   light_source{
     <0,0,0>
     Light_Color(
      EmissiveSpectrum(ES_GE_SW_Incandescent_100w),
      Lm_Incandescent_100w
     )
     Light_Fading()
   }

> Or how about sunlight streaming through a window
> into a room?

   Just replace the spectrum with a sunlight one. Or use the Daylight() 
macro for a calculation based on the kelvin temperature: see the 
demo_outdoor scene... I know the demos are not very well commented, but 
I think it should not be too hard to simply grasp the basic usage of the 
main macros to use them on your own scenes. Or so I hope... perhaps I 
should write some more examples, if I find someday my didactic vein.

--
Jaime


Post a reply to this message

From: fls13
Subject: Re: Lightsys Reflective Spectral data
Date: 20 Apr 2005 18:00:00
Message: <web.4266d05278358dd8d0b684880@news.povray.org>
Jaime,
     Thanks for the kind comments on my tests.  I thought you had forgotten
me. I am very anal about learning new applications and got frustrated quick
too with lightsys. But, I have forced myself to learn POV better. Found the
sunpos.inc file in the bowels of the program. Very neat! :O) Your comments
help me and after a little break from 3D, I am back on it. Would be happy
to help with some tutorials, once I get the hang of it. More questions may
follow.

Thanks,
Frank


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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