<?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: Sloped curved textures in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118699#M1632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo.&lt;/P&gt;&lt;P&gt;Yep seems to work, thanks Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Feb 2015 20:36:41 GMT</pubDate>
    <dc:creator>benleslie</dc:creator>
    <dc:date>2015-02-01T20:36:41Z</dc:date>
    <item>
      <title>Sloped curved textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118697#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to make this semi-circular block of houses and can't get the texture to work on the pitched roof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you'll see in the attached image the texture works on it's flat roofed brother using &lt;SPAN style="font-size: 10pt;"&gt;tileUV(0, 5, 5).&amp;nbsp; So is it possible to make it work on the slanty roofs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="slope_curve_roof.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/57169_slope_curve_roof.png" style="width: 620px; height: 448px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 21:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118697#M1630</guid>
      <dc:creator>benleslie</dc:creator>
      <dc:date>2015-01-30T21:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sloped curved textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118698#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;# Make this point at your roof textures folder. &lt;/P&gt;&lt;P&gt;attr slopedRoofTexture = fileRandom("assets/SlopedRoofs/*.jpg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set scale to your preference:&lt;/P&gt;&lt;P&gt;attr scaleX = 1.123&amp;nbsp; # or whatever you need.&lt;/P&gt;&lt;P&gt;attr scaleY = 4.567&amp;nbsp; # or whatever you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Send sloped roof shapes to this rule:&lt;/P&gt;&lt;P&gt;RoofTexture --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; alignScopeToGeometry(zUp, any, world.lowest)&amp;nbsp; # This aligns to bottom of roof shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection(0, scope.xy, scaleX, scaleY)&amp;nbsp; # UV layer 0, projecting to XY plane, using your scale X/Y.&lt;/P&gt;&lt;P&gt;&amp;nbsp; projectUV(0)&amp;nbsp; # Must do this after projection setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp; texture(slopedRoofTexture) # Apply chosen texture&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Let me know if this works,&lt;/P&gt;&lt;P&gt;# Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 22:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118698#M1631</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-01-30T22:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sloped curved textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118699#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo.&lt;/P&gt;&lt;P&gt;Yep seems to work, thanks Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 20:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/sloped-curved-textures/m-p/118699#M1632</guid>
      <dc:creator>benleslie</dc:creator>
      <dc:date>2015-02-01T20:36:41Z</dc:date>
    </item>
  </channel>
</rss>

