Page 1 of 3

Soft Transform

Posted: 29 Apr 2012, 20:24
by origin
Hi
here's updated plugin that I've been working on for some time. I didn't have time to test it in production environment so...as usual, If you find a bug, report it please!

It's like View Plane Proportional Transform tool, but for objects.
LMB - translate, MMB - rotate, RMB - scale.

hold SHIFT to rotate/scale about point.
Hold CTRL to transform all objects with full strength.

Press K] to switch between tool modes (t/r/s)
Press ENTER to pop up preferences PPG.

Collision model is very simple (triangle mesh vs bounding sphere) and not accellerated (read: slow). By default collision happens between selected (static) objects and objects you move.
Tool respect filters/auto key toolgle/children compensation buttons.

You will find it here: Model->component->View plane object... (I know, weird location)

I've included source code, if anyone brave to compile it under linux/32bit. Vc project has some hardcoded paths because my visual studio has stopped working as it should..



older video:

Re: Soft Transform

Posted: 29 Apr 2012, 23:48
by eternal art
origin .. your tools is outstanding .. thank you very much for sharing it ..

damn ... how amazing the softimage peoples is .

Re: Soft Transform

Posted: 30 Apr 2012, 00:11
by CiaranM
Nice!

Re: Soft Transform

Posted: 30 Apr 2012, 07:23
by TwinSnakes007
All of your plugins are top notch, thanks sooo much.

Thanks for providing the code.

-TS-

Re: Soft Transform

Posted: 30 Apr 2012, 09:35
by origin
Thanks guys :ymblushing:
If anybody got some time to test mesh painting plugin, drop me a PM please

Re: Soft Transform

Posted: 30 Apr 2012, 13:26
by Rork
I can only agree with the comments above.

Top notch stuff here!! :-bd :-bd

It's great to see some really nice tools emerging from the new SDK. Please don't stop creating tools like this!! :ymparty:

rob

Re: Soft Transform

Posted: 30 Apr 2012, 13:55
by Memag
Amazing tools.
Thank you very much Piotrek!

Re: Soft Transform

Posted: 30 Apr 2012, 14:07
by milanvasek
looks great! can't wait to try it
thank you very much for sharing this with us :ymapplause:

Re: Soft Transform

Posted: 30 Apr 2012, 15:21
by rray
Wow neat! Works very stable.

I wondered, did you meet any limitations with the custom tool SDK? Or would you say it's be possible in theory to rewrite any of the factory tools with it?

Re: Soft Transform

Posted: 30 Apr 2012, 15:58
by ace63
Great tool.
I'm wondering if it would be possible to implement the same thing to draw on particles in a pointcloud.
So one could paint sizes, translation and orientation.

Re: Soft Transform

Posted: 30 Apr 2012, 17:29
by origin
rray wrote:Wow neat! Works very stable.

I wondered, did you meet any limitations with the custom tool SDK? Or would you say it's be possible in theory to rewrite any of the factory tools with it?
I think it's possible to replicate them all...the only limitation I've faced so far is that you cannot log actions for undo (BeginParameterUpdate...) in mouse move event.

Re: Soft Transform

Posted: 30 Apr 2012, 17:35
by origin
ace63 wrote:Great tool.
I'm wondering if it would be possible to implement the same thing to draw on particles in a pointcloud.
So one could paint sizes, translation and orientation.
I was talking about it with Milan Vasek, I think I'll do something like particle brush tool after I finish meshpaint plugin.

Re: Soft Transform

Posted: 30 Apr 2012, 17:41
by Memag
Meshpaint plugin?
Do you have screenshot of this tool in "action"?
My god you're prolific.

Re: Soft Transform

Posted: 30 Apr 2012, 17:46
by origin
Memag wrote:Meshpaint plugin?
Do you have screenshot of this tool in "action"?
My god you're prolific.
If anybody got some time to test mesh painting plugin, drop me a PM please
;)

Re: Soft Transform

Posted: 01 May 2012, 07:02
by scaron
hey piotrek

thanks for the source code! but i see you are using a visual studio 2010 library parallel patterns library (ppl.h) which means i can't compile this with visual studio 2008. i know i know, upgrade right? well thats not an option at this time, i was also trying to make a cmake build system for your plugin in order to facilitate others compiling it for 32bit windows and make it easier when porting to linux.

can you explain your usage of ppl.h (either here or in pm) so i can look into finding a cross platform alternative? TBB or OpenMP etc.

s

Re: Soft Transform

Posted: 01 May 2012, 11:22
by origin
I was trying to parallelize some loops. Well in the end only one loop got that chance..

Concurrency::parallel_for( 0, (int) tris.GetCount()*3,3, [&] (int k)
// for (LONG k=0;k<tris.GetCount();k+=3)

so you can safely uncomment for( and delete all concurrency lines
the speed gain was minor.

I didn't know ppl is not portable...will look into TBB since openMP is dead(?)