Jump to content

Why polywire is not showing all the geometry (SOLVED)


Recommended Posts

Hi there!

I am studying the "Designing VEX Driven Digital Assets" course by Jonathan Granskog, to create trees on houdini, but I have a problem and (as usually) I don't understand why it is not working.

It is suppose to create the trunk using the attribute width and the branches, using also width attribute (but before width, it was branch_width) and I can't understand why my polywire only generate the trunk and not the branches. Any clue?

Thank you all  in advance and sorry if my English is not the best one in the community, have a nice day!

 

tree_generator_v2.hip

Edited by ramirezrubio92
Link to comment
Share on other sites

The starting @width of your branches is 0. In your set_width operator, you're multiplying @width by @branch_width, but multiplying by zero is cancelling that out. Set a default @width of 1 on your branches when they're first created and you should be in business.

edit: sorry, another thing. Your input points to copy the branches to all have a @width attribute of 0, and in the Copy to Points SOP, your branches are all set to inherit this value. You're losing your attribute when you blast out the primitives before copying. If you transfer the width from your original trunk points to the scattered points, that will give you a working @width on your branches.

 

tree_generator_v3.hip

Edited by toadstorm
  • Thanks 1
Link to comment
Share on other sites

14 minutes ago, toadstorm said:

The starting @width of your branches is 0. In your set_width operator, you're multiplying @width by @branch_width, but multiplying by zero is cancelling that out. Set a default @width of 1 on your branches when they're first created and you should be in business.

edit: sorry, another thing. Your input points to copy the branches to all have a @width attribute of 0, and in the Copy to Points SOP, your branches are all set to inherit this value. You're losing your attribute when you blast out the primitives before copying. If you transfer the width from your original trunk points to the scattered points, that will give you a working @width on your branches.

 

tree_generator_v3.hip

Thank you very much toadstorm! you made my day

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...