<?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 Transparency issue with local SLPKs? in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1320159#M584</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I came across an issue when working with local SLPK files exported from ArcGIS Pro when using a C# script.&lt;/P&gt;&lt;P&gt;The following code snippet is pulled from my script&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;doorsLayer = new ArcGIS3DObjectSceneLayer(doorsSlpkPath, "Doors_Layer", 1.0f, true, "");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;doorsLayer.MaterialReference = new Material(Resources.Load&amp;lt;Material&amp;gt;("Materials/Doors_Material"));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;arcGISMap.Layers.Add(doorsLayer);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the "Opacity" is set to 1.0f which is "no transparency". However, if a set something like 0.2f this is not reflected in the appearance of this layer.&lt;/P&gt;&lt;P&gt;The strange thing is when I set the "Opacity" without any C#, just by using the Map Creator UI, then Opacity/Transparency works just fine.&lt;/P&gt;&lt;P&gt;Any idea what might be causing this?&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Winfried&lt;/P&gt;&lt;P&gt;P.S. I'm working with ArcGIS Pro 3.1.2, Unity 2021.3.25f1 and ArcGIS Maps SDK for Unity 1.2&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 15:58:29 GMT</pubDate>
    <dc:creator>Winfried</dc:creator>
    <dc:date>2023-08-18T15:58:29Z</dc:date>
    <item>
      <title>Transparency issue with local SLPKs?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1320159#M584</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I came across an issue when working with local SLPK files exported from ArcGIS Pro when using a C# script.&lt;/P&gt;&lt;P&gt;The following code snippet is pulled from my script&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;doorsLayer = new ArcGIS3DObjectSceneLayer(doorsSlpkPath, "Doors_Layer", 1.0f, true, "");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;doorsLayer.MaterialReference = new Material(Resources.Load&amp;lt;Material&amp;gt;("Materials/Doors_Material"));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;arcGISMap.Layers.Add(doorsLayer);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the "Opacity" is set to 1.0f which is "no transparency". However, if a set something like 0.2f this is not reflected in the appearance of this layer.&lt;/P&gt;&lt;P&gt;The strange thing is when I set the "Opacity" without any C#, just by using the Map Creator UI, then Opacity/Transparency works just fine.&lt;/P&gt;&lt;P&gt;Any idea what might be causing this?&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Winfried&lt;/P&gt;&lt;P&gt;P.S. I'm working with ArcGIS Pro 3.1.2, Unity 2021.3.25f1 and ArcGIS Maps SDK for Unity 1.2&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 15:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1320159#M584</guid>
      <dc:creator>Winfried</dc:creator>
      <dc:date>2023-08-18T15:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transparency issue with local SLPKs?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1320510#M585</link>
      <description>&lt;P&gt;Hi Winfried,&lt;/P&gt;&lt;P&gt;same problem here with transperency and using &lt;STRONG&gt;hosted scene layers&lt;/STRONG&gt;. For me it was even not possible to activate or deactivate layers in the source code.&lt;/P&gt;&lt;P&gt;Same setup, but using unity 2021,3,28f1&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 05:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1320510#M585</guid>
      <dc:creator>MarkusWall1</dc:creator>
      <dc:date>2023-08-21T05:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transparency issue with local SLPKs?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1322077#M589</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue regarding the opacity setting on scene layers is a known issue. The workaround is to c&lt;SPAN&gt;hange the scene layer material to one with transparency.&lt;/SPAN&gt;&amp;nbsp;You can change the material with the same technique as the 3D attributes filtering:&amp;nbsp;&lt;A href="https://developers.arcgis.com/unity/filtering-and-modification/3d-attributes/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/unity/filtering-and-modification/3d-attributes/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to change the layer's visibility only, I recommend using the visible boolean value for it.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/layers/arcgis3dobjectscenelayer#constructors" target="_blank"&gt;https://developers.arcgis.com/unity/api-reference/gameengine/layers/arcgis3dobjectscenelayer#constructors&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 12:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1322077#M589</guid>
      <dc:creator>TomoTakeda</dc:creator>
      <dc:date>2023-08-24T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transparency issue with local SLPKs?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1322108#M590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;unfortunately it didn't matter if the material had been set to opaque or transparent. The result stays the same for me.&lt;/P&gt;&lt;P&gt;But I was able to find a workaround for my issue. Since my slpks are based on Autodesk Revit files imported into ArcGIS Pro I browsed through the different shaders available and gave it a try with the "AutodeskInteractiveTransparent" shader. And this shader works just fine when it comes to transparency with BIM models &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="transparency.jpg" style="width: 656px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79041iB71EDBA7EE67F28A/image-size/large?v=v2&amp;amp;px=999" role="button" title="transparency.jpg" alt="transparency.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/transparency-issue-with-local-slpks/m-p/1322108#M590</guid>
      <dc:creator>Winfried</dc:creator>
      <dc:date>2023-08-24T14:00:20Z</dc:date>
    </item>
  </channel>
</rss>

