<?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: Building texture in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587182#M7929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Lot rule, you have a copy of the shape defined with 'Building'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try deleting this line and check how this works out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 10:53:35 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2012-10-30T10:53:35Z</dc:date>
    <item>
      <title>Building texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587181#M7928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add random texture to the my buildings by using the code provided in the tutorial with minor changes. When I assign the rule to the building polygons and generate, the result was mixed: some buildings has texture applied to them, while other remain blank (white). In some case, only one or two sides of the building have texture, but the rest is blank. Please view screenshot as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://i5.photobucket.com/albums/y175/Sarah_as_Dagger/texture.jpg" rel="nofollow" target="_blank"&gt;&lt;IMG src="http://i5.photobucket.com/albums/y175/Sarah_as_Dagger/texture.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here's my rule file code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;const randomFacadeTexture = fileRandom("data/facade_textures/f*.tif") attr floorheight = rand(4,5)&amp;nbsp; actualFloorHeight =&amp;nbsp;&amp;nbsp; case scope.sy &amp;gt;= floorheight : scope.sy/rint(scope.sy/floorheight)&amp;nbsp; else : scope.sy&amp;nbsp;&amp;nbsp; actualTileWidth =&amp;nbsp;&amp;nbsp; case scope.sx &amp;gt;= 2 : scope.sx/rint(scope.sx/4)&amp;nbsp; else : scope.sx&amp;nbsp; Lot --&amp;gt;&amp;nbsp; extrude(HEIGHT)&amp;nbsp; comp(f){front: Facade | side: Facade | top: Roof }&amp;nbsp; Building.&amp;nbsp; Facade --&amp;gt;&amp;nbsp; setupProjection(0, scope.xy, 8*actualTileWidth, 8* actualFloorHeight)&amp;nbsp; texture(randomFacadeTexture)&amp;nbsp; projectUV(0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My building layer has 9000+ polygon. I wonder if that is a problem if the number of polygon/faces is too large.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587181#M7928</guid>
      <dc:creator>Thu_GiangDang</dc:creator>
      <dc:date>2012-10-30T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Building texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587182#M7929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Lot rule, you have a copy of the shape defined with 'Building'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try deleting this line and check how this works out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 10:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587182#M7929</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-10-30T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Building texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587183#M7930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!! It works like magic! What is the reason behind this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 03:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587183#M7930</guid>
      <dc:creator>Thu_GiangDang</dc:creator>
      <dc:date>2012-10-31T03:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Building texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587184#M7931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Haha, no magic at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; A.&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;copies the shape of Lot to A.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; B.&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;copies to B, logically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you write&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; A.
&amp;nbsp;&amp;nbsp;&amp;nbsp; B.&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;the shape coming from Lot is copied to A. and duplicated to B. So there's 2 copies of on top of each other.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;test this with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp;&amp;nbsp;&amp;nbsp; A.
&amp;nbsp;&amp;nbsp;&amp;nbsp; t(0,10,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; B.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please watch all Tutorial videos, find them here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Especially, the CGA basics are explained, see tuto 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/building-texture/m-p/587184#M7931</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-12T01:14:39Z</dc:date>
    </item>
  </channel>
</rss>

