<?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: Unable to initialize all modalities - Unity C# in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373555#M1678</link>
    <description>&lt;P&gt;I edited out those exact lines just before posting which resulted in it not longer popping up but the whole thing just remains blank and the camera isnt initialized, the hand gestures work but not the camera segmentation in this case. ODdly enough though the backgrond removal and sphere grabbing transform work in perfect unison together.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 09:38:45 GMT</pubDate>
    <dc:creator>CMedi6</dc:creator>
    <dc:date>2017-02-07T09:38:45Z</dc:date>
    <item>
      <title>Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373553#M1676</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the Hand Gesture recognition and 3D Segmentation in unison, they both work flawlessly individually however when they're both enabled together I get the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to initialize all modalities&lt;/P&gt;&lt;P&gt;UnityEngine.Debug:LogError(Object)&lt;/P&gt;&lt;P&gt;RSUnityToolkit.SenseToolkitManager:OnEnable() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:346)&lt;/P&gt;&lt;P&gt;RSUnityToolkit.SenseToolkitManager:Update() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:596)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 346:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            /* Initialize the execution */&lt;/P&gt;&lt;P&gt;            _sts = SenseManager.Init();&lt;/P&gt;&lt;P&gt;            if (_sts &amp;lt; pxcmStatus.PXCM_STATUS_NO_ERROR)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                if (numberOfEnabledModalities &amp;gt; 0)&lt;/P&gt;&lt;P&gt;                {&lt;/P&gt;&lt;P&gt;&lt;B&gt;                    Debug.LogError("Unable to initialize all modalities");&lt;/B&gt;&lt;/P&gt;&lt;P&gt;                }&lt;/P&gt;&lt;P&gt;                return;&lt;/P&gt;&lt;P&gt;            } &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 596:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else if (option.RefCounter &amp;gt; 0  &amp;amp;&amp;amp; !option.Enabled)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  if (!option.Initialized)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  OnDisable();&lt;/P&gt;&lt;P&gt;                 OnEnable();&lt;/P&gt;&lt;P&gt;                 Start();&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume its struggling to initialize all funtions of the camera at the same time, even though the segmentation i imagine uses depth and VGA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 07:56:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373553#M1676</guid>
      <dc:creator>CMedi6</dc:creator>
      <dc:date>2017-02-07T07:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373554#M1677</link>
      <description>&lt;P&gt;In my own Unity project I use multiple types of tracking script simultaneously without conflict (hand, face, gesture).  So it is unusual that using hand and segmentation together would cause a problem.  Admittedly though I have never used segmentation, so have not had the opportunity to experience if the two can conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember the fun I had editing this file (SenseToolkitManager) in 2014 to add an 'if camera not present' status.  You have to be very careful in modding it, as one small change can make the whole house of cards fall down!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect I may have had the same problem as you back then, though I cannot recall it, as I have apparently edited the troublesome lines out of my version of SenseToolkitManager with no ill effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /* Initialize the execution */&lt;/P&gt;&lt;P&gt;            _sts = SenseManager.Init();&lt;/P&gt;&lt;P&gt;            if (_sts &amp;lt; pxcmStatus.PXCM_STATUS_NO_ERROR)&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                return;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, the four lines I edited out were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (numberOfEnabledModalities &amp;gt; 0) &lt;/P&gt;&lt;P&gt;                { &lt;/P&gt;&lt;P&gt;                    Debug.LogError("Unable to initialize all modalities"); &lt;/P&gt;&lt;P&gt;                } &lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:14:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373554#M1677</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-07T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373555#M1678</link>
      <description>&lt;P&gt;I edited out those exact lines just before posting which resulted in it not longer popping up but the whole thing just remains blank and the camera isnt initialized, the hand gestures work but not the camera segmentation in this case. ODdly enough though the backgrond removal and sphere grabbing transform work in perfect unison together.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:38:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373555#M1678</guid>
      <dc:creator>CMedi6</dc:creator>
      <dc:date>2017-02-07T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373556#M1679</link>
      <description>&lt;P&gt;I've attached the code of my SenseToolkitManager in a Word doc, with my camera-present check removed.  Since I can't recall all the edits I did.  If you select-all and copy on the doc contents and then select-all and paste on your SenseToolkitManager script, you may have better luck.  If it doesn't work, you can always ctrl-Z to undo and restore your own script.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:20:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373556#M1679</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-07T10:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373557#M1680</link>
      <description>&lt;P&gt;Hey MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that, unfortunately it kicks out even more errors, one of which is the same error that I believe was causing the segmentation to fail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullReferenceException: Object reference not set to an instance of an object&lt;/P&gt;&lt;P&gt;Draw3DSegmentation.SetSenseOptions () (at Assets/RSUnityToolkit/Internals/Actions Utils/Draw3DSegmentation.cs:39)&lt;/P&gt;&lt;P&gt;Draw3DSegmentation.Start () (at Assets/RSUnityToolkit/Internals/Actions Utils/Draw3DSegmentation.cs:107)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's no longer assignign the texture to the texture slow in the Segmentation script (which was working fine before) so I assume theres some check failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other lines are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullReferenceException: Object reference not set to an instance of an object&lt;/P&gt;&lt;P&gt;Draw3DSegmentation.UnsetSenseOptions () (at Assets/RSUnityToolkit/Internals/Actions Utils/Draw3DSegmentation.cs:47)&lt;/P&gt;&lt;P&gt;Draw3DSegmentation.OnDisable () (at Assets/RSUnityToolkit/Internals/Actions Utils/Draw3DSegmentation.cs:148)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 01:59:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373557#M1680</guid>
      <dc:creator>CMedi6</dc:creator>
      <dc:date>2017-02-08T01:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373558#M1681</link>
      <description>&lt;P&gt;Oops!  Although I removed my camera-present checker, I forgot to remove the references to its related objects (which are only in my project) at the top of the script on lines 29 and 30, and 144 and 145.  My bad!  That is surely what is causing the object reference errors.  I'm very sorry!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code again (attached) with those lines edited out.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 08:03:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373558#M1681</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-08T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373559#M1682</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No problems at all! The issue is still persisting, the hand works but the camera 3D segmentation doesn't with that script. (And the modalities error doesn't come up as its been removed from the code). I'm wondering if its a USB 3.0 power issue again (I'll try a powered usb 3.0 hub tomorrow) or the order in which they're been initialed (Ie Hand then camera or camera then hand).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very confusing error! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:08:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373559#M1682</guid>
      <dc:creator>CMedi6</dc:creator>
      <dc:date>2017-02-08T10:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize all modalities - Unity C#</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373560#M1683</link>
      <description>&lt;P&gt;Hi ConstructiveMedia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Do you still need assistance with this thread? Does the issue persist after using a powered USB 3.0 hub and changing the initialization order?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Sergio A&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 20:46:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Unable-to-initialize-all-modalities-Unity-C/m-p/373560#M1683</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-02-10T20:46:25Z</dc:date>
    </item>
  </channel>
</rss>

