<?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 I called the in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115995#M74091</link>
    <description>&lt;P&gt;I called the AcquirePreviewImage function and got the preview image.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then I transfer the preview image into Texture2D and use it as the mainTexture of the plane in Unity.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Relate code is :&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; //Preview the scanning result
            PXCMImage scanimage = scan.AcquirePreviewImage ();
        
            /*Retrieve and render the individual color and depth images */           
            if (scanimage != null) {                        
                if (scanTexture2D == null) {                     
                    /* If not allocated, allocate a Texture2D */                     
                    scanTexture2D = new Texture2D (scanimage.info.width, scanimage.info.height, TextureFormat.ARGB32, false);  
                    
                    /* Associate the Texture2D with a gameObject */                     
                    scanPlane.renderer.material.mainTexture = scanTexture2D;                     
                }  
                
                /* Retrieve the image data in Texture2D */                 
                PXCMImage.ImageData scanImageData;
                scanimage.AcquireAccess (PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32, out scanImageData);               
                scanImageData.ToTexture2D (0, scanTexture2D);               
                scanimage.ReleaseAccess (scanImageData);  
                
                /* Apply the texture to the GameObject to display on */                 
                scanTexture2D.Apply ();  

                scanimage.Dispose ();
            }&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I have another question now.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I set the scan configure as below.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scan_config = new PXCM3DScan.Configuration();
            scan_config.maxVertices = 30000;
            scan_config.mode = PXCM3DScan.ScanningMode.VARIABLE;
            scan_config.options = PXCM3DScan.ReconstructionOption.LANDMARKS;
            scan_config.options = scan_config.options | PXCM3DScan.ReconstructionOption.TEXTURE;
            scan_config.startScan = StartScanFlag;
            pxcmStatus ConfiguresState = scan.SetConfiguration (scan_config);
            Debug.Log ("Face Scan Module Configure setting state : " + ConfiguresState);&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;The error message said "Face Scan Module Configure setting state : PXCM_STATUS_INIT_FAILED".&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;But if I remove the configure setting of Texture, it is work！&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 11:58:23 GMT</pubDate>
    <dc:creator>峰_張_</dc:creator>
    <dc:date>2016-05-10T11:58:23Z</dc:date>
    <item>
      <title>3D scan problem in Unity</title>
      <link>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115993#M74089</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I did the 3D scanning in Unity and displayed the preview image in the plane.&lt;/P&gt;

&lt;P&gt;But it is something wrong. Before started to scan, the preview image is normal like the image below.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://drive.google.com/open?id=0B0NuIN5KVcYeOGtOejc4cVpfVEE"&gt;&lt;IMG alt="" src="https://drive.google.com/open?id=0B0NuIN5KVcYeOGtOejc4cVpfVEE" /&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And when I started to scan, the preview become weird.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B0NuIN5KVcYeazQzX0lXWkJZRGc/view?usp=sharing"&gt;&lt;IMG alt="" src="https://drive.google.com/file/d/0B0NuIN5KVcYeazQzX0lXWkJZRGc/view?usp=sharing" /&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Does anyone know how to fix it?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 09:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115993#M74089</guid>
      <dc:creator>峰_張_</dc:creator>
      <dc:date>2016-03-18T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Could you provide the relate</title>
      <link>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115994#M74090</link>
      <description>&lt;P&gt;Could you provide the relate codes so we can help you to figure out the issue? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 21:51:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115994#M74090</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2016-03-22T21:51:12Z</dc:date>
    </item>
    <item>
      <title>I called the</title>
      <link>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115995#M74091</link>
      <description>&lt;P&gt;I called the AcquirePreviewImage function and got the preview image.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then I transfer the preview image into Texture2D and use it as the mainTexture of the plane in Unity.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Relate code is :&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; //Preview the scanning result
            PXCMImage scanimage = scan.AcquirePreviewImage ();
        
            /*Retrieve and render the individual color and depth images */           
            if (scanimage != null) {                        
                if (scanTexture2D == null) {                     
                    /* If not allocated, allocate a Texture2D */                     
                    scanTexture2D = new Texture2D (scanimage.info.width, scanimage.info.height, TextureFormat.ARGB32, false);  
                    
                    /* Associate the Texture2D with a gameObject */                     
                    scanPlane.renderer.material.mainTexture = scanTexture2D;                     
                }  
                
                /* Retrieve the image data in Texture2D */                 
                PXCMImage.ImageData scanImageData;
                scanimage.AcquireAccess (PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32, out scanImageData);               
                scanImageData.ToTexture2D (0, scanTexture2D);               
                scanimage.ReleaseAccess (scanImageData);  
                
                /* Apply the texture to the GameObject to display on */                 
                scanTexture2D.Apply ();  

                scanimage.Dispose ();
            }&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I have another question now.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I set the scan configure as below.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scan_config = new PXCM3DScan.Configuration();
            scan_config.maxVertices = 30000;
            scan_config.mode = PXCM3DScan.ScanningMode.VARIABLE;
            scan_config.options = PXCM3DScan.ReconstructionOption.LANDMARKS;
            scan_config.options = scan_config.options | PXCM3DScan.ReconstructionOption.TEXTURE;
            scan_config.startScan = StartScanFlag;
            pxcmStatus ConfiguresState = scan.SetConfiguration (scan_config);
            Debug.Log ("Face Scan Module Configure setting state : " + ConfiguresState);&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;The error message said "Face Scan Module Configure setting state : PXCM_STATUS_INIT_FAILED".&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;But if I remove the configure setting of Texture, it is work！&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 11:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/3D-scan-problem-in-Unity/m-p/1115995#M74091</guid>
      <dc:creator>峰_張_</dc:creator>
      <dc:date>2016-05-10T11:58:23Z</dc:date>
    </item>
  </channel>
</rss>

