Use an object as bounding box in Vex

   2353   1   0
User Avatar
Member
1 posts
Joined: April 2018
Offline
Hey everyone, I'm new to Vex and probably I'm asking something very easy to do;
I followed the tutorial on youtube about particles swarn (https://www.youtube.com/watch?v=_5Z-pbwuB-4) and I have a question:
it's possible to use an obj as bounding box and not just import the size inside the vex code? there is a method to let point wrangle to recognize the object?
Because the tutorial explain how to set a cubic bounding box, but I wanna try to follow a specific object mesh.
Thank you and sorry for bad english.

Image Not Found

Attachments:
Prova_Particles_Brera.hiplc (107.5 KB)

User Avatar
Member
2152 posts
Joined: Sept. 2015
Offline
Yes you can use a mesh object.

Here's the hip.

Just keep in mind that if the velocity of the object covers a distance more than the distance from the primitive center to its' bounding size, this method may fail with some points.

I've reduced the size of the individual polygons with a subdivide to keep those possibilities down.

A more thorough algorithm would be to make use of the intersects UVW information combined with the primitive center information.

I don't have time at the moment for that, but perhaps this will work for you in most cases;

Further subdivisions ( even in selective regions where points are ‘escaping’, could be the quicker fix for such situations. )

Attachments:
Prova_Particles_Brera_Using_Mesh_Object.hiplc (1.4 MB)

  • Quick Links