<?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: Occlusion rules work in 2016.1 but not in 2017.0 in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522004#M7092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Occlusion query has always been janky at best but I think it's plain broken in 2017.0. As far as I can tell, it only triggers once per scene "session". Try moving your building, save/close the scene and open it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also my thread here, which unfortunately went unaddressed:&amp;nbsp;&lt;A href="https://community.esri.com/thread/198001-inconsistent-and-non-updating-occlusion-query-results-ce-20170"&gt;https://community.esri.com/thread/198001-inconsistent-and-non-updating-occlusion-query-results-ce-20170&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jul 2017 16:13:02 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2017-07-22T16:13:02Z</dc:date>
    <item>
      <title>Occlusion rules work in 2016.1 but not in 2017.0</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522003#M7091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my master rule file generated two masses (a low rise and a high rise whose location is controlled by a slider). I have built in an occlusion test that, when I move high rise&amp;nbsp;around with my sliders, checks and returns red floors if it overlaps with low rise mass - basically to avoid double counting areas and reduce my error. The&amp;nbsp;following rule works in 2016.1 but not in 2017.0 and I can't figure out why. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BuildingEnvelope --&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(y){ ~Ground_Floor_Height: FloorEnvelope(split.index,split.total) &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|~Upper_Floor_Height: OccluTest &amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;// testing occlusion only for first 2 floors&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|~Upper_Floor_Height: OccluTest &lt;SPAN style="color: #ff0000;"&gt;// testing occlusion only for first 2 floors&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|{ ~Upper_Floor_Height: FloorMassing&amp;nbsp;}* &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| Top_Floor_Height : FloorEnvelope(split.index,split.total) }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OccluTest --&amp;gt; &lt;BR /&gt; case overlaps (all) &amp;amp;&amp;amp; touches (all):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;color("#ff0000")&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;X. &amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;// basically it doesn't count area of those floors to reduce the overall error when applied to 100 parcels &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;else: FloorEnvelope(split.index,split.total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot of 2017.0 below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 21:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522003#M7091</guid>
      <dc:creator>KushanDave</dc:creator>
      <dc:date>2017-07-20T21:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Occlusion rules work in 2016.1 but not in 2017.0</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522004#M7092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Occlusion query has always been janky at best but I think it's plain broken in 2017.0. As far as I can tell, it only triggers once per scene "session". Try moving your building, save/close the scene and open it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also my thread here, which unfortunately went unaddressed:&amp;nbsp;&lt;A href="https://community.esri.com/thread/198001-inconsistent-and-non-updating-occlusion-query-results-ce-20170"&gt;https://community.esri.com/thread/198001-inconsistent-and-non-updating-occlusion-query-results-ce-20170&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2017 16:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522004#M7092</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-07-22T16:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Occlusion rules work in 2016.1 but not in 2017.0</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522005#M7093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The occlusion test above should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Edit -&amp;gt; Preferences -&amp;gt; General -&amp;gt; Procedural Runtime, what is the value for Maximum distance for occlusion? &amp;nbsp;If this is 0, then overlaps() will return true (due to numerical imprecision) because the floors are touching the&amp;nbsp;neighboring floors (above and below) that were created in the split. &amp;nbsp;This value is by default 0.001. &amp;nbsp;So, if this value is zero, this might be a reason why the floors are red even when they are not touching the lower building. &amp;nbsp;(Note: &amp;nbsp;You can also add the keyword inter to your occlusion tests to only test between objects in the scene and not within objects. &amp;nbsp;This is faster than using the keyword "all".)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the rule FloorEnvelope doing? &amp;nbsp;I tested the code with FloorEnvelope as a&amp;nbsp;terminal shape, and this seems to work for me. &amp;nbsp;In this rule, are other shapes being created that might interfere with the occlusion testing? &amp;nbsp;Is there a comp split? &amp;nbsp;comp splits create ghost shapes that are used in occlusion testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a note, if shapes are generated, then occlusion testing should work between them. &amp;nbsp;You should not need to reopen the scene if you move your query object. &amp;nbsp;If you change the cga code of the occluder object without regenerating, then you might get some unexpected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be willing to post your scene and code? &amp;nbsp;I'm not really sure why it's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 12:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/occlusion-rules-work-in-2016-1-but-not-in-2017-0/m-p/522005#M7093</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-09-21T12:27:31Z</dc:date>
    </item>
  </channel>
</rss>

