<?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 Using world-aligned textures for roofs in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/using-world-aligned-textures-for-roofs/m-p/705043#M9239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually texture my roofs with the following rule, which textures them all using the basemap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;RoofTextureFromBasemap --&amp;gt; 
&amp;nbsp; setupProjection(0, world.xz, Map_Size_X, Map_Size_Z) 
&amp;nbsp; set(material.colormap, Map_Path_Aerial)
&amp;nbsp; projectUV(0) 
&amp;nbsp; translateUV(0, -Map_Offset_X/Map_Size_X, -Map_Offset_Z/Map_Size_Z) 
&amp;nbsp; scaleUV(0,1,-1)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I need to use the buildings in ArcGIS Pro and it's causing some trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;leaving the rule as-is/exporting it as RPK doesn't texture roofs properly in AGP - the offset and resolution seem to be off&lt;/LI&gt;&lt;LI&gt;exporting the buildings in Collada Format and importing them in AGP removes the textures&lt;/LI&gt;&lt;LI&gt;exporting a building to KML works and displays (flipped) in Google Earth, however AGP simply tells me the file "cannot be used" without additional info. It's also rather large.&lt;/LI&gt;&lt;LI&gt;exporting them to GDB (multipatch) and importing them in AGP works, however the file size ends up huge - roughly 100 buildings result in almost 5GB, which I'm pretty sure is due to the basemap being saved completely for each feature&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now to the actual question &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I clipped the basemap in ArcMap using the building footprints (see attached image) and would like to texture the roofs using the world-aligned clippings. I think I went through all possible projection setups and scope aligning available, is it even possible to use the textures this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cropimage.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/201265_cropimage.jpg" style="width: 620px; height: 213px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:38:14 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2021-12-12T05:38:14Z</dc:date>
    <item>
      <title>Using world-aligned textures for roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/using-world-aligned-textures-for-roofs/m-p/705043#M9239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually texture my roofs with the following rule, which textures them all using the basemap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;RoofTextureFromBasemap --&amp;gt; 
&amp;nbsp; setupProjection(0, world.xz, Map_Size_X, Map_Size_Z) 
&amp;nbsp; set(material.colormap, Map_Path_Aerial)
&amp;nbsp; projectUV(0) 
&amp;nbsp; translateUV(0, -Map_Offset_X/Map_Size_X, -Map_Offset_Z/Map_Size_Z) 
&amp;nbsp; scaleUV(0,1,-1)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I need to use the buildings in ArcGIS Pro and it's causing some trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;leaving the rule as-is/exporting it as RPK doesn't texture roofs properly in AGP - the offset and resolution seem to be off&lt;/LI&gt;&lt;LI&gt;exporting the buildings in Collada Format and importing them in AGP removes the textures&lt;/LI&gt;&lt;LI&gt;exporting a building to KML works and displays (flipped) in Google Earth, however AGP simply tells me the file "cannot be used" without additional info. It's also rather large.&lt;/LI&gt;&lt;LI&gt;exporting them to GDB (multipatch) and importing them in AGP works, however the file size ends up huge - roughly 100 buildings result in almost 5GB, which I'm pretty sure is due to the basemap being saved completely for each feature&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now to the actual question &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I clipped the basemap in ArcMap using the building footprints (see attached image) and would like to texture the roofs using the world-aligned clippings. I think I went through all possible projection setups and scope aligning available, is it even possible to use the textures this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cropimage.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/201265_cropimage.jpg" style="width: 620px; height: 213px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/using-world-aligned-textures-for-roofs/m-p/705043#M9239</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-12T05:38:14Z</dc:date>
    </item>
  </channel>
</rss>

