{"id":476,"date":"2012-02-16T01:00:54","date_gmt":"2012-02-15T16:00:54","guid":{"rendered":"http:\/\/nyatla.jp\/nyartoolkit\/wp\/?p=476"},"modified":"2012-03-03T00:39:28","modified_gmt":"2012-03-02T15:39:28","slug":"nyartoolkitv4-alpha","status":"publish","type":"post","link":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/?p=476","title":{"rendered":"NyARToolkitV4 alpha"},"content":{"rendered":"<p><a href=\"http:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/0d40a5e4a645fc6b96e767d64ac0878e1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-481 aligncenter\" title=\"\u7121\u984c\" src=\"http:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/0d40a5e4a645fc6b96e767d64ac0878e1-300x236.png\" alt=\"\" width=\"300\" height=\"236\" \/><\/a><\/p>\n<p>NyARToolkitV4\u306eAPI\u306e\u5b9f\u88c5\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u308b\u306e\u306f\u307e\u3060\u5148\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001Subversion\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30df\u30c3\u30c8\u3057\u307e\u3057\u305f\u3002\u3082\u3057\u3088\u308d\u3057\u3051\u308c\u3070\u3001\u30d0\u30b0\u63a2\u3057\u306b\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ea\u30d3\u30b8\u30e7\u30f3\u756a\u53f7\u306f\u3001906\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>NyARToolkitV4\u3000alpha version is committed\u00a0 on SVN repository at rev 906. The package release will be released at a few weeks after.\u00a0 Please try, if you like it!<\/p>\n<p><a href=\"http:\/\/sourceforge.jp\/projects\/nyartoolkit\/svn\/view\/NyARToolkit\/trunk\/?root=nyartoolkit\">http:\/\/sourceforge.jp\/projects\/nyartoolkit\/svn\/view\/NyARToolkit\/trunk\/?root=nyartoolkit<\/a><\/p>\n<h2>\u8ffd\u52a0\u6a5f\u80fd<\/h2>\n<ul>\n<li>MarkerSystem\u306e\u8ffd\u52a0<\/li>\n<li>JavaGraphics\u3068\u306e\u76f8\u4e92\u904b\u7528\u6027\u306e\u5411\u4e0a<\/li>\n<li>\u30b9\u30b1\u30c3\u30c1\u30b7\u30b9\u30c6\u30e0\u306e\u8ffd\u52a0<\/li>\n<li>\u753b\u50cf\u51e6\u7406\u6a5f\u69cb\u306e\u518d\u69cb\u7bc9<\/li>\n<li>ARToolkitV4 pro\u3068\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u306e\u8ffd\u52a0<\/li>\n<li>\u305d\u306e\u4ed6\u3001API\u306e\u5909\u66f4\u306a\u3069\u6ca2\u5c71<\/li>\n<\/ul>\n<h3>MarkerSystem\u306e\u8ffd\u52a0<\/h3>\n<p style=\"padding-left: 30px;\">MarkerSystem\u306f\u3001AR\u30de\u30fc\u30ab\u3068NyId\u3068\u540c\u6642\u306b\u8907\u6570\u4f7f\u7528\u3067\u304d\u308b\u3001\u65b0\u3057\u3044\u30de\u30fc\u30ab\u7ba1\u7406\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002NyARToolkit.sample.jogl\u306b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px; text-align: left;\"><a href=\"http:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/05b634bce4cd616dfe5225fe6c3f5da7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-479\" title=\"\u30af\u30e9\u30b9\u56f30\" src=\"http:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/05b634bce4cd616dfe5225fe6c3f5da7-300x227.png\" alt=\"\" width=\"300\" height=\"227\" srcset=\"https:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/05b634bce4cd616dfe5225fe6c3f5da7-300x227.png 300w, https:\/\/nyatla.jp\/nyartoolkit\/wp\/wp-content\/uploads\/05b634bce4cd616dfe5225fe6c3f5da7.png 812w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3001\u753b\u50cf\u53d6\u5f97\uff08\u30bb\u30f3\u30b5\uff09\u3001\u30de\u30fc\u30ab\u7ba1\u7406\u3001\u753b\u50cf\u51fa\u529b\uff08\u30ec\u30f3\u30c0\u30e9\uff09\u306e\uff14\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u753b\u50cf\u53d6\u5f97\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306fQuickTime\u3001JMF\u3001NyARSensor\u306e\uff13\u7a2e\u985e\u304c\u3042\u308a\u3001\u3053\u308c\u3089\u3092\u5207\u308a\u66ff\u3048\u3066\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306eMarkerSystem\u306f\u9802\u70b9\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u6a5f\u80fd\u304c\u3042\u308a\u3001\u5f93\u6765\u3088\u308a\u3082\u4f4e\u901f\u6642\u306e\u8ffd\u5f93\u6027\u304c\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>JavaGraphics\u3068\u306e\u76f8\u4e92\u904b\u7528\u6027\u306e\u5411\u4e0a<\/h3>\n<p style=\"padding-left: 30px;\">NyARRaster\u3092\u4ecb\u3057\u3066\u3001BufferedImage\u3001OpenGL\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u9593\u3067\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u76f8\u4e92\u904b\u7528\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002BufferedImage\u3092OpenGL\u30c6\u30af\u30b9\u30c1\u30e3\u306b\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3001\u5143\u753b\u50cf\u3092bufferedImage\u3067\u51e6\u7406\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u5bb9\u6613\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30b1\u30c3\u30c1\u30b7\u30b9\u30c6\u30e0\u306e\u8ffd\u52a0<\/h3>\n<p style=\"padding-left: 30px;\">processing\u30e9\u30a4\u30af\u306a\u7c21\u6613\u30b9\u30b1\u30c3\u30c1\u30b7\u30b9\u30c6\u30e0\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30c8\u30bf\u30a4\u30d4\u30f3\u30b0\u304c\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001SimpleLite\u3092\u30b9\u30b1\u30c3\u30c1\u30b7\u30b9\u30c6\u30e0\u3068MarkerSystem\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b\u3068\u300160\u884c\u307b\u3069\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npackage jp.nyatla.nyartoolkit.jogl.sample.sketch;\r\n\r\nimport javax.media.opengl.*;\r\nimport jp.nyatla.nyartoolkit.*;\r\nimport jp.nyatla.nyartoolkit.jmf.utils.*;\r\nimport jp.nyatla.nyartoolkit.jogl.sketch.GlSketch;\r\nimport jp.nyatla.nyartoolkit.jogl.utils.*;\r\nimport jp.nyatla.nyartoolkit.markersystem.NyARMarkerSystemConfig;\r\n\/**\r\n * JMF\u304b\u3089\u306e\u6620\u50cf\u5165\u529b\u304b\u3089\u30de\u30fc\u30ab1\u7a2e\u3092\u691c\u51fa\u3057\u3001\u305d\u3053\u306b\u7acb\u65b9\u4f53\u3092\u91cd\u306d\u307e\u3059\u3002\r\n * AR\u30de\u30fc\u30ab\u306b\u306f\u3001patt.hiro\u3092\u4f7f\u7528\u3057\u3066\u4e0b\u3055\u3044\u3002\r\n *\/\r\npublic class SimpleLite extends GlSketch\r\n{\r\n  private NyARJmfCamera camera;\r\n  private NyARGlMarkerSystem nyar;\r\n  private NyARGlRender render;\r\n  public void setup(GL gl)throws NyARException\r\n  {\r\n    this.size(640,480);\r\n    NyARMarkerSystemConfig config = new NyARMarkerSystemConfig(640,480);\r\n    this.camera=new NyARJmfCamera(config,30.0f);\/\/create sensor system\r\n    this.nyar=new NyARGlMarkerSystem(config);   \/\/create MarkerSystem\r\n    this.render=new NyARGlRender(this.nyar);\r\n\r\n    this.id=this.nyar.addARMarker(ARCODE_FILE,16,25,80);\r\n    gl.glEnable(GL.GL_DEPTH_TEST);\r\n    this.camera.start();\r\n  }\r\n  private final static String ARCODE_FILE = &quot;..\/..\/Data\/patt.hiro&quot;;\r\n  private int id;\r\n\r\n  public void draw(GL gl)\r\n  {\r\n    synchronized(this.camera){\r\n      try {\r\n        this.render.drawBackground(gl, this.camera.getSourceImage());\r\n        this.render.loadARProjectionMatrix(gl);\r\n        this.nyar.update(this.camera);\r\n        if(this.nyar.isExistMarker(this.id)){\r\n          this.render.loadMarkerMatrix(gl,this.id);\r\n          this.render.colorCube(gl,40,0,0,20);\r\n        }\r\n        Thread.sleep(1);\r\n      } catch (Exception e) {\r\n        e.printStackTrace();\r\n      }\r\n    }\r\n  }\r\n  public static void main(String&#x5B;] args)\r\n  {\r\n    try {\r\n      new SimpleLite();\r\n    } catch (Exception e) {\r\n      e.printStackTrace();\r\n    }\r\n    return;\r\n  }\r\n}\r\n<\/pre>\n<h3>\u753b\u50cf\u51e6\u7406\u6a5f\u69cb\u306e\u518d\u69cb\u7bc9<\/h3>\n<p style=\"padding-left: 30px;\">COM\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u3092\u53c2\u8003\u306b\u3057\u305f\u753b\u50cf\u51e6\u7406\u6a5f\u69cb\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002\u5f93\u6765\u306f\u753b\u50cf\u51e6\u7406\u6a5f\u69cb\u3068\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5206\u96e2\u3057\u305f\u30e2\u30c7\u30eb\u3067\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u30e2\u30c7\u30eb\u3067\u306f\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u51e6\u7406\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u3092\u63d0\u4f9b\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u3092\u4ecb\u3057\u3066\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u5f62\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4f4e\u901f\u306a\u6c4e\u7528\u306e\u51e6\u7406\u7cfb\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u9ad8\u901f\u6027\u3068\u6c4e\u7528\u6027\u3092\u4e21\u7acb\u3057\u3001\u65b0\u3057\u3044\u753b\u50cf\u5f62\u5f0f\u3084\u753b\u50cf\u51e6\u7406\u306e\u30aa\u30d5\u30ed\u30fc\u30c9\u5bfe\u5fdc\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>ARToolkitV4 pro\u3068\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u306e\u8ffd\u52a0<\/h3>\n<p style=\"padding-left: 30px;\">ARToolKit Professional\u3042\u308b\u4f4d\u7f6e\u5408\u308f\u305b\u6280\u8853\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30a4\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002Pro\u7248\u306b\u3064\u3044\u3066\u306f\u3001\u8fd1\u3044\u3046\u3061\u306bARToolworks\u304b\u3089\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002(\u591a\u5206\u6709\u6599)<\/p>\n<p style=\"padding-left: 30px;\">\u306a\u304a\u3001ARToolKit Professional\u7248\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u70ba\u306e\u5909\u66f4\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u5207\u66ff\uff08\uff11\u884c\uff09\u306e\u307f\u3067\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n:\r\nthis.size(640,480);\r\n\/\/This line activates NyARToolkit professional!\r\nNyARProMarkerSystemConfig config = new NyARProMarkerSystemConfig(640,480);\r\n\/\/NyARMarkerSystemConfig(640,480);\r\nthis.camera=new NyARJmfCamera(config,30.0f);\/\/create sensor system\r\nthis.nyar=new NyARGlMarkerSystem(config);   \/\/create MarkerSystem\r\nthis.render=new NyARGlRender(this.nyar);\r\n<\/pre>\n<h3>\u305d\u306e\u4ed6\u3001API\u306e\u5909\u66f4\u306a\u3069\u6ca2\u5c71<\/h3>\n<p style=\"padding-left: 30px;\">\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3001\u983b\u5ea6\u306e\u4f4e\u3044\u95a2\u6570\u306e\u5909\u66f4\u3001\u753b\u50cf\u51e6\u7406\u7cfb\u306e\u5909\u66f4\u306b\u4f34\u3046\u591a\u91cf\u306e\u66f4\u65b0\u304c\u6709\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0d\u5177\u5408\u5831\u544a\/\u3054\u8981\u671b\u306f\u3001twitter\u3001\u53c8\u306f\u30d5\u30a9\u30fc\u30e9\u30e0\u307e\u3067\u304a\u5bc4\u305b\u304f\u3060\u3055\u3044\u3002<br \/>\nplease your message to Twitter @nyatla or <a href=\"http:\/\/sourceforge.jp\/forum\/forum.php?thread_id=31556&amp;forum_id=14611\">Forum.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NyARToolkitV4\u306eAPI\u306e\u5b9f\u88c5\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u308b\u306e\u306f\u307e\u3060\u5148\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001Subversion\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30df\u30c3\u30c8\u3057\u307e\u3057\u305f\u3002\u3082\u3057\u3088\u308d\u3057\u3051\u308c\u3070\u3001\u30d0\u30b0\u63a2\u3057\u306b\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u30ea\u30d3\u30b8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,13],"tags":[],"_links":{"self":[{"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/476"}],"collection":[{"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":9,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nyatla.jp\/nyartoolkit\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}