Jump to content

Tiles or shingles tangential to sphere surface


art3mis

Recommended Posts

Using a scatter and new copytopoints SOP to try and wrap tiles or shingles around a sphere.

The issue is that the tiles all have the same orientation. (see attached) They need to wrap the surface.

I've tried adding a new points SOP with Class = points and Attribute = Normal with the VEXpression

 self + value

and can change the direction of the tiles but only globally.

Can anyone have a look at the attached .hip and tell me what I am missing?

tiles_wrap_sphere.png

tiles_wrap_sphere.hiplc

Edited by art3mis
Link to comment
Share on other sites

after the sphere simply do attribwrangle, @N = @N;

then scatter, then copytopoints

(or in terms of the new Points, just self instead of + value, then scatter, then copytopoints)

Edited by Noobini
Link to comment
Share on other sites

Thanks! Tried both suggestions but...nope. Again orientation is changed but all tiles have the same orientation. Something missing I think...

I think I need to modify self + value in my Points sop so that the normals are all tangential to the sphere surface.

attribut_wrangle_Normal.jpg

Edited by art3mis
Link to comment
Share on other sites

01) your sphere is still a primitive, I've set it to polygon

02) your 'plane' must be Z facing...because Z is the axis that is used to line up with the normal....if it is a ''pointy' object...like the pig head...naturally you want the top of the head to line up with the normal...so in the file I included the pig head turned 90deg. Plug this in and see...much easier than to see with a plane.

 

tiles_aligned.hipnc

tiles_aligned_randomrot.hipnc

Edited by Noobini
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...