(2016-09-07, 1:06)Michael Horvath Wrote: Does your program still support "light.dat"? I tested it and all I see is this code:
Code:#declare LDX_light_dot_dat =
#if (LDXQual = 0)
box {
<-4,-4,-4>,<4,4,4>
}
#else
union {
// Pov-RAY Light Source
// Name: light.dat
// Author: James Jessiman
// !LDRAW_ORG Part ORIGINAL
// !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
// !HISTORY 2007-07-29 [PTadmin] Header formatted for Contributor Agreement
// !HISTORY 2008-07-01 [PTadmin] Official Update 2008-01
}
#end
The code block appears empty except for comments, so I think it is not working.
LDView has never supported light.dat for POV exports. Having said that, it would be possible to create an file named light_dat.inc with a light definition inside it and add a reference to that inc file in LGEO.xml for light.dat. The light_dat.inc file could look something like so:
Code:
#declare LDX_light_dot_dat =
light_source {
<0,0,0>
color rgb <1,1,1>
}
The new entry in LGEO.xml would go in the <Elements> section, and would look like this:
Code:
<Element>
<LDrawFilename>light.dat</LDrawFilename>
<POVName>LDX_light_dot_dat</POVName>
<POVFilename>light_dat.inc</POVFilename>
<MatrixRef>LGEOTransform</MatrixRef>
</Element>
One down side is that it would ignore the color, and I don't think there's anything that can be done about that.