Home Technical Talk

I've made a faster NormalThief

greentooth
Offline / Send Message
Noors greentooth
A Maxscript to project vertex normals from one mesh to another.

So here it is
https://dl.dropboxusercontent.com/u/13762052/polycount/NoorsNormalThief.ms

I've found out there was room to optimize SlideNormalThief.

On my PC,
SNT is faster for source object<1000 verts (0,5 sec vs 1sec)
For a 2500 vert source object : SNT 8s, mine 1,5 sec
For a 150k vert (CAD object), mine took 25 minutes while SNT took all night and failed (which is the reason why i made this).

edit : realised i've ran tests with an already optimized SNT. The speed difference is bigger with original.

Also, i disable windows refresh during execution, which gives a bit gain of time.
Counterpart is, at the end, max needs to be refreshed manually (minimize, maximize window).Didn't find a way to refresh UI through mxs.
This behavior could be removed by removing both windows.sendmessage lines in my script.

Replies

Sign In or Register to comment.