|
![](/i/fill.gif) |
> I hoped for something like:
>
> light_source {
> <20,30,-10>
> elumdat "BE1017.ldt"
> rgb <1,0.9,0.8>
> }
Hi,
here a fragment of a generated povray source file:
light_source
{
<0,0,0>
color <1,1,1>
// IMax = 18076
ldt_data
{
// number of C and G angles, total flux of luminaire
36, 36, 2200,
// fully expanded ldt table
18.076, 1.454, 0.11, 0.045, 0.063, 0.003, 0.003,
0.002, 0.002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002,
[ ........34 rows deleted here]
16.076, 1.354, 0.10, 0.045, 0.063, 0.003, 0.003,
0.002, 0.002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002, 0.0002,
0.0002
}
looks_like
{
//geometry of luminaire here...
}
rotate <0, -90, 0>
translate <0.475,3,1.31976>
// move the ldt without the geometry (was needed for some special
luminaires)
ldt_translate <0,-0.125,0>
}
All values between the given angles are linear interpolated, and because
they are polar
coordinates, this is more than enough for smooth results.
so for example
ldt_data
{
1,1, 100,
1
}
would be a perfect point light again.
Since the format is close to the existing formats, it would be easy to write
a converter
for example from IES or EULUMDAT .
Martin Hellwig
DIAL GmbH
http://www.dial.de
Post a reply to this message
|
![](/i/fill.gif) |