Jump to content

PMVC - positive mean value coordinates


sibarrick

Recommended Posts

Ok, I knocked up an HDK version of PMVC_captAtt, the sop that takes the output from the ray sop and actually calculates the PMVC weights.

In my test file this reduces the capture time from around 1.15 minutes to ~16 seconds which is not too bad. Unfortunately I don't think there is a way to convert that one to VEX since it needs to reference vertices.

I've included compiles for windows H9.5.379 (32 bit vc8) and Mac H9.5.179 and H10.0.228

I think this is nearly done, I just need to do some more testing especially with large geometry. Then I'll wrap it all up properly and post an HDK and non-HDK version on my site.

PMVCrelease4_HDK.zip

Edited by sibarrick
Link to comment
Share on other sites

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

This is all great stuff; I love seeing how you progressively refined your approach; and I'm pleased that now you can deliver an HDK and non-HDK version...it's almost a try-before-you-buy because compiling HDK stuff isn't always as simple as it you'd want it:)

Thanks Simon!

Link to comment
Share on other sites

The only place I could see using it was
new_pos += pos*weight;

It's possible to do this by first baking out arrays of your data for all points and then running VM_Math to do SIMD operations. It does require extra setup which takes extra some time as well. However, if these arrays aren't changing from cook to cook, then the setup results might be reused.

Does anyone know if the python nodes run compiled code or is it always interpreted?

The python source code is compiled into "bytecode" which I think is a form of the tokenized source code. It is then interpreted per cook. Yes, bytecode is not the same (nor as fast) as running native compiled code.

Link to comment
Share on other sites

  • 1 month later...

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