<?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: Problem loading Scene Viewer in Scene Viewer Questions</title>
    <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563999#M132</link>
    <description>&lt;P&gt;I know there are requirements using the scene viewer. We are using the Arcgis npm lib to develop a system that provides both a 2d and a 3d view. On startup I want to check via JS if the requirements for 3d are met and if not block that view.&lt;BR /&gt;&lt;BR /&gt;I have tried working with a method like this, but that check wasn't really working and simulating the execution in a vim while development is also not that easy:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;export function isHardwareAccelerationPossible() {
  const canvas = document.createElement('canvas');

  const gl = canvas.getContext('webgl');

  if (!gl) {
    return false; // WebGL is not supported
  }

  // Check for SwiftShader in Chrome
  const debugExt = gl.getExtension('WEBGL_debug_renderer_info');
  if (debugExt) {
    const renderer = gl.getParameter(debugExt.UNMASKED_RENDERER_WEBGL);
    if (renderer.indexOf('SwiftShader') &amp;gt;= 0) {
      // Hardware acceleration is not possible
      return false;
    }
  }

  // Check for ANGLE_instanced_arrays in Firefox
  const angleExt = gl.getExtension('ANGLE_instanced_arrays');
  if (!angleExt) {
    // Hardware acceleration is not possible
    return false;
  }

  // Hardware acceleration is possible
  return true;
}&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 03 Dec 2024 08:42:40 GMT</pubDate>
    <dc:creator>Jonas1</dc:creator>
    <dc:date>2024-12-03T08:42:40Z</dc:date>
    <item>
      <title>Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563994#M130</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;i am getting this Error messsage: "Problem loading Scene Viewer&lt;BR /&gt;Your browser isn't using hardware acceleration for rendering which is required for displaying interactive 3D scenes." trying to load a sceneView from esri portal in my virtual machine.&lt;/P&gt;&lt;P&gt;I was wondering how you implemented the check to see if hardware acceleration is supported since we need to implement the same check in our implementation to fall back to 2D if hardware acceleration is not supported. Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 07:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563994#M130</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2024-12-03T07:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563997#M131</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here is the system requirement for ArcGIS Scene Viewer:&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/system-requirements/latest/windows/scene-viewer-requirements.htm" target="_blank"&gt;Scene Viewer requirements—ArcGIS Enterprise | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can ask your IT department to check if the systems you are using meet the minimal requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563997#M131</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2024-12-03T08:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563999#M132</link>
      <description>&lt;P&gt;I know there are requirements using the scene viewer. We are using the Arcgis npm lib to develop a system that provides both a 2d and a 3d view. On startup I want to check via JS if the requirements for 3d are met and if not block that view.&lt;BR /&gt;&lt;BR /&gt;I have tried working with a method like this, but that check wasn't really working and simulating the execution in a vim while development is also not that easy:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;export function isHardwareAccelerationPossible() {
  const canvas = document.createElement('canvas');

  const gl = canvas.getContext('webgl');

  if (!gl) {
    return false; // WebGL is not supported
  }

  // Check for SwiftShader in Chrome
  const debugExt = gl.getExtension('WEBGL_debug_renderer_info');
  if (debugExt) {
    const renderer = gl.getParameter(debugExt.UNMASKED_RENDERER_WEBGL);
    if (renderer.indexOf('SwiftShader') &amp;gt;= 0) {
      // Hardware acceleration is not possible
      return false;
    }
  }

  // Check for ANGLE_instanced_arrays in Firefox
  const angleExt = gl.getExtension('ANGLE_instanced_arrays');
  if (!angleExt) {
    // Hardware acceleration is not possible
    return false;
  }

  // Hardware acceleration is possible
  return true;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1563999#M132</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2024-12-03T08:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1564011#M133</link>
      <description>&lt;P&gt;Here's something you can try if you want to get past your initial Scene Viewer error.&lt;/P&gt;&lt;P&gt;On virtual machine browser, navigate to edge://flags on Microsoft Edge (or chrome://flags in Chrome), then enable&amp;nbsp;&lt;STRONG&gt;Override software rendering list.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 11:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1564011#M133</guid>
      <dc:creator>TimoT</dc:creator>
      <dc:date>2024-12-03T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1564024#M134</link>
      <description>&lt;P&gt;Wow i didn't know that was possible, thanks! I would still have to know if the problem is there so i can change the default view or tell the users about the solution although its not really usable with the lag &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 12:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1564024#M134</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2024-12-03T12:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading Scene Viewer</title>
      <link>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1565184#M135</link>
      <description>&lt;P&gt;Hi Jonas&lt;/P&gt;
&lt;P&gt;I think what you might want to do for a fallback is that you add failIfMajorPerformanceCaveat when you get the canvas:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let context = canvas.getContext("webgl2", { failIfMajorPerformanceCaveat: true });

// if this failed, it might be due to a major performance caveat
if (context == null) {

  // try again without the failIfMajorPerformanceCaveat constraint
  context = canvas.getContext("webgl2");

  // if it succeeded now the previous failure must have been due to that constraint
  if (context != null) {
    capabilities.majorPerformanceCaveat = true;
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;Then show the message or fallback if&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;capabilities.majorPerformanceCaveat = true&lt;/LI-CODE&gt;
&lt;P&gt;Documentation to this flag can be found here: &lt;A title="https://developer.mozilla.org/en-us/docs/web/api/htmlcanvaselement/getcontext" href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext" target="_blank" rel="noreferrer noopener"&gt;https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 16:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/scene-viewer-questions/problem-loading-scene-viewer/m-p/1565184#M135</guid>
      <dc:creator>ThomasKnabl</dc:creator>
      <dc:date>2024-12-05T16:06:55Z</dc:date>
    </item>
  </channel>
</rss>

