Jump to content

bbox() and bound node giving different results (solved)


Recommended Posts

hey all, I was trying to export some animated bounding boxes and I noticed that bound and bbox() give different P values, what causes this? I thought they'd be the same. I attached an example. It's not really a problem in my case but I'm confused. have a great week all and remember to wash your keyboards ;)

 

bboxexport_offset_question.hiplc

Edited by rbesca
Link to comment
Share on other sites

it's because Bounds SOP is actually building bounding box around the geometry that is fed in

while by putting bbox to scale parameters you are merely scaling your unit box to the same dimensions, but you are still keeping it in the center of the scene, you need to also move the box to the center of the geometry bounding box to get the same result as bounds

you can for example put this into transform2 Translate parameters

centroid("../../geo1/explodedview2", 0)

centroid("../../geo1/explodedview2", 1)

centroid("../../geo1/explodedview2", 2)

  • Like 1
Link to comment
Share on other sites

dims are exactly the same, it's just an offset. (if you enable radii in bound, the halflengths correspond exactly to the bbox vex snippets)

- the box is EXACTLY centered at Origin.

- the bound box is offset to where the centre of the cluster of balls is...not necessarily = Origin

Edited by Noobini
  • Like 1
Link to comment
Share on other sites

  • rbesca changed the title to bbox() and bound node giving different results (solved)

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