<?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: Object always appears white in Elevationview but not in 3D in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387590#M455</link>
    <description>&lt;P&gt;The created window scripts are generated programmatically as a BIM export from another system. So the materials cannot be predefined, have to be created on the fly and the &lt;SPAN&gt;Attribute Manager no is an option&lt;/SPAN&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 16:37:03 GMT</pubDate>
    <dc:creator>Martin Walter</dc:creator>
    <dc:date>2023-07-14T16:37:03Z</dc:date>
    <item>
      <title>Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387110#M451</link>
      <description>&lt;P&gt;I create a window from polygons using texture. In 3D view everything works as expected: the texture shows up.&lt;/P&gt;
&lt;P&gt;But in elevationviews the windows are always white:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="!gdl texture.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/40171i9D9013E0FD3BEAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="!gdl texture.png" alt="!gdl texture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I figured out that this is caused by how I create the textures in GDL. I use the texture command like in the example 3 from GDL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE MATERIAL "Yellow Brick+*" 20,
1, 1, 0, ! surface RGB [0.0 .. 1.0]
0.58, 0.85, 0, 0,
! ambient, diffuse, specular, transparent
! coefficients [0.0 .. 1.0]
0, ! shining [0.0 .. 100.0]
0, ! transparency attenuation [0.0 .. 4.0]
0.878401, 0.513481, 0.412253, ! specular RGB [0.0 .. 1.0]
0, 0, 0, ! emission RGB [0.0 .. 1.0]
0, ! emission attenuation [0.0 .. 65.5]
IND(FILL, "common brick"), 61,
IND(TEXTURE, "Brick") ! Fill index, color index, texture index&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I set&amp;nbsp;Fill index=-1 and color index=-1&lt;/P&gt;
&lt;P&gt;because I have no idea what the color index is.&lt;BR /&gt;I would like to pass the color index of a self created RGB color.&lt;/P&gt;
&lt;P&gt;But I did not found a command in GDL like:&lt;/P&gt;
&lt;P&gt;DEFINE COLOR "dummyColor" ...&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 04:15:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387110#M451</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2023-07-18T04:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387197#M452</link>
      <description>&lt;P&gt;For color you can use &lt;SPAN class="red14b"&gt;REQUEST ("PEN_OF_RGB", colorRGB, penindex)&lt;/SPAN&gt; or "RGB_OF_PEN".&lt;/P&gt;
&lt;P&gt;There is no command "color index" or "Define Color". I think "color index" must be better named "pen index of fill"&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:20:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387197#M452</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-07-12T11:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387247#M453</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I solved the problem with the white windows in elavation view by settings the values for&amp;nbsp;surface RGB [0.0 .. 1.0] correctly. They were set to white. Now the color shows up correctly in elevation view.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So what does&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Fill index and color index do?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In what view/situation&amp;nbsp;can I see the difference in setting them or leave them -1?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 15:41:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387247#M453</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2023-07-12T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387280#M454</link>
      <description>&lt;P&gt;Not an answer to your question.&lt;/P&gt;
&lt;P&gt;But just curious.&lt;/P&gt;
&lt;P&gt;Do you have to define materials (or other attributes) at all?&lt;/P&gt;
&lt;P&gt;Can't you just use the attributes in your file?&lt;/P&gt;
&lt;P&gt;And if you don't have them, just create them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the Attribute Manager to import/export to other files and most importantly your template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you need your objects to be used in other files (that don't have those attributes and you don't want to use Attribute Manager) and you must have those specific attributes, then that is fine, DEFINE away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 01:19:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387280#M454</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-07-13T01:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387590#M455</link>
      <description>&lt;P&gt;The created window scripts are generated programmatically as a BIM export from another system. So the materials cannot be predefined, have to be created on the fly and the &lt;SPAN&gt;Attribute Manager no is an option&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:37:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387590#M455</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2023-07-14T16:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Object always appears white in Elevationview but not in 3D</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387827#M456</link>
      <description>&lt;P&gt;Fill and pen index are an attribute index. There is no value reserved as undefined.&lt;/P&gt;
&lt;P&gt;A negative fill index is for fills defined in the script, those are to be used through the &lt;A href="https://gdl.graphisoft.com/reference-guide/functions#IND_gdlcommand" target="_blank" rel="noopener"&gt;IND&lt;/A&gt; command.&lt;/P&gt;
&lt;P&gt;Fill 0 is an empty fill, &lt;SPAN&gt;GLOB_FILL_INDEX_BACKGROUND is the default background fill, and &lt;/SPAN&gt;&lt;SPAN&gt;GLOB_FILL_INDEX_SOLID is the default solid fill.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Pen -1 is opaque and pen 0 is transparent (when used as background pen of a fill).&lt;/P&gt;
&lt;P&gt;A positive index is to be used through a parameter, where the user can select the actual fill, and GDL will receive the corresponding index.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 13:07:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-always-appears-white-in-Elevationview-but-not-in-3D/m-p/387827#M456</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-07-17T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

