openMP and MFnNurbsSurface

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2011
openMP and MFnNurbsSurface

Hi folks,

Got another head scratcher for anyone interested:

Anyone here managed to multithread calls to MFnNurbsSurface safely? I'd like to do more point samping than I'm currently doing in Python for a new node idea, but I the heaviest calculation seems to be the sampling of the surface itself.

What are other people doing to get worldSpace points quickly? The dream here would be to use a #pragma omp parallel for on a loop that grabs all the points together, and then the same on the loop that does the calculations.

Near as I can tell you can't use MFnNurbsSurface on anything without first having a DAG object, so would it be better to somehow copy all that information locally and calculate the surface myself? (Not that I'd know how to pull that off. )

Thanks as always,
~ K
__________________
mokushi kushimo
shimoku kumoshi
moshiku shikumo
 
  12 December 2011
Since probably this object won't support multi-threading, and it would be too slow anyway, I think the best thing for you to do would be to get all the nurbs parameters from maya, and calculate the nurbs yourself. If you are reluctant to implement nurbs by yourself you can look for a nurbs package for python, such as this first google result:

http://runten.tripod.com/NURBS/
 
  12 December 2011
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 05:00 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.