<?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: CityEngine- being able to choose texture for facades in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716007#M9380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, you have solved my problem. This rule is perfect!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 17:22:53 GMT</pubDate>
    <dc:creator>Rosa_</dc:creator>
    <dc:date>2015-06-03T17:22:53Z</dc:date>
    <item>
      <title>CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716002#M9375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm creating a real city in CE and I'm using a shape file for buildings. I must use different textures for each facade, so I should create a rule that allows me to choose the texture for each facade. Anyone can help me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 08:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716002#M9375</guid>
      <dc:creator>Rosa_</dc:creator>
      <dc:date>2015-06-03T08:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716003#M9376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a link to tutorials that have a lot of&lt;STRONG&gt; building rules&lt;/STRONG&gt; with the download; you can modify these to use your textures.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/communities/city-engine/01w90000000r000000.htm#s=0&amp;amp;n=30&amp;amp;d=1" title="http://resources.arcgis.com/en/communities/city-engine/01w90000000r000000.htm#s=0&amp;amp;n=30&amp;amp;d=1"&gt;CityEngine Gallery | ArcGIS Resource Center&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the file path of the textures in those rules (usually in "assets/textureName.jpg") and just add your own textures into the assets folder....("assets/YOURtextureName.jpg").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple way to select your own texture in the inspector window (with a browse button) is to make an attribute for your texture in the rule file.&lt;/P&gt;&lt;P&gt;for example....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr HEIGHT = 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr Mytextures = fileRandom("assets/Brick_Red_Wall.jpg") &lt;/STRONG&gt; #THIS MAKES TEXTURE SELECTABLE!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;Lot --&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(HEIGHT)MakeBuilding&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MakeBuilding --&amp;gt; comp(f){side : Facade | top : Roof }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facade --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy,'1,'1) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(Mytextures)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Roof --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(45,0,0,false,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow you to select a building in the scene...and choose its texture from the inspector window.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716003#M9376</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-06-03T14:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716004#M9377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your timely response. Does this rule allow to select a different texture for each facade of building?&lt;/P&gt;&lt;P&gt;If building has four facades, I should select four different texture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716004#M9377</guid>
      <dc:creator>Rosa_</dc:creator>
      <dc:date>2015-06-03T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716005#M9378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok...I think I understand. You want to select facades for different faces of a single model (such as walls).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to separate the walls in the code into individual components...and then write a rule for each one....for example....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr HEIGHT = 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr texturesFront = fileRandom("assets/Brick_Red_Wall.jpg")&lt;/P&gt;&lt;P&gt;attr texturesRight = fileRandom("assets/Brick_Red_Wall.jpg")&lt;/P&gt;&lt;P&gt;attr texturesLeft = fileRandom("assets/Brick_Red_Wall.jpg")&lt;/P&gt;&lt;P&gt;attr texturesBack = fileRandom("assets/Brick_Red_Wall.jpg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;Lot --&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(HEIGHT)Bldg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Bldg --&amp;gt; comp(f){front : FacadeFront | right : FacadeRight | left : FacadeLeft | back : FacadeBack | top : Roof }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FacadeFront --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy,'1,'1) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(texturesFront)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FacadeRight --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy,'1,'1) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(texturesRight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FacadeLeft --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy,'1,'1) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(texturesLeft)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FacadeBack --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy,'1,'1) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(texturesBack)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Roof --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(45,0,0,false,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this may be a bad way to do it if you do not have exactly 4 walls. I would suggest clicking on your "Help" option and search for the "Comp Split Operation".&amp;nbsp; It will give you an idea of how the rule file identifies a single face.&lt;/P&gt;&lt;P&gt;But again, there are lots of rules online (mostly inside of tutorial downloads) that work great and can be modified to do what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716005#M9378</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-06-03T16:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716006#M9379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, be sure your facade pictures (jpg, png, etc..) are saved in your assets folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716006#M9379</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-06-03T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716007#M9380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, you have solved my problem. This rule is perfect!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 17:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716007#M9380</guid>
      <dc:creator>Rosa_</dc:creator>
      <dc:date>2015-06-03T17:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine- being able to choose texture for facades</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716008#M9381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem. Would you be willing to share this rule with me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 16:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-being-able-to-choose-texture-for/m-p/716008#M9381</guid>
      <dc:creator>BenjaminChmiel</dc:creator>
      <dc:date>2016-12-23T16:03:31Z</dc:date>
    </item>
  </channel>
</rss>

