<?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: City Engine - being able to choose texture for roofs in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555028#M7496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 4 pngs that I want to use as textures and to be able to choose between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you wrote for the shed type, automatically the texture will be slate.png.&lt;/P&gt;&lt;P&gt;How should I write to be able to choose between those 4 textures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 09:18:08 GMT</pubDate>
    <dc:creator>IonutAlixandroae</dc:creator>
    <dc:date>2014-09-04T09:18:08Z</dc:date>
    <item>
      <title>City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555026#M7494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem regarding importing some texture jpgs as texture for roof and then creating a rule that gives me the possibility to choose a texture for a random roof from those 4 jpgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 types of roofs and I created a rule that those 4 textures would apply for a specific roof type but I want also to be able to change the texture without changing the type. &lt;/P&gt;&lt;P&gt;Example : for Pyramid type I have a Zinc texture, but also I want to be able for the same type to change to a Slate texture&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the rule :&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 = 4&lt;/P&gt;&lt;P&gt;@Range ( "pyramid", "shed", "gable", "hip")&lt;/P&gt;&lt;P&gt;attr RoofType = "random"&lt;/P&gt;&lt;P&gt;attr RoofHeight = rand (4,6)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const function_RoofType = &lt;/P&gt;&lt;P&gt;&amp;nbsp; case RoofType == "random" :&lt;/P&gt;&lt;P&gt;&amp;nbsp; 30% : "pyramid"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 20% : "shed"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 20% : "hip"&lt;/P&gt;&lt;P&gt;&amp;nbsp; else : "gable"&lt;/P&gt;&lt;P&gt;&amp;nbsp; else : RoofType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;##Casa1##&lt;/P&gt;&lt;P&gt;Casa1 --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; extrude(world.y, Height)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cladire&lt;/P&gt;&lt;P&gt;Cladire --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; comp(f) {side: SideFacade | top:&amp;nbsp; Roof }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roof --&amp;gt;&lt;/P&gt;&lt;P&gt; case function_RoofType == "shed" :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofShed(45)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,RoofHeight,'1) # scale to the correct height&lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection (1, scope.xy, scope.sx, scope.sy)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture("Paris/assets/parisianRoofs/slate.png")&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; case function_RoofType == "hip" :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofHip(45)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,RoofHeight,'1) # scale to the correct height&lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection (1, scope.xy, scope.sx, scope.sy)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture("Paris/assets/parisianRoofs/tile.png")&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; case function_RoofType == "gable" :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofGable(45)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,RoofHeight,'1) # scale to the correct height&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection (1, scope.xy, scope.sx, scope.sy)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture("Paris/assets/parisianRoofs/zinc1.png")&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0) &lt;/P&gt;&lt;P&gt; else :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofPyramid(45)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,RoofHeight,'1) # scale to the correct height&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection (1, scope.xy, scope.sx, scope.sy)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture("Paris/assets/parisianRoofs/zinc2.png")&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SideFacade --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection(0, scope.xy, '1, '1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture("Textura/casa1-2.jpg")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 08:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555026#M7494</guid>
      <dc:creator>IonutAlixandroae</dc:creator>
      <dc:date>2014-09-04T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555027#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make the line that selects the texture an attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;attr Texture = ("Paris/assets/parisianRoofs/slate.png")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will look like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;Roof --&amp;gt;&lt;/P&gt;&lt;P&gt; case function_RoofType == "shed" :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofShed(45)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,RoofHeight,'1) # scale to the correct height&lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection (1, scope.xy, scope.sx, scope.sy)&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture(Texture)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555027#M7495</guid>
      <dc:creator>johne</dc:creator>
      <dc:date>2014-09-04T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555028#M7496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 4 pngs that I want to use as textures and to be able to choose between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you wrote for the shed type, automatically the texture will be slate.png.&lt;/P&gt;&lt;P&gt;How should I write to be able to choose between those 4 textures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555028#M7496</guid>
      <dc:creator>IonutAlixandroae</dc:creator>
      <dc:date>2014-09-04T09:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555029#M7497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've moved your post into the &lt;A href="https://community.esri.com/space/2148"&gt;CityEngine&lt;/A&gt; space. You will get a much better answer here as posting to the entire community allows everyone to see it on the home page, but no one is notified of your recent activity like a group can do. You can see more on the community structure, and what topics are under each space from the following documents:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1544" data-objecttype="102" href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="1545" data-objecttype="102" href="https://community.esri.com/docs/DOC-1545"&gt;ArcGIS Discussion Forums Migration Strategy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Timothy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 11:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555029#M7497</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2014-09-04T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555030#M7498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 11:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555030#M7498</guid>
      <dc:creator>IonutAlixandroae</dc:creator>
      <dc:date>2014-09-04T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine - being able to choose texture for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555031#M7499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. it will give you the slate.png as the default in the rule but since Texture will appear on the inspector you can browse any other file to replace the slate.png besides your four textures&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 11:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-being-able-to-choose-texture-for-roofs/m-p/555031#M7499</guid>
      <dc:creator>johne</dc:creator>
      <dc:date>2014-09-04T11:57:17Z</dc:date>
    </item>
  </channel>
</rss>

