[Sidefx-houdini-list] particle fluid kill plane

Alvaro Castaneda varomix at gmail.com
Fri Aug 12 13:24:58 EDT 2016


If you want to kill them in the Y axis just use a delete SOP, change it to
expression and use
$TY < 0
the cero is the Y coordinate, change it to whatever you need, also $TX for
the X axis and $TY if needed



On Fri, Aug 12, 2016 at 11:14 AM, Mark Elendt <mark at sidefx.com> wrote:

> If you have the plane normal, (A, B, C), you can define an equation
> for the plane:
>     A*x + B*y + C*z + D
> where D moves the plane up and down along the normal (from the
> origin).
>
> If you take a point (x,y,z) and plug it into the equation, positive
> values mean the point is above the plane, negative values below.
>
> So, in VEX:
>
>     cvex
>     partitionplane(vector N; float D)
>     {
>         float dist = dot(@P, normalize(N)) + D;
>
>         if (dist > 0)
>             addgroup("dist", @ptnum);
>         else if (dist == 0)
>             addgroup("onplane", @ptnum);
>         else
>             addgroup("below", @ptnum);
>     }
>
>
> On Friday Aug 12 at 10:03, Gary Jaeger wrote:
> > no that would work. A kill plane is just that. A plane that kills the
> particles. It can be at any arbitrary angle but generally I use them to
> kill particles in the Y.
> >
> > I’ll see if I can figure that out :)
> >
> > Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
> > http://corestudio.com <http://corestudio.com/>
> > > On Aug 12, 2016, at 9:53 AM, François Duchesneau <sidefx at trinix.ca>
> wrote:
> > >
> > > I've never used Bifrost. What is the kill plane?
> > >
> > > If you're referring to a way of kill particles below a certain value
> in Y for example you could use an expression in the Kill Pop but I suspect
> what you're after is more sophisticated.
> > >
> > > Francois
> > >
> > > On 08/12/2016 12:35 PM, Gary Jaeger wrote:
> > >> Noob question. Is there an equivalent to the bifrost kill plane for
> particle fluids?
> > >>
> > >> Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
> > >> http://corestudio.com <http://corestudio.com/>
> > >> _______________________________________________
> > >> Sidefx-houdini-list mailing list
> > >> Sidefx-houdini-list at sidefx.com
> > >> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> > >>
> > >
> > > _______________________________________________
> > > Sidefx-houdini-list mailing list
> > > Sidefx-houdini-list at sidefx.com
> > > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
> --
> Mark Elendt
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list