Camera.dat workflow


RE: Camera.dat workflow
#4
(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.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Camera.dat workflow - by Michael Horvath - 2016-09-06, 21:33
RE: Camera.dat workflow - by Travis Cobbs - 2016-09-06, 23:53
RE: Camera.dat workflow - by Travis Cobbs - 2016-09-07, 4:37
RE: Camera.dat workflow - by Roland Melkert - 2016-09-07, 16:53
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 21:43
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 17:41
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 21:01
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-07, 11:51
RE: Camera.dat workflow - by Magnus Forsberg - 2016-11-07, 23:13
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-07, 23:51
RE: Camera.dat workflow - by Travis Cobbs - 2016-11-08, 3:39
RE: Camera.dat workflow - by Magnus Forsberg - 2016-11-08, 16:27
RE: Camera.dat workflow - by Philippe Hurbain - 2016-11-08, 19:33
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-09, 0:44

Forum Jump:


Users browsing this thread: 2 Guest(s)