<?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: Texture in CityEngine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-in-cityengine/m-p/697342#M9174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri.lib, the library that comes with CityEngine, has rules that can put textures on buildings.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Building_From_Footprint.cga&lt;/STRONG&gt;: use if your initial shape is a 2D footprint&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Building_Mass_Texturizer.cga&lt;/STRONG&gt;:&amp;nbsp; use if your initial shape is a 3D mass model&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to use your own texture image, then you can apply the texture to a model using &lt;STRONG&gt;setupProjection()&lt;/STRONG&gt; to do the necessary setup that is needed to determine how to place the texture on the model, then use &lt;STRONG&gt;texture()&lt;/STRONG&gt; to assign your texture image file, then use &lt;STRONG&gt;projectUV()&lt;/STRONG&gt; to actually perform the projection that is needed to apply the texture to the model.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;setupProjection(0, scope.xy, '1, '1)&amp;nbsp; // this stretches the texture to fit the scope
texture("mytexturefile.jpg")
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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setupProjection.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setupProjection.html" rel="nofollow noopener noreferrer" target="_blank"&gt;setupProjection Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an example, see the Texturing part&amp;nbsp;in&amp;nbsp;Tutorial 6:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm#ESRI_SECTION1_F63DA537BE7C4BD5A589C1360936DF69" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm#ESRI_SECTION1_F63DA537BE7C4BD5A589C1360936DF69" rel="nofollow noopener noreferrer" target="_blank"&gt;Tutorial 6: Basic shape grammar—CityEngine Tutorials | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:20:45 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2021-12-12T05:20:45Z</dc:date>
    <item>
      <title>Texture in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-in-cityengine/m-p/697341#M9173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i download Facade (Texture)&amp;nbsp; of building and apply it to my building in CityEngine. Any Tips please. Thanks alot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-in-cityengine/m-p/697341#M9173</guid>
      <dc:creator>MajdAlobied1</dc:creator>
      <dc:date>2018-09-28T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Texture in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-in-cityengine/m-p/697342#M9174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri.lib, the library that comes with CityEngine, has rules that can put textures on buildings.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Building_From_Footprint.cga&lt;/STRONG&gt;: use if your initial shape is a 2D footprint&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Building_Mass_Texturizer.cga&lt;/STRONG&gt;:&amp;nbsp; use if your initial shape is a 3D mass model&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to use your own texture image, then you can apply the texture to a model using &lt;STRONG&gt;setupProjection()&lt;/STRONG&gt; to do the necessary setup that is needed to determine how to place the texture on the model, then use &lt;STRONG&gt;texture()&lt;/STRONG&gt; to assign your texture image file, then use &lt;STRONG&gt;projectUV()&lt;/STRONG&gt; to actually perform the projection that is needed to apply the texture to the model.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;setupProjection(0, scope.xy, '1, '1)&amp;nbsp; // this stretches the texture to fit the scope
texture("mytexturefile.jpg")
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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setupProjection.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setupProjection.html" rel="nofollow noopener noreferrer" target="_blank"&gt;setupProjection Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an example, see the Texturing part&amp;nbsp;in&amp;nbsp;Tutorial 6:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm#ESRI_SECTION1_F63DA537BE7C4BD5A589C1360936DF69" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm#ESRI_SECTION1_F63DA537BE7C4BD5A589C1360936DF69" rel="nofollow noopener noreferrer" target="_blank"&gt;Tutorial 6: Basic shape grammar—CityEngine Tutorials | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-in-cityengine/m-p/697342#M9174</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T05:20:45Z</dc:date>
    </item>
  </channel>
</rss>

