Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 334

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 911

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1096

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1127

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1213

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1239

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1530

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1798

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 2921

Strict Standards: Redefining already defined constructor for class ClientDetect in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/ClientDetect.class.php on line 109

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 305

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 355

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 355

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Client.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Client.php on line 154

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 240

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 342

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 635

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 658

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/PEAR.php on line 563

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/PEAR.php on line 566

Strict Standards: Redefining already defined constructor for class Net_URL in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/Net/URL.php on line 122

Strict Standards: Declaration of URL_Listener::update() should be compatible with HTTP_Request_Listener::update(&$subject, $event, $data = NULL) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 615

Strict Standards: Redefining already defined constructor for class HTMLParser in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTMLParser.class.php on line 138

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 161

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 163

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 164

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 165

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 167

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 168

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 169

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 244

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 251

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 260

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 267

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 274

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 281

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 289

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 486

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 488

Deprecated: Assigning the return value of new by reference is deprecated in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/XML/HTMLSax3.php on line 490

Strict Standards: Only variables should be passed by reference in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1239

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Client.php on line 298

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 625

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 627

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 641

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Client.php on line 298

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 625

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 627

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/HTTP/Request.php on line 641

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1285

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1285

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 1955

Strict Standards: Declaration of HTMLParser_Postformat::dump() should be compatible with HTMLParser::dump($encoding = 'UTF-8') in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 2867

Strict Standards: Declaration of HTMLParser_Postformat::_formatOpenTag() should be compatible with HTMLParser::_formatOpenTag($name, $attribs = Array) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php on line 2867

Warning: Cannot modify header information - headers already sent by (output started at /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/index.php:44) in /export/sd204/www/jp/r/e/gmoserver/4/4/sd0244644/net-you.com/souja/m/Template.inc.php on line 76
HTML5で色分解した写真をWebGLで3D表示するAway3Dデモ - ICS MEDIA
/14,820字

RSS|ツール

ICS MEDIA

[eyecatch+]
[eyecatch+]

HTML5で色分解した写真をWebGLで3D表示するAway3Dデモ

2014年8月5日 公開 / 株式会社ICS 池田 泰延
148
28

先日開催したAway3D勉強会の発表のフォローアップ記事となります。

写真をRGB3原色に分解して3次元で表示するHTML5 + WebGLのデモを作ってみました。ステージをドラッグすると写真が赤・青・緑の3原色に分解されて表示されます。ライブラリはJSライブラリの「Away3D TypeScript」を使っています。
[rgb_demo+]

このデモを通して紹介したいのは次の3つです。

  1. 色分解のロジック
  2. Flashライクで高機能なHTML5版BitmapDataクラスの紹介
  3. Flash Stage3Dにフォールバック可能なAway3D TypeScriptのレンダラー

以下で、それぞれについて詳しく紹介します。

実装方法

このデモでは、img要素で画像を読み込み、それを色分解し、3D空間に表示しています。

[140804_s...+]

1. 色分解のロジック

Web上の多くの画像は赤・青・緑の光の3原色(8bit深度)を使って構成されています。これを確認するにはPhotoshopが便利で、[チャンネル]パネルを使えば赤・青・緑それぞれのピクセル情報を確認できます。

[140804_rgb+]

今回のデモにおいては写真をRGB(赤・緑・青)のレイヤーに分解し、それぞれ描画モード「スクリーン」(もしくはピクセルのカラー情報を加算するもの)に設定して黒背景に重ねています。そうすることで元の画像が復元されます。参


TOP