<?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 Material texture definition and alpha-channel transparency in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245291#M10654</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there!&lt;BR /&gt;
I tried to make tree objects that include their bitmaps using a code like in the AC 18 library tree object:&lt;BR /&gt;
&lt;BR /&gt;
DEFINE TEXTURE "TextureTree3D" 1,   A,   B,    1,   0&lt;BR /&gt;
DEFINE MATERIAL "TreeMat3D" 20,&lt;BR /&gt;
	0, 0, 0,&lt;BR /&gt;
	0.58, 0.85, 0.2, valueOpacity,&lt;BR /&gt;
	50,&lt;BR /&gt;
	0,&lt;BR /&gt;
	0.878401, 0.513481, 0.412253,&lt;BR /&gt;
	0, 0, 0,&lt;BR /&gt;
	0,&lt;BR /&gt;
	ind(fill, "emptyFill"), 1,&lt;BR /&gt;
	ind(texture, "TextureTree3D")&lt;BR /&gt;
&lt;BR /&gt;
The pictures are saved in the object and the code refers them by number&lt;BR /&gt;
(DEFINE TEXTURE "TextureTree3D" &lt;FONT color="#ff009a"&gt;1&lt;/FONT&gt;,   A,   B,    1,   0)&lt;BR /&gt;
&lt;BR /&gt;
So I saved a .png bitmap with alpha channel as an object and added this code. It worked but the alpha channel transparency was not found.&lt;BR /&gt;
&lt;BR /&gt;
Did I miss something? Or is there a special way to save pictures in objects for this purpose? (ref. GDL manual page 213)&lt;BR /&gt;
&lt;BR /&gt;
I think it is convinient to save bitmaps together with objects, but they need to be transparent.&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Feb 2015 15:35:39 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2015-02-11T15:35:39Z</dc:date>
    <item>
      <title>Material texture definition and alpha-channel transparency</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245291#M10654</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there!&lt;BR /&gt;
I tried to make tree objects that include their bitmaps using a code like in the AC 18 library tree object:&lt;BR /&gt;
&lt;BR /&gt;
DEFINE TEXTURE "TextureTree3D" 1,   A,   B,    1,   0&lt;BR /&gt;
DEFINE MATERIAL "TreeMat3D" 20,&lt;BR /&gt;
	0, 0, 0,&lt;BR /&gt;
	0.58, 0.85, 0.2, valueOpacity,&lt;BR /&gt;
	50,&lt;BR /&gt;
	0,&lt;BR /&gt;
	0.878401, 0.513481, 0.412253,&lt;BR /&gt;
	0, 0, 0,&lt;BR /&gt;
	0,&lt;BR /&gt;
	ind(fill, "emptyFill"), 1,&lt;BR /&gt;
	ind(texture, "TextureTree3D")&lt;BR /&gt;
&lt;BR /&gt;
The pictures are saved in the object and the code refers them by number&lt;BR /&gt;
(DEFINE TEXTURE "TextureTree3D" &lt;FONT color="#ff009a"&gt;1&lt;/FONT&gt;,   A,   B,    1,   0)&lt;BR /&gt;
&lt;BR /&gt;
So I saved a .png bitmap with alpha channel as an object and added this code. It worked but the alpha channel transparency was not found.&lt;BR /&gt;
&lt;BR /&gt;
Did I miss something? Or is there a special way to save pictures in objects for this purpose? (ref. GDL manual page 213)&lt;BR /&gt;
&lt;BR /&gt;
I think it is convinient to save bitmaps together with objects, but they need to be transparent.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:35:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245291#M10654</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2015-02-11T15:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material texture definition and alpha-channel transparen</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245292#M10655</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Have you tried;&lt;BR /&gt;

&lt;PRE&gt;PICTURE name, a, b, mask&lt;/PRE&gt;

It has a transparency mask.&lt;BR /&gt;
&lt;BR /&gt;
Can't test right now, but possibly allows &lt;BR /&gt;
picture index instead of the name string.</description>
      <pubDate>Thu, 12 Feb 2015 17:57:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245292#M10655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Material texture definition and alpha-channel transparen</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245293#M10656</link>
      <description>Hi Juha!&lt;BR /&gt;
It is necessary to have polygons, not a picture because I want to export the 3d model to other programs like Renderlights. Picture has no polygons...&lt;BR /&gt;
There are also other problems: if you define more than one material there is a change that you get no textures. In that case changing the names of the materials brings textures back to life. Anyway GS tree object seems to work fine, also .skp export is doing fine. But when I use self-coded materials , the export fails.</description>
      <pubDate>Thu, 12 Feb 2015 20:33:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-texture-definition-and-alpha-channel-transparency/m-p/245293#M10656</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2015-02-12T20:33:15Z</dc:date>
    </item>
  </channel>
</rss>

