Polywire random withs?
14791 10 4- milospejak
- Member
- 30 posts
- Joined: Oct. 2009
- Offline
- rafaels
- Member
- 696 posts
- Joined: March 2009
- Offline
Hi,
You can create a $WIDTH attribute to your points, randomize it on a per-wire basis and then connect the merged wires to a polywire SOP with $WIDTH for radius.
Cheers
You can create a $WIDTH attribute to your points, randomize it on a per-wire basis and then connect the merged wires to a polywire SOP with $WIDTH for radius.
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- tjeeds
- Member
- 339 posts
- Joined: Aug. 2007
- Offline
You can use an AttribCreate to create a Primitive Integer which stores $PR, then use a AttribPromote to change it from Prim to Point class. The Polywire has access to Point class attributes so now that the primitive number is stored on your points you can randomize based on this.
Jesse Erickson
Fx Animator
WDAS
Fx Animator
WDAS
- milospejak
- Member
- 30 posts
- Joined: Oct. 2009
- Offline
Thank you for your responses
ok so i tried both methods, with promoting the attributes i was getting weird extrusions, along with massive inconsistencies with the entire shape.
for just adding the $WIDTH attribute, it looked like i was getting variations but, each wire would taper in and out of it self, how could i fix that?
I also tried using wireframe for this method and it does not accept $WIDTH, why is that?
ok so i tried both methods, with promoting the attributes i was getting weird extrusions, along with massive inconsistencies with the entire shape.
for just adding the $WIDTH attribute, it looked like i was getting variations but, each wire would taper in and out of it self, how could i fix that?
I also tried using wireframe for this method and it does not accept $WIDTH, why is that?
mpejak
- rafaels
- Member
- 696 posts
- Joined: March 2009
- Offline
Can you post a scene with some of those wires? One static frame would be enough.
Cheers
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- milospejak
- Member
- 30 posts
- Joined: Oct. 2009
- Offline
- tjeeds
- Member
- 339 posts
- Joined: Aug. 2007
- Offline
- rafaels
- Member
- 696 posts
- Joined: March 2009
- Offline
in your rand() expression, use $PR, instead of $PT. the first will return a different value per wire, and the second will return a different value per point of the wire, hence the ins and outs of the extrusion.
Unfortunately $PR is only accessible from a primitive context, so I had to do a little hack here, check the attached file.
Cheers
Unfortunately $PR is only accessible from a primitive context, so I had to do a little hack here, check the attached file.
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- rafaels
- Member
- 696 posts
- Joined: March 2009
- Offline
Guess you get two options afterall!
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- milospejak
- Member
- 30 posts
- Joined: Oct. 2009
- Offline
- milospejak
- Member
- 30 posts
- Joined: Oct. 2009
- Offline
-
- Quick Links