Reference Coordination System for Rasterize and spread operator
#4
Keep in mind all the Rasterize op is doing is rounding position values. So if you need a custom solution you can easily achieve the same thing in the Script operator. You can use a Fuse operator after (with the radius set to a tiny value so it only picks up perfectly coincident particles) to clean up the overlapping particles.

To rasterize manually, you'd do something like:

Code:
Point3 pos = tf.GetPos(sInx);

float rasterScale = 1.5f;
pos.x = Mathf.Floor(pos.x/rasterScale )*rasterScale;
pos.y = Mathf.Floor(pos.y/rasterScale )*rasterScale;
pos.z = Mathf.Floor(pos.z/rasterScale )*rasterScale;

tf.SetPos(sInx, pos);

And you can transform your position values into whatever coordinate system you'd like, before and after the operation.
  Reply


Messages In This Thread
RE: Reference Coordination System for Rasterize and spread operator - by tyFlow - 04-15-2020, 07:11 AM

Forum Jump: