No More Retake

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

メニュー

Houdini:テクスチャ表示を更新する

Houdiniノード勉強回。

COPで作ったテクスチャをSOPに張り付けた時にも、ちゃんとアニメーションが更新されるようにする方法。こんな感じ。

一見普通に見えますが、普通にCOPのテクスチャを貼っただけだと、こんな感じ。

タイムスライダをぐりぐりしてもSOP上のテクスチャは更新されません。
これは、ビュー上のテクスチャ情報がキャッシュとして保持されており、それが更新されないため(たぶん)

これを解決するために、script(SOP)を使っています。

script(SOP)は名前の通り、scriptを実行するSOPノードです。
ノードがクックされると、記述したscriptが実行されます。
これをテクスチャを読んでるノードの下につなぎます。

パラメータは以下のような設定にします。

  • Make Time Dependent = ON
  • Script = glcache -c
  • Hscript

パラメータ設定を和訳すると、”毎フレーム、`glcache -c`というHscriptを実行する”です。
これでテクスチャが毎フレーム更新されます。

これは、Height Filed用のテクスチャ更新にも使えるので、意外と用途は幅広いかも。

サンプルファイルはこちら187_COPtextureAndSOP.hiplc

以上、SideFX様に聞いたら教えてくれた方法でした。

関連記事

  1. Matt 2021.12.19 11:10am

    Hi, just wanted to say that another method that avoids the need for the script sop is to append [$F] to the cop path. So in the quickshade you’d use this:

    op:/obj/geo1/cop2net1/OUT[$F]

    Cheers,

    -matt

    • 2
    • 0

このサイトについて

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%2F2021%2F06%2F09%2Fhoudini-script_sop%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%2F2021%2F06%2F09%2Fhoudini-script_sop%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