Hi,
I'm working on a tree asset, and now I need to manage the meshing of the tree.
The mesh is created from simulated curves, and I need a fast way to mesh the tree and deform it according to the splines simulation.
The problem is that I have a big amount of branches, and the wireCapture and deform are not compilable into ‘Compiled Blocks’, which means that the final WireDeform is very long.
I cannot do the wireCapture on the hole mesh, because there are so many branches that the capture is not proper.
So I tried to create my own custom capture datas, looking at the Capture Attribute Unpack, and Capture Attribute Pack.
But it seams that even if I'm creating the wireCapture attributes and packing it, the ‘wireCapt’ is still missing when I plug the geometry in the wireDeform SOP. And I don't know what to add to make it work.
To be clearer : i want to store the wireCapture data in a for_each loop for each branch, and then apply the wireDeform on the final hole mesh, to be faster.
Thanks for your help !
Create a custom wireCapture attributes for wireDeform
1416 2 1- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
- Ivan L
- Member
- 172 posts
- Joined: Jan. 2014
- Offline
There is an additional weird detail attribute you have to create called
basically you have to add this to a detail wrangle.
wireCapture_wireCaptPrimU
I don't know why we need it and if somebody could answer this question it'd be cool.basically you have to add this to a detail wrangle.
u[]@wireCapture_wireCaptPrimU = { {0.0,1.0} };
Edited by Ivan L - Nov. 14, 2019 00:19:29
I contribute to the beauty of this world
- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
-
- Quick Links