{"id":243,"date":"2015-04-27T15:32:35","date_gmt":"2015-04-27T07:32:35","guid":{"rendered":"http:\/\/qxu1606620110.my3w.com\/?p=243"},"modified":"2016-10-11T09:34:05","modified_gmt":"2016-10-11T01:34:05","slug":"metaio-in-unity3d-%e6%95%99%e7%a8%8b-%e4%b8%80-%e6%90%ad%e5%bb%ba%e7%8e%af%e5%a2%83%ef%bc%8c%e8%bf%90%e8%a1%8c%e5%ae%98%e6%96%b9%e6%a1%88%e4%be%8b","status":"publish","type":"post","link":"http:\/\/www.u3d8.com\/?p=243","title":{"rendered":"Metaio in Unity3d \u6559\u7a0b&#8212; \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b"},"content":{"rendered":"<p style=\"text-align: center;\"><span style=\"color: #ff0000;\">\u8f6c\u81ea\uff1a<a href=\"http:\/\/game.ceeger.com\/forum\/read.php?tid=16268\" target=\"_blank\">http:\/\/game.ceeger.com\/forum\/read.php?tid=16268<\/a><\/span><\/p>\n<p style=\"text-align: left;\">Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b<\/p>\n<p>\u672c\u6587\u4ee5Metaio SDK 5.3\u4f5c\u4e3a\u6848\u4f8b\u8bb2\u89e3\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u4e0a\u5b98\u7f51\u4e0b\u8f7dSDK\u5b89\u88c5\u5305\uff1a\uff0c\u5e76\u5b89\u88c5\u3002<br \/>\n\u8fd9\u4e2a\u5b89\u88c5\u5305\u5c31\u662fSDK\u5305\uff0c\u5305\u542b\u4e86Android\\ios\\windows\\unity3d\u7684sdk\u3002<br \/>\n<span id=\"J_att_15454\"><span id=\"td_att_15454\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c1\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c1\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/1403\/thread\/27_2026_683ac14407955a8.jpg\" alt=\"\" border=\"0\" \/><\/span><\/span><br \/>\n\u684c\u9762unity3d\u5feb\u6377\u65b9\u5f0f\u53f3\u952e\u5c5e\u6027\uff0c\u5c06unity3d\u8bbe\u7f6e\u4e3a\u5f3a\u5236\u4f7f\u7528opengl\u6253\u5f00\uff0c\u5373\u5728\u76ee\u6807\u4e2d\u52a0\u5165 \u00a0-force-opengl<br \/>\n\u5982\u679c\u7535\u8111\u4e2d\u6709\u6444\u50cf\u5934\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5728editor\u6a21\u5f0f\u4e0b\u626b\u63cf\u4e86\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u6253\u5f00\u5b98\u65b9\u6848\u4f8b<br \/>\n\u6253\u5f00unity3d\uff0c\u627e\u5230\u5b98\u65b9\u6848\u4f8b\u7684\u5de5\u7a0b\u76ee\u5f55\uff1a...\\metaio SDK\\SDK_Unity\\Example<br \/>\n<span id=\"J_att_15412\"><span id=\"td_att_15412\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c2\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c2\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/1403\/thread\/27_2026_93780f2307683da.png\" alt=\"\" border=\"0\" \/><\/span><\/span><\/p>\n<p>Project \u9762\u677f\u4e2d\u7684\u76ee\u5f55\u3002<br \/>\nPlugins\u5305\u542b\u4e86Android\u3001iOS\u7684\u63d2\u4ef6\u3002<br \/>\nStreamAssets\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6587\u4ef6\u5939\uff0c\u628a\u626b\u63cf\u76f8\u5173\u7684\u6587\u4ef6\u90fd\u653e\u5728\u8fd9\u91cc\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u5b66\u4e60HelloWorld\u6848\u4f8b<br \/>\n\u6211\u4eec\u6765\u770b\u7b2c\u4e00\u4e2a\u6559\u7a0b\u3002\u6253\u5f00Tutorial1\u4e2d\u7684\u573a\u666f\u6587\u4ef6\u3002<br \/>\n<span id=\"J_att_15413\"><span id=\"td_att_15413\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c3\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c3\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/thumb\/1403\/thread\/27_2026_928d0a2f0efacac.png\" alt=\"\" border=\"0\" \/><\/span><\/span><br \/>\n\uff081\uff09\u5728Hierarchy\u9762\u677f\u4e2d\uff0cmetaioSDK\u7269\u4f53\u4e0a\u8d34\u6709metaioSDK.cs\u6587\u4ef6\u3002<br \/>\n\u5176\u4e2dSDK Signature\u662fmetaio\u7684\u7b7e\u540d\uff0c\u9700\u8981\u5230\u5b98\u7f51\u4e0a\u7533\u8bf7\u4e00\u4e2a\uff0c\u8981\u4e0e\u9879\u76ee\u7684Bundle Identifier\u76f8\u5bf9\u5e94\u3002<\/p>\n<p>\u6bd4\u5982\u5b98\u65b9\u6848\u4f8b\u7684<br \/>\nBundle Identifer\u662f\uff1acom.metaio.unity.Example<br \/>\nSDK Signature\u662f\uff1a \u00a0 fSA5ZtAybUBiXenYXDByoDHQXL\/g0p0Wy7PJx5xHY7A=<\/p>\n<p>\u8fd9\u4e2a\u662f\u4fdd\u8bc1\u7248\u6743\u7684\u90e8\u5206\uff0c\u4e24\u8005\u9700\u8981\u76f8\u5bf9\u5e94\u624d\u53ef\u4ee5\u8fd0\u884c\uff0c\u9700\u8981\u5230\u5b98\u7f51\u4e0a\u53bb\u7533\u8bf7\uff0c\u5982\u679c\u662f\u8d2d\u4e70\u4e86SDK\uff0c\u5c31\u4e0d\u4f1a\u6709\u6c34\u5370\uff0c\u6ca1\u6709\u8d2d\u4e70\u4e5f\u53ef\u4ee5\u7533\u8bf7\uff0c\u4f46\u4f1a\u6709\u6c34\u5370\u3002\u5177\u4f53\u7684\u64cd\u4f5c\u65b9\u6cd5\u5728\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4e2d\u4ecb\u7ecd\u3002<br \/>\nCamera index\u662f\u6444\u50cf\u5934\u7684\u7f16\u53f7\uff0c\u5728\u624b\u673a\u4e2d\uff0c0\u8868\u793a\u540e\u7f6e\u6444\u50cf\u5934\uff0c1\u8868\u793a\u524d\u7f6e\u6444\u50cf\u5934\u3002<br \/>\nCamera width\\height\u662f\u5206\u8fa8\u7387\uff0c\u5206\u522b\u6709320*240\u3001640*480\u30011280*960\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\u3002\u5206\u8fa8\u7387\u8d8a\u9ad8\uff0c\u663e\u50cf\u8d8a\u6e05\u6670\uff0c\u5f53\u7136\u4e5f\u5c31\u8d8a\u5361\u4e86\u3002<\/p>\n<p>Select configuration\u4e2d\u6709\u51e0\u79cd\u6a21\u5f0f\uff0c\u9009\u62e9StreamingAssets\uff0c\u4e0b\u9762\u7684tracking\u6587\u4ef6\u662ftracking\u76f8\u5173\u7684\u53c2\u6570\u6587\u4ef6\uff0c\u5fc5\u987b\u5b58\u5728StreamingAssets\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n<p>\uff082\uff09DevieceCamera\u662f\u83b7\u5f97\u6444\u50cf\u5934\u7684\u4fe1\u606f\uff0c\u7136\u540e\u6295\u5f71\u5230CameraPlane\u4e0a\uff0c\u6240\u4ee5\u4f60\u770b\u5230\u7684Scene\u9762\u677f\u4e2d\u7684CameraPlane\u662f\u7d2b\u8272\u7684\uff0c\u56e0\u4e3a\u6ca1\u6709\u7ed9\u5b83\u8d4b\u4e88\u6750\u8d28\u3002<br \/>\nMainCamera\u662f\u7528\u6765\u770b\u573a\u666f\u3002<\/p>\n<p>\uff083\uff09metaioTracker\u662f\u626b\u63cf\u7ed3\u679c\uff0c\u5b83\u7684\u5b50\u7269\u4f53\u662f\u626b\u63cf\u51fa\u6765\u7684\u7ed3\u679c\u3002\u626b\u63cf\u51fa\u6765\u7684\u65f6\u5019\u4f1a\u663e\u793a\u6240\u6709\u5b50\u7269\u4f53\uff0c\u6ca1\u6709\u626b\u63cf\u51fa\u6765\u7684\u65f6\u5019\u4f1a\u9690\u85cf\u6240\u6709\u5b50\u7269\u4f53\u3002<br \/>\n<span id=\"J_att_15414\"><span id=\"td_att_15414\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c4\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c4\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/1403\/thread\/27_2026_887d59844528b4c.png\" alt=\"\" border=\"0\" \/><\/span><\/span><\/p>\n<p>metaioTracker\u4e0a\u8d34\u7684\u811a\u672c\u662fmetaioTracker.cs\uff0c\u5176\u4e2d\u7684Coordinate Sytem ID \u662f\u626b\u63cf\u7684\u7f16\u53f7\uff0c\u4e0etracking.xml\u4e2d\u76f8\u5bf9\u5e94\uff0c\u540e\u9762\u4f1a\u7ee7\u7eed\u8bb2\u5230\u3002<\/p>\n<p>\u7b2c\u56db\u6b65\uff1a\u5bfc\u51faapk\uff0c\u8fd0\u884c\u5728android\u5e73\u53f0\u4e0a<br \/>\n<span id=\"J_att_15415\"><span id=\"td_att_15415\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c5\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c5\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/1403\/thread\/27_2026_a4613e8da330f26.png\" alt=\"\" border=\"0\" \/><\/span><\/span><\/p>\n<p>\u9700\u8981\u6709android SDK\u3002<br \/>\nFile -&gt;Build Setting \u00a0\u5148Switch Platform\uff0c\u7136\u540eBuild And Run.<\/p>\n<p>\u7b2c\u4e94\u6b65\uff1a\u5bfc\u51faios\u5e73\u53f0\u8fd0\u884c\u3002<\/p>\n<p>\u9700\u8981\u6709ios SDK\u3002<br \/>\nFile -&gt;Build Setting \u00a0\u5148Switch Platform\uff0c\u7136\u540eBuild And Run.<br \/>\n\u5bfc\u51faxcode\u5de5\u7a0b\uff0c<br \/>\n<span id=\"J_att_15418\"><span id=\"td_att_15418\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c6\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c6\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/thumb\/1403\/thread\/27_2026_77aae937f22dc07.jpg\" alt=\"\" border=\"0\" \/><\/span><\/span><\/p>\n<p>\u9700\u8981\u589e\u52a0\u4e09\u4e2alibrary\uff0c<\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\">...\/Libraries\/metaiosdk(Add Other...)<\/span><br \/>\n<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\">libxml2.dylib<\/span><br \/>\n<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\">Security.framework<\/span><br \/>\nlibc++.dylib<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><br \/>\n<\/span><br \/>\n<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\">sdk5.5\u9700\u8981\u589e\u52a0\u4e00\u4e2alibrary\uff1a <\/span>CoreImage.framework (SDK 5.5 and newer)<\/p>\n<p style=\"text-align: left;\">\u7b2c\u516d\u6b65\uff1a\u5bfc\u51faexe\u7248\u672c<br \/>\n\u6253\u5f00\u4e4b\u540e\u51fa\u73b0\u767d\u5c4f\uff0c\u4e14\u63d0\u793a\u8981\u7528-force -opengl\u6253\u5f00<br \/>\n<span id=\"J_att_16671\"><span id=\"td_att_16671\" class=\"J_attach_img_wrap single_img\"><img title=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c7\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Metaio in Unity3d \u6559\u7a0b--- \u4e00. \u642d\u5efa\u73af\u5883\uff0c\u8fd0\u884c\u5b98\u65b9\u6848\u4f8b - \u7b2c7\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" class=\"J_post_img\" style=\"border: 0px; vertical-align: top; max-width: 726px; max-height: 700px;\" src=\"http:\/\/game.ceeger.com\/forum\/attachment\/1407\/thread\/27_2026_e2fcf10361c4aaa.png\" alt=\"\" border=\"0\" \/><\/span><\/span><br \/>\n\u4e0d\u8981\u7684\u62c5\u5fc3\uff0c\u589e\u52a0\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u5728\u5feb\u6377\u65b9\u5f0f\u4e2d\u52a0 -force -opengl\uff0c\u7136\u540e\u6253\u5f00\u8fd9\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002\u7c7b\u4f3c\u7b2c\u4e00\u6b65\u3002<br \/>\n\u90a3\u4e48\u8fd9\u4e2aappKeys.xml\u662f\u5e72\u561b\u7528\u7684\u5462\uff1f<\/p>\n<p>&lt;Keys&gt;<br \/>\n&lt;AppID&gt;&lt;\/AppID&gt;<br \/>\n&lt;SignatureKey&gt;&lt;\/SignatureKey&gt;<br \/>\n&lt;\/Keys&gt;<br \/>\n\u6ca1\u9519\uff0c\u5c31\u662fsdk signature\uff0c\u9700\u8981\u4f60\u81ea\u5df1\u518d\u586b\u4e00\u4e0b\u3002\u6bcf\u6b21\u5bfc\u51fa\u90fd\u4f1a\u6709\u65b0\u7684AppID\uff0c\u5efa\u8bae\u6700\u540e\u4e00\u6b21\u53d1\u5e03\u7684\u65f6\u5019\u518d\u7533\u8bf7<br \/>\n\u53e6\u5916\u6709\u53ef\u80fd\u9047\u5230windows7 8 \u548cx86 x64\u7684\u95ee\u9898\uff0c\u8fd9\u4e2a\u5927\u5bb6\u591a\u6298\u78e8\u51e0\u6b21\u5c31\u660e\u767d\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea\uff1ahttp:\/\/game.ceeger.com\/forum\/read.php &hellip; <a href=\"http:\/\/www.u3d8.com\/?p=243\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[57,55,56],"_links":{"self":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/243"}],"collection":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=243"}],"version-history":[{"count":4,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":751,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions\/751"}],"wp:attachment":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}