Jump to content
Sign in to follow this  
catnap

Calculate the normal of the polygon

Recommended Posts

Hi, got a question for y'all.

I'm trying to rig a banana peeling. I have the joints on the side, but I want them aligned to the polygons to which they are binded to.

It was suggested to me that I needed to calculate the normals of the polygons in Xpresso to achieve this.

 

Problem is I have no idea what nodes or order to do this.

 

Any ideas or links to tutorials that cover this topic would be very appreciative 

 

Best 

Catnap

Banana peel 1.JPG

Banana peel.c4d

Share this post


Link to post

You need first align and then bind, but...

 

 - use the same count of joints as edge loops (mesh will be better weighted and simpler for rigging)

 - place joints exactly on edge loops (here you can simply use middle edge going from bottom to top, convert with edge2spline command and with selected spline use character/convert/spline2joints command)

 - align joints (select all joints and use character/commands/joint align tool command. This way will be joints aligned in "target" axis, but not up-vector.)

 - align joints 2 (go from root hierarchy to latest one joint and align up-vector axis (Y) to be perpendicular to mesh. You must hold (7) on numeric keyboard and then rotate to prevent childs rotation)

 - select joint chain and mesh and bind them...

 

peel_rig.thumb.png.9a7bfd4422e7ae1ebf12db23b274a61d.png

 

Banana peel_0001.zip

Share this post


Link to post
  • Topic Author
  • Author of the topic Posted

    Thank you!! @bezo 

    This totally makes sense! I really thought it was a Xpresso route, but aligning the joints before the bind is KEY!

    Thank you for the C4D file and the thorough diagram!

     

    Just want to say, this site is really useful!! 

    It's a great community!

     

    catnap

    Share this post


    Link to post

    HI

     

    There is also another solution if you wish to try. You can  create an edge along the middle of your geometry. select that edge and convert it into a spline, and then : menu > character > convert > convert spline to joints. (each point will get a joint) If the alignment of the joints is not good, run the  character/commands/joint align tool command.

     

    hope it helps

    cheers

    Share this post


    Link to post

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    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.

    Sign in to follow this  

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×
    ×
    • Create New...

    FORUMS INFO:

    Dear members, we are aware of few more bugs that are still present withing the theme.We just wanted to let you know that we are working to fix them as soon as possible.
     

    NEW MEMBERS:

    Please be aware that we are manually approving all new registrations, due to spam prevention. Please be patient in case you cannot login right away, we will approve you within 12h or less if we decide you are not potential spammer. 

     

    Thanks for understanding! :cowboypistol: