No More Retake

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

メニュー

Maya:『ShadingSwitch』ノード

ShadingSwitchノードについて。
このShadingSwitchノード、ひとことで切って捨てると『ジオメトリごとに出力を切り替えるノード』です。
出力のチャンネル数ごとに、Single、Double、Triple、Quadと4種類のSwitchノードが存在します。

Singleなら1チャンネル。単純にスカラ値。アルファの切り替えなどに使えるのでしょうか。
Doubleなら2チャンネル。2チャンネルの代表はUVかな。
Tripleなら3チャンネル。XYZ、RGB、UVWとかは3チャンネルですね。
Quadなら4チャンネル。RGBAくらいしか思いつきません。

これらをジオメトリごとに切り替えて出力することができるのです。

これだけだと、どう使うのか分からないので『Triple_Swithc』を使って簡単なシーンを作ってみました。
プリミティブのCube、Sphere、Coneを並べた簡単なものです。
3つのプリミティブに割り当ててあるのは、同じマテリアルです。なのにカラーが違う!

Switchノードを使うと、一つの共通マテリアルでオブジェクトに異なるカラーを与える事ができます。
ここではカラーのRGBのみ切り替えたので『Triple_Swithc』を使いましたが、これをアルファで抜きたい場合は4チャンネルの『Quad_Switch』を使うことになります。


例で使用したマテリアルのネットワークは↓のようになっています。

『Triple_Switch』のアトリビュートものっけときます。アトリビュートエディタの”In Shape”ってのがジオメトリですね。
“In Triple”ってのにはテクスチャのoutColorがつながっています。

こいつを使うと、1キャラ1マテリアルってのも可能かも。
もっともこれはジオメトリ単位でしか切り替えられないので、フェース単位でカラーを制御したいなんて場合だと使えないかも。
Mayaは3dsMaxとかSoftImageとかと比較してサブコンポーネントの管理が下手っぽいからなぁ。

どうも、うまく説明できた気がしないのですが、ShadingSwitchについてはそんな感じです。

関連記事

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

このサイトについて

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%2F05%2F10%2Fmaya_shadingswitch%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%2F05%2F10%2Fmaya_shadingswitch%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