{"id":2574,"date":"2014-12-23T09:41:43","date_gmt":"2014-12-23T00:41:43","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=2574"},"modified":"2014-12-23T09:41:43","modified_gmt":"2014-12-23T00:41:43","slug":"pharo%e3%81%a73d%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/2574","title":{"rendered":"Pharo\u30673D\u8868\u793a"},"content":{"rendered":"<p>\u3053\u308c\u306f<a href=\"http:\/\/qiita.com\/advent-calendar\/2014\/smalltalk\">Smalltalk Advent Calendar 2014<\/a>\u306e12\/23\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n\u4ee5\u524d\u304b\u3089Pharo\u30673D\u8868\u793a\u3055\u305b\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u305f\u3002NativeBoost\u7d4c\u7531\u3067OpenGL\u3092\u4f7f\u3046NBOpenGL\u3092\u8a66\u3057\u3066\u307f\u305f\u306e\u3060\u304c\u3001\u3069\u3046\u3084\u3089\u30e1\u30f3\u30c6\u3055\u308c\u3066\u3044\u306a\u3044\u3089\u3057\u304f\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3002<br \/>\n\u305d\u3093\u306a\u3068\u3053\u308d\u3001<a href=\"http:\/\/www.smalltalk-users.jp\/Home\/gao-zhi\/dai67kaismalltalkbenkyoukai\">\u7b2c67\u56deSmalltalk\u52c9\u5f37\u4f1a\u3067Roassal\u304c\u53d6\u308a\u4e0a\u3052\u3089\u308c\u305f\u3002<\/a>\u3042\u3044\u306b\u304f\u4ed5\u4e8b\u3067\u53c2\u52a0\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3060\u304c\u3001\u30d7\u30ec\u30bc\u30f3\u8cc7\u6599\u3067Roassal3d\u306b\u3064\u3044\u3066\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u904a\u3093\u3067\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<h2>Roassal3d\u306e\u5c0e\u5165<\/h2>\n<pre>MetacelloConfigurationBrowser open.<\/pre>\n<p>\u4e0a\u8a18\u3092Workspace\u3067Do it\u3057\u3066Configuration Browser\u3092\u8d77\u52d5\u3059\u308b\u3002\u4e00\u89a7\u304b\u3089Roassal3d\u3092\u9078\u3093\u3067Install stable version\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u81ea\u52d5\u7684\u306bRoassal3d\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002<\/p>\n<h2>\u30b5\u30f3\u30d7\u30eb\u306e\u5b9f\u884c<\/h2>\n<p>Roassal3d\u306e\u6a5f\u80fd\u3092\u3072\u3068\u3068\u304a\u308a\u8a66\u3057\u3066\u307f\u308b\u306b\u306f\u4ee5\u4e0b\u3092Workspace\u3067Do it\u3059\u308b\u3002<\/p>\n<pre>R3RoassalExample new open.<\/pre>\n<p>\u3044\u308d\u3093\u306a\u30a2\u30a4\u30b3\u30f3\u304c\u4e26\u3093\u3067\u3044\u308b\u306e\u3067\u30de\u30a6\u30b9\u3067\u5de6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u305d\u308c\u305e\u308c\u306e\u30c7\u30e2\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u73fe\u308c\u308b\u3002\u53f3\u30af\u30ea\u30c3\u30af\u3092\u3059\u308b\u3068Browser\u304c\u73fe\u308c\u3001\u5bfe\u5fdc\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u30c7\u30e2\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u64cd\u4f5c\u306f\u30ad\u30fc\u304a\u3088\u3073\u30de\u30a6\u30b9\u3067\u884c\u3046\u3002\u30ad\u30fc\u64cd\u4f5c\u3067\u306f\u3001W\u306f\u524d\u9032\u3001S\u306f\u5f8c\u9000\u3001A\u306f\u5de6\u79fb\u52d5\u3001D\u306f\u53f3\u79fb\u52d5\u3001C\u304c\u4e0b\u79fb\u52d5\u3001\u30b9\u30da\u30fc\u30b9\u304c\u4e0a\u79fb\u52d5\u3067\u304d\u308b\u3002\u30de\u30a6\u30b9\u3067\u306f\u30c9\u30e9\u30c3\u30b0\u306b\u3088\u308a\u5411\u304d\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u30c7\u30e2\u306e\u4e2d\u306b\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3057\u305f\u308a\u3001\u30de\u30a6\u30b9\u306e\u52d5\u304d\u306b\u53cd\u5fdc\u3059\u308b\u3082\u306e\u304c\u3042\u308b\u3002<\/p>\n<h2>3D\u30d3\u30e5\u30fc\u306e\u4f5c\u6210<\/h2>\n<p>R3View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u3001R3Element\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u30673D\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\nR3Element\u306b\u306f\u5f62\u3084\u4f4d\u7f6e\u3001\u5411\u304d\u306a\u3069\u306e\u69d8\u3005\u306a\u5c5e\u6027\u304c\u3042\u308b\u3002\u7acb\u65b9\u4f53\u3084\u7403\u4f53\u306a\u3069\u4e00\u822c\u7684\u306a\u7269\u4f53\u306f\u3001R3Element\u3092\u76f4\u63a5\u751f\u6210\u305b\u305a\u3001R3Shape\u306e\u8a72\u5f53\u3059\u308b\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u7d4c\u7531\u3057\u3066\u751f\u6210\u3059\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306f\u6700\u3082\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u30673D\u30d3\u30e5\u30fc\u306e\u4e2d\u5fc3\u306b\u7acb\u65b9\u4f53\u3092\u7f6e\u304f\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n<pre>| view |\nview := R3View new.\nview add: R3CubeShape new element.\nview open.<\/pre>\n<p>\u4e0a\u8a18\u3067\u751f\u6210\u3057\u305f3D\u30d3\u30e5\u30fc\u3092inspect\u3057\u3066elements\u3092\u8abf\u3079\u308b\u3068\uff12\u500b\u306e\u8981\u7d20\u304c\u3042\u308b\u4e00\u65b9\u306f\u751f\u6210\u3057\u305f\u7acb\u65b9\u4f53\u3067\u3001\u3082\u3046\u4e00\u65b9\u306f\u7167\u660e\u3067\u3042\u308b\u3002<br \/>\n\u7acb\u65b9\u4f53\u306e\u4f4d\u7f6e\u3092\u5909\u3048\u308b\u306b\u306f\u3001R3Vector\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f15\u6570\u3068\u3057\u3066position:\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308c\u3070\u826f\u3044\u3002<\/p>\n<pre>view elements last position: (R3Vector x: -1 y: -1 z: 0); signalUpdate<\/pre>\n<p>\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306b\u7d9a\u3051\u3066\u4e0a\u8a18\u3092Do it\u3059\u308c\u3070\u3001\u7acb\u65b9\u4f53\u306f\u4e2d\u592e\u304b\u3089\u5de6\u4e0b\u306b\u79fb\u52d5\u3059\u308b\u3002<br \/>\nposition:\u3092\u9001\u3063\u305f\u3060\u3051\u3067\u306f3D\u30d3\u30e5\u30fc\u306b\u5909\u5316\u306f\u73fe\u308c\u306a\u3044\u306e\u3067\u3001signalUpdate\u3092\u9001\u3063\u30663D\u30d3\u30e5\u30fc\u3092\u66f4\u65b0\u3059\u308b\u3002<\/p>\n<h2>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h2>\n<p>3D\u30d3\u30e5\u30fc\u4e0a\u306e\u7269\u4f53\u3092\u52d5\u304b\u3059\u624b\u6bb5\u3068\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3002R3View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306bR3Animation\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u767b\u9332\u3059\u308b\u3068\u30013D\u30d3\u30e5\u30fc\u306e\u66f4\u65b0\u306b\u3042\u308f\u305b\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u4f5c\u3059\u308b\u3002R3Animation\u306fR3Element\u306b\u4f5c\u7528\u3057\u3066\u4f4d\u7f6e\u3084\u5411\u304d\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092Do it\u3059\u308b\u3068\u3001\u7acb\u65b9\u4f53\u304c\u4e2d\u592e\u304b\u3089\u5de6\u4e0b\u306b\u79fb\u52d5\u3059\u308b\u3002<\/p>\n<pre>| view element animation |\nview := R3View new.\nelement := R3CubeShape new.\nview add: element element.\nanimation := R3LinearMove new on: element by: (R3Vector3 x: -1 y: -1 z: 0).\nview addAnimation: animation.\nview open.<\/pre>\n<p>\u8907\u6570\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u9023\u7d50\u3055\u305b\u3066\u3001\u9023\u7d9a\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u7acb\u65b9\u4f53\u304c\uff14\u9685\u3092\u9023\u7d9a\u3057\u3066\u79fb\u52d5\u3059\u308b\u3002<\/p>\n<pre>| view element a1 a2 a3 a4 |\nview := R3View new.\nelement := R3CubeShape new element.\nview add: element.\na1 := R3LinearMove new on: element by: (R3Vector3 x: -1 y: -1 z: 0).\na2 := R3LinearMove new on: element by: (R3Vector3 x: 1 y: -1 z: 0).\na3 := R3LinearMove new on: element by: (R3Vector3 x: 1 y: 1 z: 0).\na4 := R3LinearMove new on: element by: (R3Vector3 x: -1 y: 1 z: 0).\na1 followedBy: a2.\na2 followedBy: a3.\na3 followedBy: a4.\na4 followedBy: a1.\nview addAnimation: a1.\nview open.<\/pre>\n<h2>\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3<\/h2>\n<p>\u4eca\u307e\u3067\u306e\u4f8b\u3067\u306f3D\u30d3\u30e5\u30fc\u306f\u56fa\u5b9a\u3055\u308c\u305f\u30ab\u30e1\u30e9\u304b\u3089\u306e\u753b\u50cf\u3057\u304b\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u304c\u3001\u5192\u982d\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306b\u30ad\u30fc\u30dc\u30fc\u30c9\u3084\u30de\u30a6\u30b9\u3092\u7528\u3044\u3066\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u305d\u306e\u305f\u3081\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<pre>view addInteraction: R3MKControl.<\/pre>\n<p>\u4ee5\u4e0a\u6982\u89b3\u3057\u305f\u3088\u3046\u306b\u3001Roassal3d\u306fPharo\u4e0a\u3067\u7c21\u5358\u306b3D\u8868\u793a\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u512a\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308b\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u4e00\u3064\u306e\u7269\u4f53\u306e\u307f\u64cd\u4f5c\u3057\u305f\u304c\u3001\u5c11\u306a\u3044\u52b4\u529b\u3067\u591a\u6570\u306e\u7269\u4f53\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3002<br \/>\nRoassal3d\u306b\u95a2\u3059\u308b\u60c5\u5831\u306f<a href=\"http:\/\/objectprofile.com\/Roassal.html\">Object Profile\u306eweb\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u306fSmalltalk Advent Calendar 2014\u306e12\/23\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u4ee5\u524d\u304b\u3089Pharo\u30673D\u8868\u793a\u3055\u305b\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u305f\u3002NativeBoost\u7d4c\u7531\u3067OpenGL\u3092\u4f7f\u3046NBOpenGL\u3092\u8a66\u3057\u3066\u307f\u305f\u306e\u3060&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-2574","post","type-post","status-publish","format-standard","hentry","category-pharo"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2574\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=2574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=2574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}