<?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 Texture deterioration in City engine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-deterioration-in-city-engine/m-p/124521#M1682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a model in city engine&amp;nbsp;for feature class called "Landscape" . Using texture method I render one jpg file. After rendering in city engine the texture get collapsed (ref attached snapshot). The CGA is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr textureScaleX =100&lt;BR /&gt;attr textureScaleY = 100&lt;BR /&gt;const facadeDirectory = "assets/BrickWoodStone/"&lt;/P&gt;&lt;P&gt;Landscape --&amp;gt;&lt;BR /&gt; comp(f) {object.top: Landscapeface} &lt;/P&gt;&lt;P&gt;Landscapeface --&amp;gt;&lt;BR /&gt;setupProjection(0, scope.xy, textureScaleX, textureScaleY)&lt;BR /&gt; projectUV(0)&lt;BR /&gt;texture(facadeDirectory + "Landscape.jpg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JPG file size is 56kb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know how to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K.Jayakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jan 2018 04:21:22 GMT</pubDate>
    <dc:creator>JayakumarKamalakkannan</dc:creator>
    <dc:date>2018-01-21T04:21:22Z</dc:date>
    <item>
      <title>Texture deterioration in City engine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-deterioration-in-city-engine/m-p/124521#M1682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a model in city engine&amp;nbsp;for feature class called "Landscape" . Using texture method I render one jpg file. After rendering in city engine the texture get collapsed (ref attached snapshot). The CGA is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr textureScaleX =100&lt;BR /&gt;attr textureScaleY = 100&lt;BR /&gt;const facadeDirectory = "assets/BrickWoodStone/"&lt;/P&gt;&lt;P&gt;Landscape --&amp;gt;&lt;BR /&gt; comp(f) {object.top: Landscapeface} &lt;/P&gt;&lt;P&gt;Landscapeface --&amp;gt;&lt;BR /&gt;setupProjection(0, scope.xy, textureScaleX, textureScaleY)&lt;BR /&gt; projectUV(0)&lt;BR /&gt;texture(facadeDirectory + "Landscape.jpg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JPG file size is 56kb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know how to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K.Jayakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 04:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-deterioration-in-city-engine/m-p/124521#M1682</guid>
      <dc:creator>JayakumarKamalakkannan</dc:creator>
      <dc:date>2018-01-21T04:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Texture deterioration in City engine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-deterioration-in-city-engine/m-p/124522#M1683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the shape that you're trying to put the texture on is&amp;nbsp;in xz instead of xy.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;rotateScope(0, 90, 0)
setupProjection(0, scope.zx, '1, '1)
texture("builtin:uvtest.png")
projectUV(0)
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using scope.zx instead of scope.xy in setupProjection() means that the u direction will correspond to the z axis, and the v direction will correspond to the x axis.&amp;nbsp; The rotateScope() operation makes it so that u will go along the shape's original x axis, and v will go along the shape's original z axis.&amp;nbsp; You can take out the rotateScope if you're happy with u corresponding to z and v corresponding to x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see the shape's scope, use the Model Hierarchy (Window -&amp;gt; Show Model Hierarchy -&amp;gt; Inspect Model -&amp;gt; select shape in viewport).&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/rule_editing/cga_re_shape_tree.html?resultof=%22%6d%6f%64%65%6c%22%20%22%68%69%65%72%61%72%63%68%79%22%20%22%68%69%65%72%61%72%63%68%69%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/rule_editing/cga_re_shape_tree.html?resultof=%22%6d%6f%64%65%6c%22%20%22%68%69%65%72%61%72%63%68%79%22%20%22%68%69%65%72%61%72%63%68%69%22%20" rel="nofollow noopener noreferrer" target="_blank"&gt;Working with the Model Hierarchy Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-deterioration-in-city-engine/m-p/124522#M1683</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T07:07:44Z</dc:date>
    </item>
  </channel>
</rss>

