{"id":14757,"date":"2013-09-11T08:00:02","date_gmt":"2013-09-10T23:00:02","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=14757"},"modified":"2013-09-10T09:02:44","modified_gmt":"2013-09-10T00:02:44","slug":"webgl%e3%82%92virtualbox%e4%b8%8a%e3%81%aeweb%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%a7%e5%8b%95%e4%bd%9c%e3%81%95%e3%81%9b%e3%82%8b%e3%81%ae%e3%81%af%e9%9b%a3%e3%81%97%e3%81%84%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/14757.html","title":{"rendered":"WebGL\u3092VirtualBox\u4e0a\u306eWeb\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u306f\u96e3\u3057\u3044\u3088\u3046\u3060"},"content":{"rendered":"<p>WebGL\u3092VirtualBox\u4e0a\u306eWeb\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u306f\u96e3\u3057\u3044\u3088\u3046\u3067\u3059\u306d\u3002\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u3044\u65b9\u6cd5\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3044\u307e\u306e\u3068\u3053\u308d\u624b\u5143\u306e\u30de\u30b7\u30f3\u3067\u306f\u6210\u529f\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n<!--more--><br \/>\nWebGL\u30c1\u30a7\u30c3\u30af\u306b\u306f <a href=\"http:\/\/webglreport.com\/\">http:\/\/webglreport.com\/<\/a> \u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u4f7f\u3048\u306a\u3044\u30d6\u30e9\u30a6\u30b6\u3060\u3068\u305d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u4f7f\u3048\u308b\u30d6\u30e9\u30a6\u30b6\u3060\u3068\u56f3\u5f62\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30db\u30b9\u30c8\u5074\u306eWeb\u30d6\u30e9\u30a6\u30b6\u3067\u306fWebGL\u3092\u52d5\u304b\u305b\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b2\u30b9\u30c8\u5074\u3067\u306f\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002WebGL\u306b\u5bfe\u5fdc\u3057\u305f\u30d3\u30c7\u30aa\u30c9\u30e9\u30a4\u30d0\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u305d\u3053\u3092\u4f55\u3068\u304b\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c&#8230;<\/p>\n<p>\u30db\u30b9\u30c8\u5074\u3067\u306fMacBook Pro 13-inch, Mid 2012 Intel HD Graphics 4000\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>VirtualBox<\/strong><br \/>\n\u8a2d\u5b9a\u3067\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306e\u30d3\u30c7\u30aa\u3067\u300c3D\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>Ubuntu<\/strong><br \/>\nUbuntu\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001OpenGL\u306a\u3069\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ \/usr\/lib\/nux\/unity_support_test -p\r\nOpenGL vendor string:   Humper\r\nOpenGL renderer string: Chromium\r\nOpenGL version string:  2.1 Chromium 1.9\r\n\r\nNot software rendered:    yes\r\nNot blacklisted:          yes\r\nGLX fbconfig:             yes\r\nGLX texture from pixmap:  yes\r\nGL npot or rect textures: yes\r\nGL vertex program:        yes\r\nGL fragment program:      yes\r\nGL vertex buffer object:  yes\r\nGL framebuffer object:    yes\r\nGL version is 1.4+:       yes\r\n\r\nUnity 3D supported:       yes\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo apt-get install mesa-utils\r\n<\/pre>\n<p>\u4e0b\u8a18\u3082\u5165\u308c\u3066\u307f\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo apt-get install libosmesa6\r\n$ sudo apt-get install mesa-utils-extra\r\n<\/pre>\n<p><strong>Chrome<\/strong><br \/>\nChrome\u3067WebGL\u3092\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u300cchrome:\/\/flags\u300d\u3092\u958b\u3044\u3066\u3001\u300cOverride software rendering list\u300d\u3092Enable\u3068\u3057\u307e\u3059\u3002\u5b9f\u969b\u306eGPU\u30c1\u30a7\u30c3\u30af\u306b\u306f\u300cchrome:\/\/gpu\/\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>Chrome on Linux with WebGL and all the hardware acceleration stuff | Born in bronx, mastro&#8217;s blog: <a href=\"http:\/\/borninbronx.wordpress.com\/2012\/11\/08\/chrome-on-linux-with-webgl-and-all-the-hardware-acceleration-stuff\/\">http:\/\/borninbronx.wordpress.com\/2012\/11\/08\/chrome-on-linux-with-webgl-and-all-the-hardware-acceleration-stuff\/<\/a> \u3068\u304b\u3001Issue 174176 &#8211; chromium &#8211; WebGL doesn&#8217;t work under Intel HD 4000 on Ubuntu 12.04 &#8211; An open-source project to help move the web forward. &#8211; Google Project Hosting: <a href=\"http:\/\/code.google.com\/p\/chromium\/issues\/detail?id=174176\">http:\/\/code.google.com\/p\/chromium\/issues\/detail?id=174176<\/a>\u3068\u304b\u898b\u3066\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u30c0\u30e1\u3067\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><strong>Pass-through\u3092\u4f7f\u3046<\/strong><br \/>\nVirtualBox\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306eChapter 9. Advanced topics \u306b\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"http:\/\/www.virtualbox.org\/manual\/ch09.html#pcipassthrough\">http:\/\/www.virtualbox.org\/manual\/ch09.html#pcipassthrough<\/a><\/p>\n<p>VirtualBox\u306e\u62e1\u5f35\u30d1\u30c3\u30af\u3092\u5c0e\u5165\u3059\u308b\u3068\u30d1\u30b9\u30b9\u30eb\u30fc\u3068\u3044\u3046\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u3044\u3051\u306a\u3044\u304b\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002\u500b\u4eba\u304c\u8a55\u4fa1\u7528\u306b\u4f7f\u3046\u5206\u306b\u306f\u7121\u511f\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002VirtualBox\u3078\u62e1\u5f35\u30d1\u30c3\u30af\u3092\u5c0e\u5165\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30b2\u30b9\u30c8OS\u306e\u65b9\u3067\u3082\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>Ubuntu\u3067\u306f\/etc\/default\/grub\u3092\u7de8\u96c6\u3057\u3066\u4e0b\u8a18\u3092\u8ffd\u52a0\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nGRUB_CMDLINE_LINUX=&quot;intel_iommu=on,pass-through&quot;\r\n<\/pre>\n<p>\u3088\u304f\u8abf\u3079\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u7d71\u5408\u74b0\u5883\u306e\u30d3\u30c7\u30aa\u30ab\u30fc\u30c9\u3092\u7121\u52b9\u3068\u3059\u308b\u306b\u306figfx_off\u3092\u6307\u5b9a\u3059\u308b\u306e\u304c\u826f\u3044\u3088\u3046\u3067\u3059\u3002\u30d3\u30c7\u30aa\u30ab\u30fc\u30c9\u3092\u5225\u9014\u3064\u3051\u3066\u3044\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30de\u30b7\u30f3\u3068\u304b\u306f\u3053\u306e\u6307\u5b9a\u304c\u5fc5\u8981\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nGRUB_CMDLINE_LINUX=&quot;intel_iommu=on,igfx_off,pass-through&quot;\r\n<\/pre>\n<p>GRUB\u306e\u8a2d\u5b9a\u5909\u66f4\u306f update-grub2 \u3067\u66f4\u65b0\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3059\u308b\u3068\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ lspci\r\n\u7565\r\n00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter\r\n\u7565\r\n<\/pre>\n<p>VGA\u4e92\u63db\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067InnoTex Systemberatung GmbH\u304c\u898b\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u3001Intel HD Graphics 4000\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c&#8230;<\/p>\n<p>\u4e0b\u8a18\u3067\u3082\u4f55\u3089\u304b\u306e\u60c5\u5831\u304c\u3067\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ dmesg|grep -i mmu\r\n$ dmesg|grep -i PCI-DMA\r\n$ dmesg|grep -i DMAR\r\n<\/pre>\n<p>\u3068\u3001\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u306e\u3067\u3059\u304c\u3001\u30c0\u30e1\u3060\u3063\u305f\u306e\u3067\u3042\u304d\u3089\u3081\u307e\u3057\u305f\u3002\u3061\u306a\u307f\u306b\u3001Firefox\u3082\u52d5\u304b\u306a\u304b\u3063\u305f\u3067\u3059\u306d\u3002about:config\u3067libosmesa6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u305f\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308c\u3070\u52d5\u304f\u3068\u3044\u3046\u60c5\u5831\u3082\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u624b\u5143\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<ul>\n<li><a type=\"amzn\" asin=\"4798129534\">\u5b9f\u8df5\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0WebGL HTML &#038; JavaScript\u306b\u3088\u308b3D\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u958b\u767a (Programmer\u2019s SELECTION) <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4798034630\">HTML5+JavaScript+CSS+WebGL\u306b\u3088\u308b3D Web \u30b3\u30f3\u30c6\u30f3\u30c4\u5236\u4f5c <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4777517594\">\u300cWebGL\/three.js\u300d\u3067\u306f\u3058\u3081\u308b3D\u2010CG\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 (I\u30fbO BOOKS) <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4873115280\">JavaScript\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u2015\u30b2\u30fc\u30e0\u30fb\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30fb\u30a6\u30a7\u30d6\u3067\u4f7f\u3046\u6700\u65b0\u30c6\u30af\u30cb\u30c3\u30af <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4862461891\">OpenGL 4.0 \u30b7\u30a7\u30fc\u30c7\u30a3\u30f3\u30b0\u8a00\u8a9e -\u5b9f\u4f8b\u3067\u899a\u3048\u308bGLSL\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a><\/li>\n<\/ul>\n<div>\n<iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4798129534&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4798034630&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4777517594&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4873115280&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4862461891&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>WebGL\u3092VirtualBox\u4e0a\u306eWeb\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u306f\u96e3\u3057\u3044\u3088\u3046\u3067\u3059\u306d\u3002\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u3044\u65b9\u6cd5\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3044\u307e\u306e\u3068\u3053\u308d\u624b\u5143\u306e\u30de\u30b7\u30f3\u3067\u306f\u6210\u529f\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[433,81,282,927],"class_list":["post-14757","post","type-post","status-publish","format-standard","hentry","category-linux","tag-chrome","tag-firefox","tag-virtualbox","tag-webgl"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=14757"}],"version-history":[{"count":4,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14757\/revisions"}],"predecessor-version":[{"id":14834,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14757\/revisions\/14834"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=14757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=14757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=14757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}