{"id":272,"date":"2011-04-24T00:51:56","date_gmt":"2011-04-23T15:51:56","guid":{"rendered":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/?p=272"},"modified":"2011-12-27T20:46:05","modified_gmt":"2011-12-27T11:46:05","slug":"272","status":"publish","type":"post","link":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/?p=272","title":{"rendered":"NyAR4Psg\/1.0.3\u30ea\u30ea\u30fc\u30b9"},"content":{"rendered":"<p>NyARToolkit for Processing\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5143\u3005\u306f\u67d0\u306f\u3057\u3082\u3068\u3055\u3093\u304b\u3089\u306e\u30d0\u30b0\u4fee\u6b63\u4f9d\u983c\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6c17\u304c\u4ed8\u3044\u305f\u3089\u307b\u307c\u4f5c\u308a\u76f4\u3057\uff06\u8272\u3005\u4fbf\u5229\u306b\u3002\u5f8c\u6094\u306f\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/sourceforge.jp\/projects\/nyartoolkit\/releases\/?package_id=8920\">http:\/\/sourceforge.jp\/projects\/nyartoolkit\/releases\/?package_id=8920<\/a><\/p>\n<h2>\u6a5f\u80fd\u306e\u7d39\u4ecb<\/h2>\n<p>\u3055\u3066\u3001\u3069\u3093\u306a\u4e8b\u304c\u3067\u304d\u308b\u304b\u3068\u8a00\u3044\u307e\u3059\u3068\u2026\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/n\/nyatla\/20110425\/20110425004839.png\" alt=\"\" width=\"450\" height=\"336\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067NyId\u30de\u30fc\u30ab\u3068AR\u30de\u30fc\u30ab\u304c\u6df7\u5728\u3057\u3066\u4f7f\u3048\u3061\u3083\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u3001<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/n\/nyatla\/20110425\/20110425004840.png\" alt=\"\" width=\"450\" height=\"267\" \/><\/p>\n<p>\u30de\u30fc\u30ab\u306e\u5e73\u9762\u306e\u753b\u50cf\u3092\u5f15\u3063\u5265\u304c\u3057\u305f\u308a\u3001\u30de\u30fc\u30ab\u5e73\u9762\u306e\u5ea7\u6a19\u3092\u53d6\u5f97\u3057\u305f\u308a\u306a\u3093\u3066\u4e8b\u304c\u3001\u3061\u3087\u3053\u3063\u3068\u66f8\u304f\u3060\u3051\u3067\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u6280\u8853\u7684\u306a\u9762\u3067\u306f\u3001\u5168\u3066Processing\u306e\u30b3\u30a2API\u3060\u3051\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001P3D\u30ec\u30f3\u30c0\u30e9\u3067\u3082\u554f\u984c\u7121\u304f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4ee5\u524d\u306e\u3088\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u540c\u58eb\u306e\u76f8\u6027\u554f\u984c\u304c\u767a\u751f\u3057\u306b\u304f\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u3001OpenGL\u30ec\u30f3\u30c0\u30e9\u3082\u4f7f\u3048\u307e\u3059\u3002\uff09<\/p>\n<p>\u307e\u305f\u3001\u5de6\u624b\u7cfb\/\u53f3\u624b\u7cfb\u4e21\u65b9\u306e\u5ea7\u6a19\u7cfb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u597d\u304d\u306a\u5ea7\u6a19\u7cfb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002ARToolKit\u30b7\u30ea\u30fc\u30ba\u6a19\u6e96\u306e\u53f3\u624b\u7cfb\u3060\u3068\u3001Processing\u306e\u63cf\u753b\u7d50\u679c\u304c\u53cd\u8ee2\u3059\u308b\u306e\u3067\u3001\u5de6\u624b\u7cfb\u304c\u304a\u52e7\u3081\u3067\u3059\u3002\uff09<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb<\/p>\n<p>\u4eca\u56de\u306fExample\u304c\u6ca2\u5c71\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070SimpleLite\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nimport processing.video.*;\r\nimport processing.core.*;\r\nimport jp.nyatla.nyar4psg.*; \/\/(1)\r\n\r\nCapture cam;\r\nMultiMarker nya;\/\/(2)\r\nPFont font=createFont(&quot;FFScala&quot;, 32);\r\n\r\nvoid setup() {\r\n  size(640,480,P3D);\r\n  colorMode(RGB, 100);\r\n  println(MultiMarker.VERSION);\r\n  cam=new Capture(this,640,480);\r\n  nya=new MultiMarker(this,width,height,&quot;camera_para.dat&quot;,NyAR4PsgConfig.CONFIG_PSG);\/\/(3)\r\n  nya.addARMarker(&quot;patt.hiro&quot;,80);\/\/(4)\r\n}\r\n\r\nvoid draw()\r\n{\r\n  if (cam.available() !=true) {\r\n      return;\r\n  }\r\n  cam.read();\r\n  nya.detect(cam);\/\/(5)\r\n  hint(DISABLE_DEPTH_TEST);\r\n  image(cam,0,0);\r\n  hint(ENABLE_DEPTH_TEST);\r\n  if((!nya.isExistMarker(0))){\/\/(6)\r\n    return;\r\n  }\r\n  nya.beginTransform(0);\/\/(7)\r\n  fill(0,0,255);\r\n  translate(0,0,20);\r\n  box(40);\r\n  nya.endTransform();\/\/(8)\r\n}\r\n<\/pre>\n<p>\u5c11\u3057\u9577\u3044\u3067\u3059\u304c\u3001AR\u5316\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u306f8\u884c\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002Java\u3084C\u8a00\u8a9e\u3068\u6bd4\u3079\u3066\u3001\u304a\u307e\u3058\u306a\u3044\u304c\u5727\u5012\u7684\u306b\u5c11\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u904e\u53bb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u79fb\u690d\u306b\u3064\u3044\u3066<\/h2>\n<p>\u65b0\u3057\u3044NyAR4Psg\u306f\u3001\u904e\u53bb\u306eAPI\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4e92\u63db\u6027\u306f100%\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f7f\u7528\u983b\u5ea6\u306e\u4f4e\u3044\u30e1\u30f3\u30d0\u5909\u6570\u304c\u7121\u304f\u306a\u3063\u305f\u308a\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u5f15\u6570\u500b\u6570\u304c\u5909\u308f\u3063\u305f\u308a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u9069\u6642\u4fee\u6b63\u3092\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NyARToolkit for Processing\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 \u5143\u3005\u306f\u67d0\u306f\u3057\u3082\u3068\u3055\u3093\u304b\u3089\u306e\u30d0\u30b0\u4fee\u6b63\u4f9d\u983c\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6c17\u304c\u4ed8\u3044\u305f\u3089\u307b\u307c\u4f5c\u308a\u76f4\u3057\uff06\u8272\u3005\u4fbf\u5229\u306b\u3002\u5f8c\u6094\u306f\u3057\u3066\u3044\u306a\u3044\u3002 http:\/\/sourceforge. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/272"}],"collection":[{"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":6,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":291,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions\/291"}],"wp:attachment":[{"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}