<?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] Moving the camera around / camera tracking in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608039#M56870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear setting view.camera worked! Yes I've seen the camera tracking they use in Ayvri, it's a nice example of allowing the user to freely navigate but still keep the glider in the center of the view. I also like the wall visualizations they created below the gliders path, something that should be feasible to do with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html"&gt;PathSymbol3DLayer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand you are still experimenting what type of camera tracking works best. As there is no single best approach to this and providing a smooth user experience depends a lot on the specific use case, I would suggest to look into the following topics. The examples I posted above all use a combination of these techniques:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generalize geometries - there is the JavaScript API geometry engine for 2D geometries:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html&lt;/A&gt;. In your case however you might just want to simplify using the time information in the GPX track.&lt;/LI&gt;&lt;LI&gt;Smooth lines: splines are a great way to create smooth curves from straight lines. Three.js has a nice implementation of Catmull-Rom curves for 3D points:&amp;nbsp;&lt;A href="https://threejs.org/docs/#api/en/extras/curves/CatmullRomCurve3"&gt;https://threejs.org/docs/#api/en/extras/curves/CatmullRomCurve3&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Easing: I found this tutorial very helpful showing how you can use linear interpolation to ease animations:&amp;nbsp;&lt;A href="https://codeburst.io/scroll-based-animate-timeline-with-easing-functions-on-a-webgl-scene-ef7c3f5a8d9b"&gt;https://codeburst.io/scroll-based-animate-timeline-with-easing-functions-on-a-webgl-scene-ef7c3f5a8d9b&lt;/A&gt;. This could&amp;nbsp;be applied to any movement in the scene (glider progress, camera tracking)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps and please feel free to share any progress with us or reach out if you have more questions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2020 09:18:18 GMT</pubDate>
    <dc:creator>ArnoFiva</dc:creator>
    <dc:date>2020-09-25T09:18:18Z</dc:date>
    <item>
      <title>[SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608035#M56866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am the developper of &lt;A href="https://flyxc.app/"&gt;flyxc.app&lt;/A&gt; which is an application used to display paragliding flights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see an example &lt;A href="https://flyxc.app/?id=5710600382447616&amp;amp;id=5737835541823488&amp;amp;id=5747756245188608&amp;amp;id=5680157654253568&amp;amp;s=20&amp;amp;l=xc&amp;amp;3d="&gt;here&lt;/A&gt;. 3D support has just been added as I have only discovered the ArcGis API lately - it's really great !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next thing I'd like to implement is to track the pilot when the cursor moves on the timeline at the bottom of the screen (as of now you have to click on the timeline to sync the pilot position. Using the mouse wheel on the timeline zooms to the pilot position).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to update the camera position each time the cursor moves on the timeline, I got a lot of "AbortedError" and most moves were not actually taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have some experience about tracking a moving object with the camera in a SceneView ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it should be possible as you can track a moving object using your mouse. However I am unsure doing it with the API. Any help is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2020 23:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608035#M56866</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2020-09-19T23:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608036#M56867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the question! Can you be a bit more specific how exactly you update the camera? The&amp;nbsp;AbortedError messages are probably because you use goTo() with animations. Try disabling the animations when you call goTo().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few presentations and demos out there that create a smooth camera animation, with and without user interaction.&amp;nbsp;These resources&amp;nbsp;might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dkoerner/arcgis-js-api-3d-web-editing-demo"&gt;https://github.com/dkoerner/arcgis-js-api-3d-web-editing-demo&lt;/A&gt;&amp;nbsp;(make sure you select camera path first in the upper right corner)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/arnofiva/pen/f322dfcd4ed1d18ba41fa94696c86a83" title="https://codepen.io/arnofiva/pen/f322dfcd4ed1d18ba41fa94696c86a83"&gt;https://codepen.io/arnofiva/pen/f322dfcd4ed1d18ba41fa94696c86a83&lt;/A&gt;&amp;nbsp;(press play button on the left)&lt;/P&gt;&lt;P&gt;&lt;A href="https://esri.github.io/devsummit-eu-2019-3D-jsapi/using-animations.html#/27"&gt;https://esri.github.io/devsummit-eu-2019-3D-jsapi/using-animations.html#/27&lt;/A&gt;&amp;nbsp;(move through the slides with the right arrow and press play button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of them do have a lot code, so depending on what&amp;nbsp;camera movement you want to do I'm happy to point you to the specific places!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2020 16:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608036#M56867</guid>
      <dc:creator>ArnoFiva</dc:creator>
      <dc:date>2020-09-22T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608037#M56868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the detailed answer Arno !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code was using goTo() with [I think] animation disabled. I deleted the animation code as it was not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It wasn't a lot of code and I'll reproduce in the coming days and let you know about the outcome - I'll check your link before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 types of animation I want to do:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Keep the glider at about the same place on the screen when it moves - for that I need to apply the same changes to the camera position that are applied to the glider position[1],&lt;/P&gt;&lt;P&gt;- The most challenging thing I'd like to do is to be able to follow the glider with some kind of tracking algorithm. Kind of what Ayvri does if you know it. However&amp;nbsp;the given algo is outside of the scope of the API but if someone has some pointers on an algo, I'll take them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1] "&lt;SPAN&gt;same changes" is a first approximation that would be good enough to test.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 21:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608037#M56868</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2020-09-23T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608038#M56869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I confirm that settings the `view.camera` directly works great.&lt;/P&gt;&lt;P&gt;Not sure what I was doing wrong last time when I tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Arno.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 04:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608038#M56869</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2020-09-25T04:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608039#M56870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear setting view.camera worked! Yes I've seen the camera tracking they use in Ayvri, it's a nice example of allowing the user to freely navigate but still keep the glider in the center of the view. I also like the wall visualizations they created below the gliders path, something that should be feasible to do with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html"&gt;PathSymbol3DLayer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand you are still experimenting what type of camera tracking works best. As there is no single best approach to this and providing a smooth user experience depends a lot on the specific use case, I would suggest to look into the following topics. The examples I posted above all use a combination of these techniques:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generalize geometries - there is the JavaScript API geometry engine for 2D geometries:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html&lt;/A&gt;. In your case however you might just want to simplify using the time information in the GPX track.&lt;/LI&gt;&lt;LI&gt;Smooth lines: splines are a great way to create smooth curves from straight lines. Three.js has a nice implementation of Catmull-Rom curves for 3D points:&amp;nbsp;&lt;A href="https://threejs.org/docs/#api/en/extras/curves/CatmullRomCurve3"&gt;https://threejs.org/docs/#api/en/extras/curves/CatmullRomCurve3&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Easing: I found this tutorial very helpful showing how you can use linear interpolation to ease animations:&amp;nbsp;&lt;A href="https://codeburst.io/scroll-based-animate-timeline-with-easing-functions-on-a-webgl-scene-ef7c3f5a8d9b"&gt;https://codeburst.io/scroll-based-animate-timeline-with-easing-functions-on-a-webgl-scene-ef7c3f5a8d9b&lt;/A&gt;. This could&amp;nbsp;be applied to any movement in the scene (glider progress, camera tracking)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps and please feel free to share any progress with us or reach out if you have more questions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 09:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608039#M56870</guid>
      <dc:creator>ArnoFiva</dc:creator>
      <dc:date>2020-09-25T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608040#M56871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Arno for even more great pointers (I am sorry, I only see your message now. Something must be wrong with my notifications).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;it's a nice example of allowing the user to freely navigate but still keep the glider in the center of the view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I think this will be hard to do with the current Arcgis API as the (mouse) navigation is not really flexible. What I'd like to do is to be able to get the event (mouse panning) and decide what movement I want to associate to it (I created a post and an idea about that here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;gt; I also like the wall visualizations they created below the gliders path, something that should be feasible to do with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fapi-reference%2Fesri-symbols-PathSymbol3DLayer.html" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;PathSymbol3DLayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that pointer. I was actually thinking about using a Mesh and started some experiments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PathSymbol3DLayer might be enough here (even if it a little less flexible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Generalize geometries ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I was thinking about a simple low pass filter. The reason is that as you said I need to conserve the time information and I am not sure if the other algos you mentioned would play well with that. It should at least be good enough for a first test (and easy to implement).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'll keep you posted,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2020 03:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608040#M56871</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2020-10-06T03:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608041#M56872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Arno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just implemented the camera tracking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see an example &lt;A href="https://flyxc.app/?s=20&amp;amp;l=xc&amp;amp;id=5737320716173312&amp;amp;id=5095545664176128&amp;amp;id=5724732234137600&amp;amp;id=5741708193038336&amp;amp;id=5642265204621312&amp;amp;id=5768433996136448&amp;amp;id=5648913377787904&amp;amp;id=5740438593994752&amp;amp;id=5674656673562624&amp;amp;id=5142200451072000&amp;amp;3d="&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the camera tracking if you move the cursor on the graph below the map or if you use the play functionality (top right of the graph). You can switch pilot by clicking on a track or using the second to the last green control on the map (Click on the "&amp;gt;").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It probably still can be improved but I'm already happy with this first version that only took a couple hours to implement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for you help along the way and also to ESRI for this great API !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 20:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608041#M56872</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2020-10-08T20:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: [SceneView] Moving the camera around / camera tracking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608042#M56873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing and nice job on that app, I'm glad the resources helped you to get up to speed!&amp;nbsp;The team really likes the 3D models you used for the paraglider&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if we can be of further help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2020 09:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-moving-the-camera-around-camera-tracking/m-p/608042#M56873</guid>
      <dc:creator>ArnoFiva</dc:creator>
      <dc:date>2020-10-14T09:05:41Z</dc:date>
    </item>
  </channel>
</rss>

