Point per Face / making scalemail

   5242   4   1
User Avatar
Member
24 posts
Joined: Dec. 2013
Offline
Hello!


Cant find answer anywhere on forums (too obvious?)


How to create points per face? Or force copy (or emission attribute for particles), to use center of the polygon. Foreach node?


I'm trying to do similar effect like in this topic:


http://www.orbaz.com/forum/viewtopic.php?t=2275&postdays=0&postorder=asc&highlight=align&start=15 [orbaz.com]



In this 3ds max setup center of the spawn point is kind of cheated - it's just Y mult 0.5 (thus Z in Houdini).

THEN, I'll need to align along normal, and probably “find loop”, or any other technique that will align them in one direction.
User Avatar
Member
1265 posts
Joined: March 2014
Offline
Create an Attribute wrangle and use this on primitives.
It creates points on the centers of primitives which you can use to copy your object to.


addpoint(0, @P);
removeprim(0, @primnum, 1);
Werner Ziemerink
Head of 3D
www.luma.co.za
User Avatar
Member
1265 posts
Joined: March 2014
Offline
or the more manual way is to use a facet node with unique points ‘on’ to break primitives apart.
Then use a Primitive node to scale all the prims to 0 (to the center of the primitives).
Now use a fuse to filter the points.

Same as above…use this to copy objects to.
Werner Ziemerink
Head of 3D
www.luma.co.za
User Avatar
Member
4495 posts
Joined: Feb. 2012
Offline
You can also use Centroidal Points SOP:
http://www.orbolt.com/asset/animatrix::centroidalPoints::1.00 [orbolt.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
24 posts
Joined: Dec. 2013
Offline
Thank you for help! I'll try both solutions today.

edit: Another problem is: how to promote or copy N from prims into new points? I've tried changing class, or work on prim and points - but then N was gone details.

I've managed to copy N from vertecies, but then the normal of new centered points is bad.
  • Quick Links