{"id":668,"date":"2015-11-04T14:50:16","date_gmt":"2015-11-04T19:50:16","guid":{"rendered":"http:\/\/arlduc.org\/senseandscale\/?p=668"},"modified":"2015-11-05T17:48:24","modified_gmt":"2015-11-05T22:48:24","slug":"tutorial-visualizing-mindrider-data-in-3d-using-qgis-and-qgis2threejs","status":"publish","type":"post","link":"https:\/\/arlduc.org\/senseandscale\/?p=668","title":{"rendered":"Tutorial: Visualizing MindRider data in 3D using QGIS and QGIS2threejs"},"content":{"rendered":"<p>Here&#8217;s a <a href=\"http:\/\/arlduc.org\/vis\/threejs_mindrider_sampledata\/mindrider_sample.html\" target=\"_blank\">link to the live visualization<\/a>. And good news: this tutorial involves no coding!<\/p>\n<h1>Background<\/h1>\n<p>More soon. For now, you can learn about MindRider <a href=\"http:\/\/mindriderhelmet.com\">helmet<\/a> and <a href=\"http:\/\/mindriderdata.com\">data<\/a> at their respective web sites.<\/p>\n<h1>Getting Started<\/h1>\n<ol>\n<li><a href=\"http:\/\/www.qgis.org\/en\/site\/\" target=\"_blank\">Download QGIS<\/a> and install (from QGIS) the\u00a0<a href=\"http:\/\/qgis2threejs.readthedocs.org\/en\/docs-release\/Tutorial.html\">QGIS2threejs<\/a>\u00a0plugin.<\/li>\n<li>Obtain this\u00a0<a href=\"https:\/\/drive.google.com\/folderview?id=0B1KM70jlEfvpaDRZR2JOVHVodEU&amp;usp=sharing\">tutorial&#8217;s data<\/a>, which includes these vector shapefiles:\n<ul>\n<li>a MindRider sample dataset (800 points)<\/li>\n<li>Manhattan&#8217;s buildings south of 14th street<\/li>\n<li>the polygon I drew to clip the original <a href=\"https:\/\/data.cityofnewyork.us\/Housing-Development\/Building-Footprints\/tb92-6tj8\">NYC building footprints<\/a>\u00a0to just this region. Rendering all the buildings for the entire city could crash your browser.<\/li>\n<\/ul>\n<\/li>\n<li>In QGIS, add the MindRider data by navigating\u00a0to <strong>Layer &gt; AddLayer &gt; Add Vector Layer<\/strong>. Add &#8220;<strong>MR_data_SampleSet.shp<\/strong>&#8221; from your tutorial data.<\/li>\n<li><span style=\"color: #ff6600;\">NOTE<\/span>: In your tutorial data folder, you&#8217;ll only be loading the shapefiles (.SHP extension). The other files (i.e. dbf, shx, etc) are supporting metadata for the shapefiles, so don&#8217;t remove them!<\/li>\n<li>Add the building\u00a0by navigating\u00a0to Layer &gt; <strong>AddLayer &gt; Add Vector Layer<\/strong>. Add &#8220;<strong>ManhattanBuildings_DowntownTo14th.shp<\/strong>&#8221; from your tutorial data. Your QGIS window should now look like this:<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-676\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM.png\" alt=\"Screen Shot 2015-11-05 at 3.13.59 PM\" width=\"1109\" height=\"1138\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM.png 1109w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM-292x300.png 292w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM-998x1024.png 998w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-3.13.59-PM-900x924.png 900w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/li>\n<li><span style=\"color: #ff6600;\">NOTE<\/span>: You can optionally\u00a0add &#8220;<strong>Downtown_to_14th.shp<\/strong>&#8221; to your project to see what it looks like, but you won&#8217;t visualize it for the final render. If you&#8217;d like to crop another part of the building elevation data for your own purposes, see this\u00a0link about <a href=\"https:\/\/github.com\/mtop\/speciesgeocoder\/wiki\/Tutorial-for-creating-polygons-in-QGIS\">creating polygons<\/a> and this link about <a href=\"http:\/\/gis.stackexchange.com\/questions\/37226\/how-to-crop-shapefiles-in-qgis\">cropping shapefiles<\/a>.<\/li>\n<li><span style=\"color: #ff6600;\">NOTE<\/span>: If you import the NYC Building Data directly from its source, you will\u00a0need to re-project it. See <a href=\"http:\/\/gis.stackexchange.com\/questions\/7709\/what-is-the-standard-mercator-projection\" target=\"_blank\">this link<\/a> for a note on the proper projection to use.<\/li>\n<\/ol>\n<h1>Coloring the MindRider data<\/h1>\n<p>In this section, we will color the MindRider data points varying levels of <span style=\"color: #ff0000;\">red<\/span> based on the cyclist&#8217;s mental attention, from a range of 1-100.<\/p>\n<ol>\n<li>In the <strong>Layers<\/strong> Panel, right-click <strong>MR_data_SampleSet<\/strong> and choose &#8220;<strong>Properties<\/strong>&#8220;.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.39.30-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-685\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.39.30-PM.png\" alt=\"Screen Shot 2015-11-05 at 4.39.30 PM\" width=\"998\" height=\"746\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.39.30-PM.png 998w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.39.30-PM-300x224.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.39.30-PM-900x673.png 900w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/a><\/li>\n<li>By default, the <strong>Properties<\/strong> window will be in the <strong>Style<\/strong> tab, and your marker type will be a <strong>Simple Marker<\/strong>. Remove the black outline from the markers by choosing <strong>No Pen<\/strong> from the <strong>Outline Style<\/strong> menu.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-686\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM.png\" alt=\"Screen Shot 2015-11-05 at 4.46.24 PM\" width=\"1131\" height=\"743\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM.png 1131w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM-300x197.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM-1024x673.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.46.24-PM-900x591.png 900w\" sizes=\"auto, (max-width: 1131px) 100vw, 1131px\" \/><\/a><\/li>\n<li>Next, switch from &#8220;Single Symbol&#8221; to &#8220;Graduated Symbol&#8221; in the topmost menu.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-688\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM.png\" alt=\"Screen Shot 2015-11-05 at 4.49.03 PM\" width=\"1132\" height=\"743\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM.png 1132w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM-300x197.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM-1024x672.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.49.03-PM-900x591.png 900w\" sizes=\"auto, (max-width: 1132px) 100vw, 1132px\" \/><\/a><\/li>\n<li>\u00a0Now change the following values:\n<ul>\n<li><strong>COLUMN: eSenseAtte<\/strong><\/li>\n<li><strong>COLOR RAMP: Reds<\/strong><\/li>\n<li><strong>Classes: 100<\/strong><br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-692\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM.png\" alt=\"Screen Shot 2015-11-05 at 4.55.35 PM\" width=\"1242\" height=\"853\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM.png 1242w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM-300x206.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM-1024x703.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.55.35-PM-900x618.png 900w\" sizes=\"auto, (max-width: 1242px) 100vw, 1242px\" \/><br \/>\n<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Press OK, and the MindRider data should now be colored according to attention values.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-694\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM.png\" alt=\"Screen Shot 2015-11-05 at 4.58.15 PM\" width=\"1109\" height=\"853\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM.png 1109w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM-300x231.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM-1024x788.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-4.58.15-PM-900x692.png 900w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/li>\n<\/ol>\n<h1>Coloring the NYC building data<\/h1>\n<p>You don&#8217;t need to color the buildings according to height in order to extrude them with QGIS2threejs, but after an <a href=\"http:\/\/arlduc.org\/vis\/threejs_output01\/test01.html\" target=\"_blank\">initial attempt without the color coding<\/a>, I found it color to be a helpful aid in comprehending the visualization. I chose blue to contrast with the MindRider data, which is generally colored red-yellow-green.<\/p>\n<ol>\n<li>In the Layers Panel, right-click <strong>ManhattanBuildings_Downtown_to_14th<\/strong> and choose &#8220;<strong>Zoom to Layer<\/strong>.&#8221;<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.04.42-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-698\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.04.42-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.04.42 PM\" width=\"998\" height=\"741\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.04.42-PM.png 998w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.04.42-PM-300x223.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.04.42-PM-900x668.png 900w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><br \/>\n<\/a>Now you can see the layer more closely.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-699\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.05.01 PM\" width=\"1109\" height=\"853\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM.png 1109w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM-300x231.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM-1024x788.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.05.01-PM-900x692.png 900w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/li>\n<li>Remove building footprint outlines\u00a0using a similar method as used for the MindRider data:\n<ul>\n<li>In the <strong>Layers<\/strong> Panel, right-click <strong>ManhattanBuildings_Downtown_to_14th<\/strong>\u00a0and choose &#8220;<strong>Properties<\/strong>&#8220;.<\/li>\n<li>Remove the outline by choosing <strong>Simple Marker<\/strong>, then choose &#8220;<strong>No Pen<\/strong>&#8221; in the <strong>Border Style<\/strong> menu.<\/li>\n<\/ul>\n<\/li>\n<li>Color the data a varying range by choosing Graduated in the top menu (just like you did with the MindRider data). Change these values:\n<ul>\n<li><strong>Column: HEIGHT_ROO<\/strong><\/li>\n<li><strong>Color Ramp: Blues<\/strong><\/li>\n<li><strong>Mode: Natural Breaks (Jenks)<\/strong><\/li>\n<li><strong>Classes: 10<\/strong><\/li>\n<li><a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-701\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.15.32 PM\" width=\"1144\" height=\"818\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM.png 1144w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM-300x215.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM-1024x732.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.15.32-PM-900x644.png 900w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Press OK and see that the building data is color-coded.<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-703\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.17.07 PM\" width=\"1109\" height=\"853\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM.png 1109w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM-300x231.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM-1024x788.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.17.07-PM-900x692.png 900w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/li>\n<\/ol>\n<h1><\/h1>\n<h1>Export (render) the data using QGIS2threejs<\/h1>\n<p>Let&#8217;s try exporting this data to an HTML site.<\/p>\n<ol>\n<li>If you&#8217;ve installed QGIS2threejs, an icon for the plugin will show on the 2nd tier of tools in your window:<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-705\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.21.16 PM\" width=\"1109\" height=\"853\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM.png 1109w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM-300x231.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM-1024x788.png 1024w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.21.16-PM-900x692.png 900w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/li>\n<li><span style=\"color: #ff6600;\">NOTE<\/span>: You will only choose the ManhattanBuildings for rendering via three.js. The MindRider data, since it&#8217;s visible in the QGIS project window, will be rasterized and displayed on a flat pane at the base of the extruded buildings. If you were to render the MindRider data as 3D objects, this would make your page take a LOT longer to load.<\/li>\n<li>In the QGIS2threejs dialog box, you only need to do two things.\n<ul>\n<li>check the box next to the <strong>ManhattanBuildings_Downtown_to_14th<\/strong> data set so that it will be rendered in WebGL.<\/li>\n<li>specify <strong>Height<\/strong> as &#8220;<strong>HEIGHT_ROO<\/strong>&#8221; so that the buildings are extruded based on height.<\/li>\n<li><a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.24.27-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-707\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.24.27-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.24.27 PM\" width=\"722\" height=\"537\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.24.27-PM.png 722w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.24.27-PM-300x223.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Specify the output file name and filepath. I recommend that you create a new directory for your file, as several supporting files will be generated in addition to the HTML file.<\/li>\n<li>I called my file &#8220;test.html.&#8221; When I opened it in my browser, it looked pretty good!<br \/>\n<a href=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.33.31-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-709\" src=\"http:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.33.31-PM.png\" alt=\"Screen Shot 2015-11-05 at 5.33.31 PM\" width=\"928\" height=\"642\" srcset=\"https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.33.31-PM.png 928w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.33.31-PM-300x208.png 300w, https:\/\/arlduc.org\/senseandscale\/wp-content\/uploads\/2015\/11\/Screen-Shot-2015-11-05-at-5.33.31-PM-900x623.png 900w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/li>\n<\/ol>\n<h1>Now for a Challenge!<\/h1>\n<p>You&#8217;ll notice that the image at the top of this tutorial shows both green dots and red dots, which indicate MindRider &#8220;sweetspots&#8221; (areas of high relaxation) as well as &#8220;hotspots&#8221; (areas of high attention). You&#8217;ve already visualized the hotspots. Can you visualize the sweetspots as well, and make it so that the hotspots and sweetspots blend together?<\/p>\n<p>It&#8217;s pretty straightforward if you think about it. Here are the basic steps:<\/p>\n<ol>\n<li>Duplicate the <strong>MR_data_SampleSet<\/strong> layer. Call it something like <strong>MR_sweetspots<\/strong>. For clarity&#8217;s sake, re-name your original\u00a0<strong>MR_data_SampleSet to MR_hotspots.<\/strong><\/li>\n<li>Re-color the\u00a0<strong>MR_sweetspots\u00a0<\/strong>with a green gradient.<\/li>\n<li>In the same dialog box where you change the layer&#8217;s color, you can experiment with Layer Rendering:\n<ul>\n<li>Try changing the layer&#8217;s transparency to 70%.<\/li>\n<li>Try changing the layer&#8217;s blend mode to Darken or Multiply.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>And see what happens! You can see my version of the sweetspots AND hotspots\u00a0visualization <a href=\"http:\/\/arlduc.org\/vis\/threejs_mindrider_sampledata\/mindrider_sample.html\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a link to the live visualization. And good news: this tutorial involves no coding! Background More soon. For now, you can learn about MindRider helmet and data at their respective web sites. Getting Started Download QGIS and install (from QGIS) the\u00a0QGIS2threejs\u00a0plugin. Obtain this\u00a0tutorial&#8217;s data, which includes these vector shapefiles: a MindRider sample dataset (800 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":669,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5,8],"tags":[],"class_list":["post-668","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nyu-datavis","category-quantified-self","category-tutorials"],"_links":{"self":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=668"}],"version-history":[{"count":29,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/668\/revisions"}],"predecessor-version":[{"id":714,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/668\/revisions\/714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/media\/669"}],"wp:attachment":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}