<?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 Insert a Tree on a texture in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1036284#M10123</link>
    <description>&lt;P&gt;Hi City Engine Community,&lt;/P&gt;&lt;P&gt;I am new to cga coding and I am trying to do something simple.&lt;/P&gt;&lt;P&gt;I am looking to apply a texture to a lot and insert a tree or multiple trees on top of the texture.&lt;/P&gt;&lt;P&gt;Here is what I have now:&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;BR /&gt;primitiveQuad(1920,1080)&lt;BR /&gt;comp(f) {top:SATimage}&lt;BR /&gt;&lt;BR /&gt;SATimage--&amp;gt;&lt;BR /&gt;texture("images/Satellite Imagery/Test Test/sattest.png")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Generate--&amp;gt;&lt;BR /&gt;alignScopeToAxes(y)&lt;BR /&gt;s(0,0,0)&lt;BR /&gt;t(x,z,y)&lt;BR /&gt;i(Tree)&lt;/P&gt;&lt;P&gt;________________________________________________&lt;/P&gt;&lt;P&gt;For some reason the tree either doesn't insert or the texture doesn't work. I cant get both to work at the same time.&lt;/P&gt;&lt;P&gt;Is there anyone that could help me with this coding?&lt;/P&gt;</description>
    <pubDate>Sat, 13 Mar 2021 20:37:49 GMT</pubDate>
    <dc:creator>JOELBEALE</dc:creator>
    <dc:date>2021-03-13T20:37:49Z</dc:date>
    <item>
      <title>Insert a Tree on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1036284#M10123</link>
      <description>&lt;P&gt;Hi City Engine Community,&lt;/P&gt;&lt;P&gt;I am new to cga coding and I am trying to do something simple.&lt;/P&gt;&lt;P&gt;I am looking to apply a texture to a lot and insert a tree or multiple trees on top of the texture.&lt;/P&gt;&lt;P&gt;Here is what I have now:&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;BR /&gt;primitiveQuad(1920,1080)&lt;BR /&gt;comp(f) {top:SATimage}&lt;BR /&gt;&lt;BR /&gt;SATimage--&amp;gt;&lt;BR /&gt;texture("images/Satellite Imagery/Test Test/sattest.png")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Generate--&amp;gt;&lt;BR /&gt;alignScopeToAxes(y)&lt;BR /&gt;s(0,0,0)&lt;BR /&gt;t(x,z,y)&lt;BR /&gt;i(Tree)&lt;/P&gt;&lt;P&gt;________________________________________________&lt;/P&gt;&lt;P&gt;For some reason the tree either doesn't insert or the texture doesn't work. I cant get both to work at the same time.&lt;/P&gt;&lt;P&gt;Is there anyone that could help me with this coding?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 20:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1036284#M10123</guid>
      <dc:creator>JOELBEALE</dc:creator>
      <dc:date>2021-03-13T20:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a Tree on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1036799#M10126</link>
      <description>&lt;P&gt;You can call your Generate rule from your Lot. I think the cleanest way to would be to put it on top and I would give it a more distinct/memorable name. The code below should work and will scatter 100 trees.&lt;/P&gt;&lt;PRE&gt;Lot --&amp;gt;&lt;BR /&gt;InsertTrees&lt;BR /&gt;primitiveQuad(1920,1080)&lt;BR /&gt;comp(f) {top:alignScopeToAxes(y) SATimage | all: NIL}&lt;BR /&gt;&lt;BR /&gt;SATimage--&amp;gt;&lt;BR /&gt;texture("images/Satellite Imagery/Test Test/sattest.png")&lt;BR /&gt;&lt;BR /&gt;InsertTrees--&amp;gt;&lt;BR /&gt;scatter(surface, 100, uniform){PlantTree}&lt;BR /&gt;&lt;BR /&gt;PlantTree--&amp;gt;&lt;BR /&gt;i(Tree)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1036799#M10126</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-03-15T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a Tree on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1038388#M10142</link>
      <description>&lt;P&gt;When I saw your post I was surprised. I cant believe Mr. Lavigne replied to my post! I've admired your work ever since I discovered City Engine. You have a very impressive background with CE and your CGA coding skills are amazing. I have been persistent on learning how to code in City Engine and have been reading the online manual. The code above that you wrote really helped, I was stuck and was frustrated that I couldn't come to figure out how to insert a tree or an object on top of a texture. I really want to become an Urban Planner like you and have been interested in working for Houseal Lavigne Associates. I am a detail oriented Industrial Designer who is determined.&lt;/P&gt;&lt;P&gt;Below is my portfolio:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.coroflot.com/creativeintuition/Joel-Beale-Portfolio-2020" target="_blank"&gt;https://www.coroflot.com/creativeintuition/Joel-Beale-Portfolio-2020&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 23:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-a-tree-on-a-texture/m-p/1038388#M10142</guid>
      <dc:creator>JOELBEALE</dc:creator>
      <dc:date>2021-03-18T23:38:32Z</dc:date>
    </item>
  </channel>
</rss>

