<?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: Global Texture Projection Error in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/global-texture-projection-error/m-p/289731#M3977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this code .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;satelliteImage = "builtin:uvtest.png" #"maps/mySatellitePic.jpg" # user defined image in maps folder
satelliteImageData(data) =
 case data == "SX"&amp;nbsp;&amp;nbsp; : 1000&amp;nbsp;&amp;nbsp;&amp;nbsp; # user defined, same as terrain extent. select terrain layer and check Inspector
 case data == "SZ"&amp;nbsp;&amp;nbsp; : 1000
 case data == "OX"&amp;nbsp;&amp;nbsp; : 1000
 case data == "OZ"&amp;nbsp;&amp;nbsp; : -1000
 else : 1

Roof --&amp;gt;
setupProjection(0,world.xz,satelliteImageData("SX"), -satelliteImageData("SZ"), satelliteImageData("OX"), satelliteImageData("OZ"))
projectUV(0)
texture(satelliteImage)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:58:46 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2021-12-11T13:58:46Z</dc:date>
    <item>
      <title>Global Texture Projection Error</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/global-texture-projection-error/m-p/289730#M3976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to trim the texture and apply it as a roof texture on the buildings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it worked, but for some reason the mapping of the texture is different, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached an image with a red outline to show where its taking the texture from and applying it on the building.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And a purple outlined to show the rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i CAN'T know what seems to be the problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2012 09:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/global-texture-projection-error/m-p/289730#M3976</guid>
      <dc:creator>ziadfilfili</dc:creator>
      <dc:date>2012-11-10T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Global Texture Projection Error</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/global-texture-projection-error/m-p/289731#M3977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this code .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;satelliteImage = "builtin:uvtest.png" #"maps/mySatellitePic.jpg" # user defined image in maps folder
satelliteImageData(data) =
 case data == "SX"&amp;nbsp;&amp;nbsp; : 1000&amp;nbsp;&amp;nbsp;&amp;nbsp; # user defined, same as terrain extent. select terrain layer and check Inspector
 case data == "SZ"&amp;nbsp;&amp;nbsp; : 1000
 case data == "OX"&amp;nbsp;&amp;nbsp; : 1000
 case data == "OZ"&amp;nbsp;&amp;nbsp; : -1000
 else : 1

Roof --&amp;gt;
setupProjection(0,world.xz,satelliteImageData("SX"), -satelliteImageData("SZ"), satelliteImageData("OX"), satelliteImageData("OZ"))
projectUV(0)
texture(satelliteImage)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/global-texture-projection-error/m-p/289731#M3977</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T13:58:46Z</dc:date>
    </item>
  </channel>
</rss>

