Jump to content

magnet and metaball


Recommended Posts

was wondering if anyone could provide an answer as to why this happens.

when i have a metaball that is driving a magnet color & if i only set the color to the tx (red channel), I can still produce green and blue colors if i rotate the metaball.

when I rotate the metaball, even though that is "upstream" from the magnet , it changes the color of the magnet. I would assume that the magnet would strip off any values and just use the metaball as a field, and set the values to what is provided in the magnet node and it wouldn't matter which way it was rotated. I would guess in most cases you would not rotate a metaball but in my case I'm rotating it because I want to pivot the animation in a specific way. So my workaround is to invert the rotation transforms on the metaball before the pivot first then it goes into the rotation with pivot and that basically undo's any color change in the magnet while still rotating the metaball.

here is my test file.

MagnetTest_V3.hipnc

Link to comment
Share on other sites

If you enable "Affect Position" on the Magnet, you'll see that the point positions are changing because the direction of the translate value is changing. I think Affect Color just directly uses the position values. So that's why you're getting different colors. If you always want the same color, then you probably want to compute that by using the *length* of the position change instead. eg. perhaps just taking length($CR, $CG, $CB) ... But because the point positions are changing, the color will still change depending on the rotation.

MagnetTest_V3_KEEP_IT_BLUE.hipnc

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...