<?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: External Renderers using vtk.js in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451090#M41684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guillermo,&lt;/P&gt;&lt;P&gt;As far as I see this, there are two ways you could try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Obviously, the first one is to use VTK as input source and implement the Volume Rendering by yourself. Guessing from your response this is the solution you wanted to avoid. However, there is a simple working volume rendering example in case you consider it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://esri.github.io/devsummit-2019-3D-jsapi/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/"&gt;https://esri.github.io/devsummit-2019-3D-jsapi/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the source code for this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/devsummit-2019-3D-jsapi/tree/master/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/app"&gt;https://github.com/Esri/devsummit-2019-3D-jsapi/tree/master/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) If you can manage that VTK uses a externally provided render context for rendering it's images you might be able to use the VTK volume rendering. In this case, you could try to do everything in the same WebGL context provided by the external renderer, This would require you to:&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;ensure that all VTK&amp;nbsp;ressources are loaded with the correct WebGL context (also framebuffers):&lt;/LI&gt;&lt;LI&gt;sync the scene state (e.g. give camera position to VTK)&lt;/LI&gt;&lt;LI&gt;call VTK render functions within our WebGL context&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;use the framebuffer/texture for further processing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no ArcGIS API example for this implementation and from a quick browse over the VTK documentation it seems that it's not intended to be used this way. Best is to ask VTK support for more details about if and how that's possible at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2019 08:50:47 GMT</pubDate>
    <dc:creator>MatthiasThoeny</dc:creator>
    <dc:date>2019-10-01T08:50:47Z</dc:date>
    <item>
      <title>External Renderers using vtk.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451087#M41681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to assess if it is possible to load a VTK.js rendering in a SceneView through the ExternalRenderer. Does anyone have guidance on how this might be done? Or has seen a project involving this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451087#M41681</guid>
      <dc:creator>GuillermoVargas</dc:creator>
      <dc:date>2019-09-26T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: External Renderers using vtk.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451088#M41682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guillermo, can you try to shortly describe what part of VTK rendering you want to use? It will not be possible to use VTK's rendering api out of the box for several technical reasons. Integrating a part of the VTK.js functionality will be a low level effort similar to the example you can find using three.js (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/scene-external-renderer-threejs/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/scene-external-renderer-threejs/index.html"&gt;Use three.js from an external renderer | ArcGIS API for JavaScript 4.12&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 09:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451088#M41682</guid>
      <dc:creator>MatthiasThoeny</dc:creator>
      <dc:date>2019-09-30T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: External Renderers using vtk.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451089#M41683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, I would like to use this specifically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://kitware.github.io/vtk-js/examples/VolumeMapper.html"&gt;https://kitware.github.io/vtk-js/examples/VolumeMapper.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to grab the output of the WebGL context from vtkjs and then draw it on the webgl context on a MapScene.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any experience with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do thank you for the example you gave me, and I have been trying to follow those steps. The main issue is that I am somewhat unfamiliar with WebGL and do not know where in vtkjs should I grab the outputs and then send them to ArcGIS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 14:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451089#M41683</guid>
      <dc:creator>GuillermoVargas</dc:creator>
      <dc:date>2019-09-30T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: External Renderers using vtk.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451090#M41684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guillermo,&lt;/P&gt;&lt;P&gt;As far as I see this, there are two ways you could try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Obviously, the first one is to use VTK as input source and implement the Volume Rendering by yourself. Guessing from your response this is the solution you wanted to avoid. However, there is a simple working volume rendering example in case you consider it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://esri.github.io/devsummit-2019-3D-jsapi/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/"&gt;https://esri.github.io/devsummit-2019-3D-jsapi/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the source code for this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/devsummit-2019-3D-jsapi/tree/master/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/app"&gt;https://github.com/Esri/devsummit-2019-3D-jsapi/tree/master/Advanced-WebGL-in-3D-SceneViews/External-Volume-Renderer/app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) If you can manage that VTK uses a externally provided render context for rendering it's images you might be able to use the VTK volume rendering. In this case, you could try to do everything in the same WebGL context provided by the external renderer, This would require you to:&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;ensure that all VTK&amp;nbsp;ressources are loaded with the correct WebGL context (also framebuffers):&lt;/LI&gt;&lt;LI&gt;sync the scene state (e.g. give camera position to VTK)&lt;/LI&gt;&lt;LI&gt;call VTK render functions within our WebGL context&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;use the framebuffer/texture for further processing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no ArcGIS API example for this implementation and from a quick browse over the VTK documentation it seems that it's not intended to be used this way. Best is to ask VTK support for more details about if and how that's possible at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/external-renderers-using-vtk-js/m-p/451090#M41684</guid>
      <dc:creator>MatthiasThoeny</dc:creator>
      <dc:date>2019-10-01T08:50:47Z</dc:date>
    </item>
  </channel>
</rss>

