No More Retake

3DCG屋さん向けTips&Referenceサイト

メニュー

Maya:『mip_cameramap』ノード


今回は『mip_cameramap』のアトリビュートについて調べてみました。

このノードはカメラから見たプロジェクションマップを実現するノード、とで言いましょうか。

bent_normalの回ではmip_matteshadowと併用して、簡易背景を作るのに使ったりしました。
せっかくなので、bent_normalで使ったシーンファイル↓を元に確認していきたいと思います。

HyperShadeはこんな感じ↓
cameramapを使ってHDR画像を貼り付け、mip_matteShadowで影をキャッチ、その結果をSurfaceShacerに渡すといったことをしてます。案外シンプルですね。
mip_cameramap_02_HyperShade
『mip_cameramap』のアトリビュートは以下の通り。
01_attribute

 

Map

カメラに貼り付けるテクスチャをここにコネクトします。

 

Multiplier

マップの乗数、とはマニュアルの言。
数値を上げると明るくなり、下げると暗くなります。
mip_cameramap_02_Multiplier

 

Degamma

ガンマの調整が必要な場合はここで。注意したいのは”De”gammaということ。
つまり逆ガンマ補正を行うということ。
Maya内ではガンマ調整がものによってはgammnaだったり、degammnaだったり紛らわしい限りです。このあたりは統一してもらいたいものです。

 

Per Pixel Match

OFFの場合、レンダリングサイズに合わせてマップがリサイズされます。
ONの場合、レンダリング画像の左下ピクセルあわせでマップが貼り付けられます。

このシーンではOFFに設定しています。
実はここで使用しているHDRは横長なので、HDR画像の縦横比でレンダリングして切り取っていました。
mip_cameramap_02_Multiplier1

”Per Pixel Match”をOFFにしたままレンダリングの縦横比を変更すると。

背景画像が、横につぶれました。
”Per Pixel Match”がONだと、使用しているHDR画像の大きさそのまま左下あわせで貼り付けです。

 

Transparent Alpha

OFFの場合、テクスチャのアルファチャンネルが使われる。ONの場合はアルファなし。
※上記のHyperShadeにあるような組み方だと、mip_matteShadowのアルファが使われるので、影響ないです

 

Offscreen Is Environment

ONの場合、テクスチャが環境に影響する・・・のかな?

Offscreen Color

”Offscreen Is Environment”がOFFの場合、ここで指定したカラーが環境になる・・・のかな?
上がOffscreen Is EnvironmenがON、下がOffscreen Is EnvironmenがOFFでOffscreen Colorに赤を指定。
mip_cameramap_04_OfScreen01 mip_cameramap_04_OfScreen02

 

 

Mayaは2012の英語版を使用しています。
最新のバージョンとは異なる可能性がありますのであしからず。

参考サイト:ここに載ってる組み方、一回くらいやっとかないとな

http://docs.autodesk.com/MAXDES/13/ENU/Autodesk%203ds%20Max%20Design%202011%20Help/mr/shaders/production/prod_mattecamera.html

関連記事

  1. 2014.03.24

    toxik:[Retime]
  2. 2012.05.06

    if ~in文

コメントをお待ちしております

このサイトについて

3DCG Tipsサイト。Houdiniの記事が多めです。

RSS

follow us in feedly

Archives

  • 2024 (1)
  • 2023 (2)
  • 2022 (9)
  • 2021 (14)
  • 2020 (46)
  • 2019 (17)
  • 2018 (33)
  • 2017 (29)
  • 2016 (36)
  • 2015 (64)
  • 2014 (54)
  • 2013 (60)
  • 2012 (55)

スポンサードリンク

言語切り替え

  • English (United States)
  • 日本語

スポンサードリンク

言語切り替え

  • English (United States)
  • 日本語

Houdiniを使えるようになる本


Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): Failed to enable crypto in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(http://api.facebook.com/restserver.php?method=links.getStats&urls=http%3A%2F%2Fnomoreretake.net%2F2012%2F12%2F03%2Fmaya_mip_cameramap%2F): failed to open stream: operation failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(): Failed to enable crypto in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132

Warning: file_get_contents(http://api.b.st-hatena.com/entry.count?url=http%3A%2F%2Fnomoreretake.net%2F2012%2F12%2F03%2Fmaya_mip_cameramap%2F): failed to open stream: operation failed in /usr/home/nomorere/nomoreretake.net/wordpress/wp-content/themes/n1-custom/functions/social.php on line 132