Asylum Joystiq Autoblog Luxist AOL メール ニュース ショッピング フォトギャラリー Winamp Truveo 動画
Engadget

動画:Firefox 3.6、加速度センサーAPIを提供へ


hacks.mozilla.org より。Webブラウザ FireFoxの次期バージョン 3.6には加速度センサーAPIが組み込まれます。加速度センサー(accelerometer) といえば、 iPhoneなどの携帯機器で縦レイアウトのまま寝転がって読もうとすると邪魔するあれ。いわゆる姿勢センサー。そもそもモバイル版 Firefox (Fennec)のために開発されていたコードをデスクトップ版にも組み込んでみたという経緯です。対応するのはMacBookやThinkPadなど加速度計が組み込まれており、値を読み出せるハードウェア。

単なるタテヨコ画面の切り替えであればOS側が画面全体を回せば事足りますが(たとえばWindows 7のマルチタッチ対応で増えているタブレットPCなど)、Firefoxに加わるのはハードウェア側のセンサの値をウェブサイト側が読めるAPIです。続きに掲載したデモはノートを左右に傾けるとページ内の要素がぶらぶらと動いたり、ディスプレイを起こしたり寝かせたりしてイメージの拡大など。MacBookを手持ちして球転がし系ゲームをするのはどうかと思いますが、AR系では使いどころがありそうです。



Relevant Posts

Add your comments

Please keep your comments relevant to this blog entry. Email addresses are never displayed, but they are required to confirm your comments.

When you enter your name and email address, you'll be sent a link to confirm your comment, and a password. To leave another comment, just use that password.

To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br /> tags.





Resources


AOL News

Other Weblogs Inc. Network blogs you might be interested in: