ãµã³ãã«ãåãããæã以ä¸ã®ã¨ã©ã¼ãçºçã
Input color array length needs to match width * height, but 76800 != 320 * 320 UnityEngine.WebCamTexture:GetPixels32(Color32[]) NyARUnityUtils.NyARUnityRaster:updateByWebCamTexture(WebCamTexture) (at Assets/NyARUnityUtils/NyARUnityRaster.cs:66) NyARUnityUtils.NyARUnityWebCam:update() (at Assets/NyARUnityUtils/NyARUnityWebCam.cs:44)
ãã®ã¨ã©ã¼ã¯ããã°ã©ã ã 㨠320x240 ãæå®ãã¦ãããã©Macã ã¨Webã«ã¡ã©ã 320x320 ã®ç»åãã¼ã¿ãè¿ãã¿ããã§ã¨ã©ã¼ãçºçãã¦ããã¿ããã§ããã
ARCameraBehaviour.cs ã®ä»¥ä¸ã®é¨åã 320x320 ã«å¤æ´ãã¦è§£æ±ºã
w=new WebCamTexture(320, 240, 15);
ãããâ
w=new WebCamTexture(320, 320, 15);
ããã¨æ¬¡ã«ãã¡ãã®ã¨ã©ã¼ãçºçã
indexOutOfRangeException: Array index is out of range. jp.nyatla.nyartoolkit.cs.core.NyARObserv2IdealMap.observ2IdealBatch (jp.nyatla.nyartoolkit.cs.core.NyARIntPoint2d[] i_coord, Int32 i_start, Int32 i_num, System.Double[] o_x_coord, System.Double[] o_y_coord, Int32 i_out_start_index) (at Assets/NyARToolkitCS/src/cs/core/param/NyARObserv2IdealMap.cs:141) jp.nyatla.nyartoolkit.cs.core.NyARCoord2Linear.coord2Line (Int32 i_st, Int32 i_ed, jp.nyatla.nyartoolkit.cs.core.NyARIntCoordinates i_coord, jp.nyatla.nyartoolkit.cs.core.NyARLinear o_line) (at Assets/NyARToolkitCS/src/cs/core/squaredetect/NyARCoord2Linear.cs:122) jp.nyatla.nyartoolkit.cs.markersystem.RleDetector.onSquareDetect (jp.nyatla.nyartoolkit.cs.core.NyARIntCoordinates i_coord, System.Int32[] i_vertex_index) (at Assets/NyARToolkitCS/src.markersystem/cs/markersystem/NyARMarkerSystem.cs:570) jp.nyatla.nyartoolkit.cs.core.NyARSquareContourDetector_Rle.detectMarker (INyARGrayscaleRaster i_raster, Int32 i_th) (at Assets/NyARToolkitCS/src/cs/core/squaredetect/NyARSquareContourDetector_Rle.cs:254) jp.nyatla.nyartoolkit.cs.markersystem.RleDetector.detectMarker (jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor, Int64 i_time_stamp, Int32 i_th) (at Assets/NyARToolkitCS/src.markersystem/cs/markersystem/NyARMarkerSystem.cs:606) jp.nyatla.nyartoolkit.cs.markersystem.NyARMarkerSystem.update (jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor) (at Assets/NyARToolkitCS/src.markersystem/cs/markersystem/NyARMarkerSystem.cs:474) ARCameraBehaviour.Update () (at Assets/ARCameraBehaviour.cs:66)
èªåã§ã¯ããã§æ«æãã¦ããWindowsã§è©¦ãããªï¼ãã£ã¦æã£ã¦ããã®ã§ããä½è ããããã¢ããã¤ã¹ãåãã¦è§£æ±ºãã¾ããã
ARCameraBehaviour.cs ã®ä»¥ä¸ã®é¨åã 320x320 ã«å¤æ´ããã¨ç¡äºã«Macã§ãã¨ã©ã¼ãç¡ããªããã¡ããã¨èµ¤ãããã¯ã¹ã表示ããã¾ããã
NyARMarkerSystemConfig config = new NyARMarkerSystemConfig(320,240);
ãããâ
NyARMarkerSystemConfig config = new NyARMarkerSystemConfig(320,320);