<?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: SceneView webgl support detection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-webgl-support-detection/m-p/237201#M22088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found many of the SceneView examples work just fine on my iPhone and iPad. &amp;nbsp;webglreport.com reports that my iPhone 6 supports WebGL 1. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an application I'm working based on a webscene, everything works fine, including setting elevationInfo, adding callouts to symbols and setting featureReduction to 'selection', on mobile devices I've tested until I set&amp;nbsp;screenSizePerspectiveEnabled to true on&amp;nbsp;a&amp;nbsp;feature layer in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be useful if the API documentation would clarify which WebGL features individual classes or functionality needed so we could test for support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I ended up just set&amp;nbsp;screenSizePerspectiveEnabled to false when the height or width breakpoint is&amp;nbsp;'small' or 'xsmall'. &amp;nbsp;I'm sure there is a better way to handle this but this approach works for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 13:01:15 GMT</pubDate>
    <dc:creator>JadeFreeman</dc:creator>
    <dc:date>2017-09-25T13:01:15Z</dc:date>
    <item>
      <title>SceneView webgl support detection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-webgl-support-detection/m-p/237200#M22087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples given for detecting webgl in the browser aren't working on newer&amp;nbsp;devices (possibly older ones too, but I haven't tested on them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried on an iPad running IOS 10.0.2, and a Galaxy S6 using Chrome 53.0.xxx.&lt;/P&gt;&lt;P&gt;It appears the devices do support webgl in some sense, but SceneView's don't render correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The otherwise() callback is not hit, instead then() is as per normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample page&amp;nbsp;will load up the scene view&amp;nbsp;but only display a dark sphere for the earth -&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/scene-webgl-support/live/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/scene-webgl-support/live/index.html"&gt;Detect WebGL support - 4.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheekily on the description pages for the samples this user agent check&amp;nbsp;is actually used to test if the iframe containing the live sample with a scene view should be loaded.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="regex token"&gt;/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;test&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;navigator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;userAgent&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you get the unsupported message on those pages correctly as in here.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/scene-webgl-support/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/scene-webgl-support/index.html"&gt;Detect WebGL support | ArcGIS API for JavaScript 4.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally don't mind relying on the user agent check&amp;nbsp;- but is this something that needs to be done for the moment and if so&amp;nbsp;will it be addressed&amp;nbsp;in a future release? An update to the&amp;nbsp;samples documentation might be in order though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:26:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-webgl-support-detection/m-p/237200#M22087</guid>
      <dc:creator>NickCameron2</dc:creator>
      <dc:date>2016-10-19T03:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView webgl support detection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-webgl-support-detection/m-p/237201#M22088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found many of the SceneView examples work just fine on my iPhone and iPad. &amp;nbsp;webglreport.com reports that my iPhone 6 supports WebGL 1. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an application I'm working based on a webscene, everything works fine, including setting elevationInfo, adding callouts to symbols and setting featureReduction to 'selection', on mobile devices I've tested until I set&amp;nbsp;screenSizePerspectiveEnabled to true on&amp;nbsp;a&amp;nbsp;feature layer in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be useful if the API documentation would clarify which WebGL features individual classes or functionality needed so we could test for support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I ended up just set&amp;nbsp;screenSizePerspectiveEnabled to false when the height or width breakpoint is&amp;nbsp;'small' or 'xsmall'. &amp;nbsp;I'm sure there is a better way to handle this but this approach works for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-webgl-support-detection/m-p/237201#M22088</guid>
      <dc:creator>JadeFreeman</dc:creator>
      <dc:date>2017-09-25T13:01:15Z</dc:date>
    </item>
  </channel>
</rss>

