<?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 Increasing the scene perception mesh scale in Unity3D for R200 in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Increasing-the-scene-perception-mesh-scale-in-Unity3D-for-R200/m-p/1046328#M48190</link>
    <description>&lt;P&gt;Hi RealSense devs!&lt;/P&gt;

&lt;P&gt;I was wondering if there was a way to increase the scale of the mesh in Unity.&lt;/P&gt;

&lt;P&gt;I copied over the files from the RealSense demo into my project.&lt;/P&gt;

&lt;P&gt;I was able to scale up the mesh by modifying the scale of the prefabs that are spawned in DepthFusion.cs&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;//DepthFusion.cs
GameObject gameObjInstance=(GameObject)Instantiate(m_meshPrefab, new Vector3(0, 0, 0), Quaternion.identity);
					gameObjInstance.transform.parent = m_meshParent.transform;
					gameObjInstance.GetComponent&amp;lt;DynamicMesh&amp;gt;().SetData(meshId, m_meshes[meshId].Key, m_meshes[meshId].Value);

//Code added to increase the scale of the instantiated mesh.
gameObjInstance.transform.localScale = gameObjInstance.transform.localScale * 10;&lt;/PRE&gt;

&lt;P&gt;But I think I'm not able to get the FOV right, and I see a drift during the tracking because of that.&lt;/P&gt;

&lt;P&gt;I was wondering if there was a better way of increasing the scale, or an easier way of finding the FOV than trial and error, that is, if the FOV is the issue.&lt;/P&gt;

&lt;P&gt;Below is a GIF of the scaled mesh drifting, unscaled meshes work perfectly fine (when the camera is left at the default FOV of 49.04.&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="" src="https://i.gyazo.com/6bc5cffb35033a1999b28997edb54a97.gif" style="float: left;" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks for your time!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;- Ashwin&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 03:00:25 GMT</pubDate>
    <dc:creator>Ashwin_S_1</dc:creator>
    <dc:date>2015-09-25T03:00:25Z</dc:date>
    <item>
      <title>Increasing the scene perception mesh scale in Unity3D for R200</title>
      <link>https://community.intel.com/t5/Software-Archive/Increasing-the-scene-perception-mesh-scale-in-Unity3D-for-R200/m-p/1046328#M48190</link>
      <description>&lt;P&gt;Hi RealSense devs!&lt;/P&gt;

&lt;P&gt;I was wondering if there was a way to increase the scale of the mesh in Unity.&lt;/P&gt;

&lt;P&gt;I copied over the files from the RealSense demo into my project.&lt;/P&gt;

&lt;P&gt;I was able to scale up the mesh by modifying the scale of the prefabs that are spawned in DepthFusion.cs&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;//DepthFusion.cs
GameObject gameObjInstance=(GameObject)Instantiate(m_meshPrefab, new Vector3(0, 0, 0), Quaternion.identity);
					gameObjInstance.transform.parent = m_meshParent.transform;
					gameObjInstance.GetComponent&amp;lt;DynamicMesh&amp;gt;().SetData(meshId, m_meshes[meshId].Key, m_meshes[meshId].Value);

//Code added to increase the scale of the instantiated mesh.
gameObjInstance.transform.localScale = gameObjInstance.transform.localScale * 10;&lt;/PRE&gt;

&lt;P&gt;But I think I'm not able to get the FOV right, and I see a drift during the tracking because of that.&lt;/P&gt;

&lt;P&gt;I was wondering if there was a better way of increasing the scale, or an easier way of finding the FOV than trial and error, that is, if the FOV is the issue.&lt;/P&gt;

&lt;P&gt;Below is a GIF of the scaled mesh drifting, unscaled meshes work perfectly fine (when the camera is left at the default FOV of 49.04.&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="" src="https://i.gyazo.com/6bc5cffb35033a1999b28997edb54a97.gif" style="float: left;" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks for your time!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;- Ashwin&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 03:00:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Increasing-the-scene-perception-mesh-scale-in-Unity3D-for-R200/m-p/1046328#M48190</guid>
      <dc:creator>Ashwin_S_1</dc:creator>
      <dc:date>2015-09-25T03:00:25Z</dc:date>
    </item>
  </channel>
</rss>

