C++ custom tool SDK programming tip

Discussions concerning programming of SOFTIMAGE©
scaron
Posts: 119
Joined: 08 Jul 2009, 05:16

Re: C++ custom tool SDK programming tip

Post by scaron » 16 May 2013, 03:00

as far as caching goes the Geometry class provides PutCache and GetCache...

http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_cpp/classXSI_1_1Geometry.html,topicNumber=si_cpp_classXSI_1_1Geometry_html,hash=a776317aeb4cf15a9d68074a17c38d824

but with a plugin ahmidou's where the point positions are changing constantly it might not be useful. unless the cache can be some how partially and incrementally updated. i doubt that though :)

Ahmidou
Posts: 106
Joined: 04 Jan 2010, 14:00

Re: C++ custom tool SDK programming tip

Post by Ahmidou » 16 May 2013, 08:38

I just saw the Put/GetCache yesterday, this might be usefull for a relax+shrinkwrap brush.
Anyway the tool is already faster than push or smooth + weightMap, but I'm still testing which method would be faster.
Piotrek you're right and it make sense, there is some point where rebuilding the acceleration tree become slower than the pickBuffer.
It also need to be rebuilt for the GetClosestLocationsWithinRadius which I'm forced to use every drag update...

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests