1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Scatter And Align [Mardini2024]

Last updated at Posted at 2024-03-17

これはMardini2024のDay3 Scatter And Align の動画を視聴してまとめたものです。

動画

image.png

公式のサンプルファイル

Day2 Topo build Node | Day3 Scatter And Align | Day4 Layout Node

要約

  • Scatter and Alignノードはジオメトリをポイント上にコピーし、各ポイントでジオメトリのスケールと向きを調整することができる
  • Scatter and Alignノードを作成し(Scatterノードと混同しないでください)、Copy to Pointsノードを接続する
  • Copy to Pointsノードの入力にジオメトリを指定する
  • Scatter and Alignノードの設定で、ポイントの配置密度、スケール範囲、向きのランダム化を調整できる
  • Attribute Paintを使えば、ポイントを配置する領域を制限できる
  • より効率的にインスタンスを配置するには、LOPのInstancerノードを使う

サンプルファイル

image.png

image.png

操作手順:

  • ベースとなるGridやSphereを作成。続けてScatter and Alignノードを作成します

  • Copy to Pointsノードを作成し、Scatter and Alignノードの2番目の入力に接続します

  • Copy to Pointsノードの1番目の入力に、コピーしたいジオメトリ(例えばBoxやSphere)を接続します

    • image.png
  • Scatter and AlignノードのPoint Count Methodを設定します。By Sizeを選ぶと、指定したサイズに合わせてポイント数が調整されます

    • Coverageを調整して、ポイントの配置密度を変更できます。値を大きくするとポイント間の間隔が狭くなります
    • image.png
  • Scaleで、コピーするジオメトリのスケール範囲を設定できます。Minimum RadiusとMaximum Radiusを調整します

  • Alignmentタブを開き、コピーするジオメトリの向きを設定します。Normal Directionで、ジオメトリのどの軸が地面の法線に合わせられるかを指定できます

    • image.png
  • Max Random Cone Angleを調整すると、法線からの最大ランダム角度を設定でき、コピーされるジオメトリの向きがランダムになります

  • Rotation Around Normalで、法線を軸とした回転角度の範囲を設定できます

コピー領域をペイントして制限する場合

  • Attribute Paintノードを使えば、Attributeに基づいてポイントを配置する領域を制限できます
  • Attribute Createノードで、f@coverage_attribを作成
  • Attribute PaintノードのAttributeタブ内にcoverage_attribをセットしてペイントします
  • Scatter And AlignノードのCoverage Attribute にcoverage_attribをセットします

より多くのジオメトリをコピーする場合

  • ラバートイをコピーの素材としてそのまま接続し、大量にコピーすると動作が重くなります

    • image.png
  • View上で「D」を押し、パーティクルをPointからLirtSphereにすることでスケールを確認できます

    • image.png
  • Scatter and Alignノードの出力をNullノードに接続し、SOPではなくLOP(Stage)上でInstancerノードを使ってインスタンス化するとよりパフォーマンスが向上します

    • image.png
    • InstancerのTarget PointのLocation SourceをInternal SOPからExternal SOPに変更することで、外部のSOP Pathを指定できます
    • SOP ImportのINSTANCE_GEO にはSOP PathでNull(/obj/SCATTER_AND_ALIGN/INSTANCING_GEO)を指定します。同じくInstancerのTarget Pointには、先ほどScatter And Alignで作成した出力先のNullのSOP Pathである(/obj/SCATTER_AND_ALIGN/INSTANCING_POINTS)を指定します
    • image.png

まとめ

Scatter and Alignノードを使ってジオメトリをランダムにScatterし、スケールと向きを調整することができます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?