<?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: Random Textures on Multipatch Buildings in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262026#M3449</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;maybe they all share the same 'seed' value. Check the shape's info tab in the Inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or simple Shapes &amp;gt; Reset Seed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;( note : if the shapes share the same seed, they may all get the same 'random value', thus the same texture )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 12:36:34 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2013-09-24T12:36:34Z</dc:date>
    <item>
      <title>Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262025#M3448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ESRI CityEngine 2012.1. I am new to ESRI CityEngine and I could use some help to apply a random texture, e.g. roof texture (Pantile_*.tga), to buildings imported from an ESRI Multipatch file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found two similar threads on this forum &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/71808-Random-texture" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/71808-Random-texture&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/81351-Texture-random-and-depending-on" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/81351-Texture-random-and-depending-on&lt;/A&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but unfortunately I still cannot quiet figure it out: All the buildings get the same roof texture???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;version "2012.1"&amp;nbsp; texPath = "assets/roofs/" const textureIndex = rint(rand(0, 2))&amp;nbsp; @StartRule Lot --&amp;gt;&amp;nbsp; cleanupGeometry(all, 0.1) Houses&amp;nbsp;&amp;nbsp; Houses --&amp;gt;&amp;nbsp; alignScopeToAxes()&amp;nbsp; comp(f){&amp;nbsp; &amp;nbsp; vertical: Facade |&amp;nbsp; &amp;nbsp; aslant: Roof&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; Roof --&amp;gt;&amp;nbsp; alignScopeToGeometry(zUp, any, world.lowest)&amp;nbsp; setupProjection(0, scope.xy, 3, 3, 1)&amp;nbsp; projectUV(0)&amp;nbsp; texture ( texPath + "Pantile_" + textureIndex + ".tga" )&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I hope that someone can give me some additional tips. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kareen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262025#M3448</guid>
      <dc:creator>KareenBröker</dc:creator>
      <dc:date>2013-09-23T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262026#M3449</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;maybe they all share the same 'seed' value. Check the shape's info tab in the Inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or simple Shapes &amp;gt; Reset Seed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;( note : if the shapes share the same seed, they may all get the same 'random value', thus the same texture )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262026#M3449</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-24T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262027#M3450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your answer, Matthias!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the shape�??s info tab in the Inspector it says: �??&lt;/SPAN&gt;&lt;STRONG&gt;Random Seed: -217278&lt;/STRONG&gt;&lt;SPAN&gt;�?� and there is one OID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the function �??&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Shapes -&amp;gt; Reset Seed&lt;/SPAN&gt;&lt;SPAN&gt;�?� (which runs the CGA rule again). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still get the same result. The textures are still not chosen randomly�?�&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 08:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262027#M3450</guid>
      <dc:creator>KareenBröker</dc:creator>
      <dc:date>2013-09-25T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262028#M3451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how many shapes to you have, on which you create buildings ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a const() value is evaluated exactly once PER SHAPE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so if all your buildings are constructed on the same shape, all will get the same textures. (there's ways around this too)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lemme know. (maybe post a screenshot too )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 09:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262028#M3451</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-25T09:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262029#M3452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what I am doing prior applying the CGA rule:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I start with &lt;/SPAN&gt;&lt;STRONG&gt;SOSI vector data&lt;/STRONG&gt;&lt;SPAN&gt;, a common Norwegian geospatial interchange format that defines building footprints and other building information. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use a tool called &lt;/SPAN&gt;&lt;STRONG&gt;Xfactor+&lt;/STRONG&gt;&lt;SPAN&gt; which can read these SOSI files and generate building models based on them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I export these buildings (polygons) as &lt;/SPAN&gt;&lt;STRONG&gt;one MultiPatch / File GDB &lt;/STRONG&gt;&lt;SPAN&gt;which I import in CityEngine in order to add textures to the buildings. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enclosed please find a screenshot of the scene in CityEngine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that I only have one shape for all the buildings in the scene. But you mentioned there is a way around this, too? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262029#M3452</guid>
      <dc:creator>KareenBröker</dc:creator>
      <dc:date>2013-09-25T11:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262030#M3453</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 thought the scenario was a bit different, but that's ok .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, you need to do Shape &amp;gt; Separate Faces. This will 'explode' all polygons. You then need to select all shapes which belong to 1 building and Shape &amp;gt; Combine Faces again. Basically creating n new shapes from that 1 shape, where n = number of buildings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this can be done manually in CityEngine, but that's a pain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Easier would be to pre-process the data and create 1 shape per building, maybe based on some building ID attibute, ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should solve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262030#M3453</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-25T16:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Random Textures on Multipatch Buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262031#M3454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that solves the issue. Thank you for helping me, Matt! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 09:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-textures-on-multipatch-buildings/m-p/262031#M3454</guid>
      <dc:creator>KareenBröker</dc:creator>
      <dc:date>2013-09-26T09:10:33Z</dc:date>
    </item>
  </channel>
</rss>

