<?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: Fuzzy Objects in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398941#M5506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derrik,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in 3D rendering the&lt;/SPAN&gt; &lt;SPAN&gt;phenomenon creating those&lt;/SPAN&gt; fuzzy surfaces is called&amp;nbsp;Z-fighting. It occurs when two or more primitives have very similar distances to the camera. This would cause them to have near-similar or identical values in the z-buffer, which keeps track of depth. This then means that when a specific pixel is being rendered, it is nearly random which one of the two primitives gets drawn in that pixel because the z-buffer cannot distinguish precisely which one is farther from the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this from happening in your CGA code, it is important to add &lt;A href="https://doc.arcgis.com/en/cityengine/2019.0/cga/cga-nil.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;NIL&lt;/A&gt; to the leaf shapes that are not needed to be drawn. e.g.:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Generate &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; Paint Report
	
Paint &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;color&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"#FF0000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

Report &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
	&lt;SPAN class="token function"&gt;report&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"facadearea"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;area&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
	NIL&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;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:13:03 GMT</pubDate>
    <dc:creator>ThomasFuchs</dc:creator>
    <dc:date>2021-12-11T18:13:03Z</dc:date>
    <item>
      <title>Fuzzy Objects</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398940#M5505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a possible solution to how i can fix the fuzziness of my output object in City Engine? Is there something to do with how i write my CGA rule? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Derrick&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492726_pastedImage_1.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 04:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398940#M5505</guid>
      <dc:creator>DerrickLim</dc:creator>
      <dc:date>2020-05-19T04:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzzy Objects</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398941#M5506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derrik,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in 3D rendering the&lt;/SPAN&gt; &lt;SPAN&gt;phenomenon creating those&lt;/SPAN&gt; fuzzy surfaces is called&amp;nbsp;Z-fighting. It occurs when two or more primitives have very similar distances to the camera. This would cause them to have near-similar or identical values in the z-buffer, which keeps track of depth. This then means that when a specific pixel is being rendered, it is nearly random which one of the two primitives gets drawn in that pixel because the z-buffer cannot distinguish precisely which one is farther from the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this from happening in your CGA code, it is important to add &lt;A href="https://doc.arcgis.com/en/cityengine/2019.0/cga/cga-nil.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;NIL&lt;/A&gt; to the leaf shapes that are not needed to be drawn. e.g.:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Generate &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; Paint Report
	
Paint &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;color&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"#FF0000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

Report &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
	&lt;SPAN class="token function"&gt;report&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"facadearea"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;area&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
	NIL&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;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398941#M5506</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2021-12-11T18:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzzy Objects</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398942#M5507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thomas, you're right and thanks for that!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I readjusted my cga rule and include the NIL as suggested to counter the Z-fighting. Cheers mate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492773_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 10:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fuzzy-objects/m-p/398942#M5507</guid>
      <dc:creator>DerrickLim</dc:creator>
      <dc:date>2020-05-19T10:59:39Z</dc:date>
    </item>
  </channel>
</rss>

