<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lamp Color in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55080#M38841</link>
    <description>yes doesnt seem to matter how many times one renders a scene there is something not quite right</description>
    <pubDate>Fri, 05 Nov 2004 11:37:40 GMT</pubDate>
    <dc:creator>Aussie John</dc:creator>
    <dc:date>2004-11-05T11:37:40Z</dc:date>
    <item>
      <title>Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55074#M38835</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How does the GDL lamp obtain its color from the color sampler wheel?  I don't see anything in the script that makes the reference......&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Nov 2004 09:13:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55074#M38835</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2004-11-05T09:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55075#M38836</link>
      <description>double click the colour button to bring up the colour wheel.&lt;BR /&gt;
The lamp uses RBG as defined by&lt;BR /&gt;
LIGHT_RED&lt;BR /&gt;
LIGHT_GREEN&lt;BR /&gt;
LIGHT_BLUE&lt;BR /&gt;
&lt;BR /&gt;
Dwight, Im not sure if that has answered your query</description>
      <pubDate>Fri, 05 Nov 2004 09:36:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55075#M38836</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2004-11-05T09:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55076#M38837</link>
      <description>This is a scripting query - probably built in to the system somehow....&lt;BR /&gt;
&lt;BR /&gt;
How is it done by the script?&lt;BR /&gt;
What makes the object reference work?</description>
      <pubDate>Fri, 05 Nov 2004 09:47:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55076#M38837</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2004-11-05T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55077#M38838</link>
      <description>by the 3 global variables  I guess&lt;BR /&gt;
dont you ever sleep btw?</description>
      <pubDate>Fri, 05 Nov 2004 10:14:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55077#M38838</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2004-11-05T10:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55078#M38839</link>
      <description>I am awake through caffeine and desperation. AAAAARGH.&lt;BR /&gt;
&lt;BR /&gt;
Took on this animation project because I was greedy and I am eating the black bird raw with feathers because I am such an idiot and am making stupid mistakes that eat time. Trying to pay for the 30" cinema display with one "simple" job. AAAAAAAARGH.&lt;BR /&gt;
&lt;BR /&gt;
Never mind obsequious approach to difficult client who changes mind on a whim, not that I am alone on this forum with such people. I imagine the suave method our AA uses with his clients. AAAAARGH.&lt;BR /&gt;
&lt;BR /&gt;
For instance - just blew twelve hours worth of animation [not that it was "work" thanks to the dual G5] by trying to save on render time by turning anti-aliasing and method down to just over basic. Granite counter tops and persian carpets all sparkly and dancing. AAAAAARGH.&lt;BR /&gt;
&lt;BR /&gt;
I am a napper. Anytime.&lt;BR /&gt;
&lt;BR /&gt;
PS: You are playing the steel guitar - Is it "Sweet Lailani" or "Yer Cheatin' Heart?" Just to see if you are Hawaiian or Country [have to be careful with the spelling of that word - Could get censored like I was talking about Emmy Lou Harris or something.]</description>
      <pubDate>Fri, 05 Nov 2004 10:22:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55078#M38839</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2004-11-05T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55079#M38840</link>
      <description>More of a banjo dobro kinda gut these days and in the country camp</description>
      <pubDate>Fri, 05 Nov 2004 11:35:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55079#M38840</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2004-11-05T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55080#M38841</link>
      <description>yes doesnt seem to matter how many times one renders a scene there is something not quite right</description>
      <pubDate>Fri, 05 Nov 2004 11:37:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55080#M38841</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2004-11-05T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55081#M38842</link>
      <description>dwight wrote:
&lt;BLOCKQUOTE&gt;How does the GDL lamp obtain its color from the color sampler wheel? I don't see anything in the script that makes the reference......&lt;/BLOCKQUOTE&gt;

Dwight:&lt;BR /&gt;
&lt;BR /&gt;
I had created some lights years ago, to get an understanding of how lights worked in ArchiCAD. For typical lights, it is the first 3 parameters of the &lt;FONT color="blue"&gt;LIGHT&lt;/FONT&gt; command that control the color. I took a brief look at the SunObject and the GDL Reference Guide, and see that additional parameters can be added to the &lt;FONT color="blue"&gt;LIGHT&lt;/FONT&gt; command for the LightWorks rendering engine. From the GDL Reference Guide:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;LIGHT red, green, blue, shadow,&lt;BR /&gt;
radius, alpha, beta, angle_falloff,&lt;BR /&gt;
distance1, distance2,&lt;BR /&gt;
distance_falloff [ ADDITIONAL_DATA name1 = value1,&lt;BR /&gt;
name2 = value2, ...]&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
The Sun Object is using the Additional_Data to get the light color values. From the SunObject:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="red"&gt;	light 0, 0, 0,				! RGB&lt;BR /&gt;
		0,						! shadow on/off&lt;BR /&gt;
		100,					! light cone radius&lt;BR /&gt;
		0,0,					! cone angle inner - outer&lt;BR /&gt;
		0,						! angle falloff&lt;BR /&gt;
		0,100,					! light start - stop&lt;BR /&gt;
		0 ADDITIONAL_DATA lwa_light = "LWA_LIdistant",&lt;BR /&gt;
		LWA_LIdistant_color = sunRGB,&lt;BR /&gt;
		LWA_LIdistant_colortemp = 6500,&lt;BR /&gt;
		LWA_LIdistant_intensity = Intensity,&lt;BR /&gt;
		LWA_LIdistant_intensityunits = "LWA_empirical",&lt;BR /&gt;
		LWA_LIdistant_location = lightLocation,&lt;BR /&gt;
		LWA_LIdistant_to = lightTo,&lt;BR /&gt;
		LWA_LIdistant_shadowtype = "LWA_hard",&lt;BR /&gt;
		LWA_LIdistant_shadows = gs_lwa_cast_shadows,&lt;BR /&gt;
		LWA_LIdistant_shadowtrans = 1,&lt;BR /&gt;
		LWA_LIdistant_scattering = 0&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
So it looks like the "LWA_LIdistant_color" is the parameter for light color. HTH.&lt;BR /&gt;
David</description>
      <pubDate>Fri, 05 Nov 2004 13:07:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55081#M38842</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2004-11-05T13:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp Color</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55082#M38843</link>
      <description>&lt;BLOCKQUOTE&gt;Dwight wrote:&lt;BR /&gt;How does the GDL lamp obtain its color from the color sampler wheel?  I don't see anything in the script that makes the reference......&lt;/BLOCKQUOTE&gt;

The RGB values of the color picker in a lamp object settings dialog are put into the D, E, G parameters.  For these, and the LW parameters, see:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/Lamp/Lamp.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/support/devel ... /Lamp.html"&gt;http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/Lamp/Lamp.html&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Given the LW params in the above doc, find their meanings/types (via search/find) in:&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/LightWorksIntegration/LW_Parameters.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/support/devel ... eters.html"&gt;http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/LightWorksIntegration/LW_Parameters.html&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
An overview of defining LW lamps etc is in:&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/LightWorksIntegration/LW_in_GDL.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/support/devel ... n_GDL.html"&gt;http://www.graphisoft.com/support/developer/documentation/wide/LibraryDevKit/LightWorksIntegration/LW_in_GDL.html&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
In particular, if passing an RGB value as a LW parameter note the following (an array is needed to hold the RGB values):&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;&lt;B&gt;Passing color and point parameters&lt;/B&gt;&lt;BR /&gt;
When adding a color or a point parameter to a lightsource, you have to create an array as you see it in the following contracted example: &lt;BR /&gt;
&lt;BR /&gt;
DIM colorRGB[3]&lt;BR /&gt;
colorRGB[1] = D&lt;BR /&gt;
colorRGB[2] = E&lt;BR /&gt;
colorRGB[3] = F&lt;BR /&gt;
&lt;BR /&gt;
light D * G/80, E * G/80, F * G/80,&lt;BR /&gt;
        ...&lt;BR /&gt;
        distFalloff ADDITIONAL_DATA lwa_light = "LWA_LIgsspot",&lt;BR /&gt;
        ...&lt;BR /&gt;
        LWA_LIgsspot_color = colorRGB,&lt;BR /&gt;
        ...&lt;/BLOCKQUOTE&gt;

Good luck, buddy!&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 05 Nov 2004 18:18:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-Color/m-p/55082#M38843</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-11-05T18:18:31Z</dc:date>
    </item>
  </channel>
</rss>

