ウェットマップによる涙 (Wetmap Tears)
Film/TV

Copernicus を使った効率的なウェットマップの生成方法を紹介します。このサンプルファイルでは、シミュレーションの生成プロセスを紹介し、それを Copernicus に持ち込んでウェットマップを生成しています。高解像度ジオメトリなしに高解像度のウェットマップを生成でき、大変効率的です。

ファイル内のキャラクタは、SideFX 提供の短編《Turbulence》の主人公ジミーで、制作を担当した Tumblehead x Christopher Rutledge の厚意により提供されました。

(2 responses)

コメント

  • g_bergot 1 ヶ月, 3 週間 前  | 

    Thanks for this hip, really useful and so light to compute! Love it. I just have one question, what if I want to use a vector type vdb (to import color for example)? It works fine for scalar vdb fields, but the opencl script would probably need some modifications to work with vectors, and I don't know anything about openCL... any idea?

    • Tom_SideFx 1 ヶ月, 3 週間 前  | 

      it would work just the same, just make sure you assign it to a float3 variable instead

      • g_bergot 1 ヶ月, 3 週間 前  | 

        Ok, I tried to adapt your code a bit with my very limited knowledge about opencl, but I'm still gettin an error message saying "@Cd is unavailable: Must be Run Over Volume or VDB." I set my inputs / outputs accordingly before running the new script. I sent you some discord messages to discuss more about it if you want :)

        Here is the script I used:

        #bind layer src? float3
        #bind layer !&dst float
        #bind vdb surface float port=sweatvdb
        #bind vdb Cd? float3 port=Cd

        @KERNEL
        {

        float3 worldpos = @src.xyz;

        float sample = @surface.worldSample(worldpos);
        float3 Cd = @Cd?.worldSample(worldpos);

        @dst.set(sample);
        @Cd.set(Cd);
        }

Please log in to leave a comment.