No More Retake

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

メニュー

Houdiniレシピ:scatterノードのバイアス

Houdini回です。

今回は、かつてScatterノードに存在した”Attribute Bias”というアトリビュートについてです。
Houdini13→14の変更でScatterノードが変更され、その際Attribute Biasという機能がなくなりました。
どういう機能かというと、こういう機能です。

Scatter_v13ここでは、色情報をもとに発生させたpointの分布にBiasを1→0でかけています。
Biasは、日本語だと「偏り」です。
Biasが1の場合、赤い部分にだけpointが作られ、Biasが0になるにつれ分布が平均化されています。

この機能、個人的には重宝してました。
例えばジオメトリの全体に不均等にPointを配置したい時に、このBiasの機能を使っていました。

Houdini14になってScatterノードが一新された際、このBiasの機能がなくなってしまい困ってました。
似た機能でRelaxはありますが、これじゃなくてBiasが使いたいんだと思ってました。

で、調べたら再現する方法がありました。
以下、H14で再現したBiasの結果です。

Scatter_v14

ネットワークはこんな感じです。

090_HoudiniScatterBias_001

ざっくり言うと、wrangleノードでbiasに相当する計算を行うというものです。
以下、wrangleノードの内容です。
Wrangleノードには”bias”と”uniformdensity”というFloatタイプのパラメータを作成しておきます。

float t = ch("bias");
float uniformdensity = ch("uniformdensity");
@density = t*@density + (1-t)*uniformdensity;

サンプルファイルを添付しておきます。
Scatter_v14

以上、今回はここまで。
では、また次回!

—————————-
Houdini 14.0.313
—————————-

「 参考」
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=37345&start=0&postdays=0&postorder=asc&highlight=&sid=4cc58d04f416f24041351183dd413554

関連記事

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

このサイトについて

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%2F2015%2F06%2F16%2Fhoudini_scatter_bias%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%2F2015%2F06%2F16%2Fhoudini_scatter_bias%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