Jump to content
amin.khormaei

volume of an object affect on your effect

Recommended Posts

hey guys ,

how can I calculate the volume of an object in VEX ,

I want to write something like this one below:

the line of your script * volume of a specific object

I used getbbox_size but the result is a scalar.

I want everything in the object to have the effect.

what should I do?

best regards

Edited by amin.khormaei

Share this post


Link to post
Share on other sites

you can use Measure SOP to get volume of a polygonal geo per piece for example or for the whole detail

as long as it's manifold, watertight and geometry normals point outside the volume value should be correct

then you can use it in your wrangle

 

Share this post


Link to post
Share on other sites

you can use detail() function for example

detail(1, "totalvolume");

Share this post


Link to post
Share on other sites

thank you so much, but you didn't get me.

I want this effect (the wave) to occur inside the sphere, and outside the sphere nothing happens.

the sphere act like an effector in cinema4D.

Edited by amin.khormaei

Share this post


Link to post
Share on other sites

oh, that was not clear at all, in that case you can use Distance From Geometry node for example, that will give you also some falloff

Vex_fix2.hip

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×