PDA

View Full Version : New ZPlugins : SubDStroke & Mask2Group



marcus_civis
08-15-05, 10:29 AM
SubDS_grab.jpg


SubDStroke provides an easy way to partially subdivide a model.

Partial subdivision can be useful if you want to add detail to some parts of your model while keeping the overall poly count low.

:b3: Press the button immediately after drawing a stroke on a polymesh in Edit mode and the stroke will be subdivided. Pressing the button again will further subdivide the stroke.

:b3: If Ctrl+drag was used to paint a masking stroke then the whole masked area (including any previous masking strokes) will be subdivided. Only one level of subdivision is possible with this method.

Note: the SubDStroke button must be pressed IMMEDIATELY after making a stroke. If the model has been rotated, scaled or moved the subdivision will not work. (This is because ZBrush regards any mouse movement on the canvas as a stroke.)

:b3: SHIFT-click the SubDStroke button to UNDO the partial subdivision. This must be done before the model has been modified further.


INSTALLATION

Unzip the zip file to your ZStartup\ZPlugs folder ..\ZBrush2\ZStartUp\ZPlugs). The plugin file SubDStroke.zsc and the folder SubD_data should both be in the main ZPlugs folder. You may need to create the ZPlugs folder if you have a new installation of ZBrush.

Restart ZBrush. You should now have a SubDStroke button in the MarcusTools subpalette of the ZPlugin palette. You may Ctrl+drag the button to a suitable place on your interface and save the position by storing the UI configuration (Ctrl+Shift+I).

Updated August 18 2005
Again ... I hope I have now fixed the feature whereby some strokes were not being subdivided. You should be able to use any sort of stroke, including ones modified by Ctrl, Shift or Alt.

Mask2Group plugin added
Lemonnado suggested that a button to make a polygroup of a masked area would be useful, so I have added a plugin for that too. Just unzip to your ZPlugs folder as above. Press the button after masking part of a polymesh and the masked area will be made into a group.

I hope you find SubDStroke & Mask2Group useful.

Cgkoko
08-15-05, 10:33 AM
WOW! That looks really cool and usefull.

DanRoberts
08-15-05, 10:37 AM
Pretty Cool ... Thanx Marcus.

Dan

billrobertson42
08-15-05, 01:02 PM
Thanks for the plugin Marcus. I think what you've come up with is probably a good way to implement it given what z-brush exposes. Your timing is good too, because I'm starting to get a better feel for zb modelling and use it more.

Digits
08-15-05, 08:09 PM
Really Slick :tu::tu::tu: Great little tool, thanks buddy this should make alot of people happy.

DanRoberts
08-15-05, 08:39 PM
Hmmm it installed fine ... and i followed the directions (i was using a poly 3d sphere) and I stroke the sphere ... I immed. hit the button .... I get a subdived completed messege but all that happens is that my stroke goes away like it was erased :(

Did i find a bug ?

Dan

aminuts
08-15-05, 11:38 PM
hey dan, not sure as I haven't tested it yet but you might have to turn your primitive into a polymesh first.

DanRoberts
08-15-05, 11:57 PM
hey dan, not sure as I haven't tested it yet but you might have to turn your primitive into a polymesh first.
Thnx for the reply ... Yea i did ... the plug actually gives ya a messege if its not a poly mesh (I did try it as a primitive 1st) ... so i converted to polymesh and gave it a whirl so far it just erases my stoke ... not sure if im doing something wrong or if its one of those case specific bug kinda things :confused:

Buckie
08-16-05, 12:10 AM
Looks like another great plugin here...:tu:

marcus_civis
08-16-05, 01:36 AM
Thanks for the comments guys, much appreciated. :)

Dan,
I'm sorry it's not working for you. I need to find out exactly what's happening to see the problem so would you record a short zscript and send it to me (at the email address in the readme file)? Just load up a polymesh and make a stroke on it; that should be enough. Also, are you on PC or Mac?

Many thanks.

Digits
08-16-05, 09:43 AM
Same thing happened to me, I draw a stroke, press the button and nothing happens.

I then tried Control Key Dragging a mask of my model which did work. I then tried brushing a mask on with the Control Key down and as I figured that worked as well.

So... I don't know if it is by design or not but it looks like the trick is to create a mask of the area you want to subdivide and then everything smells like roses.

Thanks again Marcus

marcus_civis
08-16-05, 10:06 AM
Hmm, you should be able to use either method. But Ctrl+dragging a mask is subdivided by the script in a different way (and obviously a more reliable one).

I can't actually reproduce the problem which doesn't help finding a solution. :(
I am taking another look at the script though and tightening things here and there so hopefully I shall solve it.

DanRoberts
08-16-05, 12:30 PM
Dan,
I'm sorry it's not working for you. I need to find out exactly what's happening to see the problem so would you record a short zscript and send it to me (at the email address in the readme file)? Just load up a polymesh and make a stroke on it; that should be enough. Also, are you on PC or Mac?

Many thanks.
Will do :) .... im at work right now but will do it when i get home :p

DanRoberts
08-16-05, 04:21 PM
Hi Marcus,

Here is the script showing the "erase behavior".

The tool is in the folder as well (just a poly 3D sphere)

Dan

kenkc
08-16-05, 09:28 PM
Any idea why I'm not getting a "SubD Data" folder to unzip?

marcus_civis
08-17-05, 04:24 AM
Dan,
Many thanks for your trouble. I hope that the update now fixes this problem. If not please let me know.

kenkc,
There is nothing in the SubD_data folder when the plugin is first installed; it just needs it to store data that it writes during operation. The zip should contain the readme text file, the SubDStroke.zsc and the empty SubD_data folder. To install the plugin put the .zsc file and the SubD_data folder in your ZStartup\ZPlugs folder. If you have a new installation of ZB you may need to create the ZPlugs folder. If for some reason your unzip program does not create the empty SubD_data folder then simply create one in the ZPlugs folder. Make sure it is named exactly (including underscore) : SubD_data .

Any problems, please let me know.

kenkc
08-17-05, 08:09 AM
Got it installed.Thanks for your help,Marcus!

DanRoberts
08-17-05, 02:46 PM
Dan,
Many thanks for your trouble. I hope that the update now fixes this problem. If not please let me know.

Any problems, please let me know.Hey Marcus,

All is working with standard strokes and ctrl-strokes.

I still get the erase behavior if i stroke with shift and alt.

... (the shift and alt stokes dont seem to matter all that much cause im not sure what value partial sub d has with those strokes anyway ... unless of course im just missing the ideas/experience as to what value partial sub D would have on those strokes)

Its cool to be able to use a masking stroke to apply partial subdivide. :cool:

Dan

marcus_civis
08-18-05, 05:05 AM
kenkc,
I'm glad you got it installed. I'll include a file in zipped folders in future to avoid problems. Thanks for the pointer on that.

Dan,
The masking stroke is probably the most useful - remember that if you do several masking strokes to build up a mask as long as you press the SubDStroke button after the last masking stroke you make ALL of the strokes will be subdivided.

Perhaps, as you say, not many people will use the other strokes. But for the sake of completeness I'd like to get them working if I can. I've posted a new update. If you've a moment I'd appreciate your feedback on that. :)

Thanks,

DanRoberts
08-18-05, 08:25 AM
Dan,
The masking stroke is probably the most useful - remember that if you do several masking strokes to build up a mask as long as you press the SubDStroke button after the last masking stroke you make ALL of the strokes will be subdivided.

Perhaps, as you say, not many people will use the other strokes. But for the sake of completeness I'd like to get them working if I can. I've posted a new update. If you've a moment I'd appreciate your feedback on that. :)

Thanks,
Okie Dokie :) .... just tried Rev C and all strokes be workin' !!


Marcus.jpg


... and a "little something" to celebrate with ... (attached)

Dan

lemonnado
08-18-05, 08:54 AM
Works great! Finaly teeth,pimples,etc. with the mask/deform/inflate method which don't look to rough!.

Lemo

PS:Would it be a big deal to have that button without subdiv, just with PolyGroup? Or is PolyGroup a result of the subdiv.... Any case, it would be great to be able to mask-paint polygroups to use them later for hiding etc....

Currently I have to mask, then hide, then polygroup visible, then clear mask, show........ Mask, press button, would be more decadent....

marcus_civis
08-18-05, 10:39 AM
Dan,
That's great - and many thanks for the celebratory music, very pastoral. :)

Lemo,
It's not difficult to do a button for what you want. I've added it to the start of the thread. :)

Cheers,

Svengali
08-18-05, 11:43 AM
Hi Marcus,

Finally installed this one and tried it out. This little util deserves to be included in your signature list of USEFUL PLUGINS.

Thanks! Sven

lemonnado
08-18-05, 12:14 PM
Wheeeeeeeeeeeeeeeee

THAT is cool. Now I can draw the 'groups' even if the geometry changes are not so radical to trigger propper auto-grouping.

Hiding and un-hiding is so easy now!

THANKS!!!!!!
Lemo

PS:OK... I stopped playing.. back to the 'you know what' 8-)

DanRoberts
08-18-05, 03:39 PM
Dan,
... music, very pastoral. :)

Cheers,
I kinda wondered if ud know what it was ... and ya did :tu:

Dan

DanRoberts
08-18-05, 03:46 PM
Dan,
Lemo,
It's not difficult to do a button for what you want. I've added it to the start of the thread. :)

Cheers,
Wow ... mask 2 group ... very cool idea Lemo and thx Marcus for implementing that. Seems like these two plugs deserve a place in Zrush permanent.

Atwooki
08-18-05, 07:29 PM
Great update, Marcus! wait.... what the... 2 updates!... and the subDStroke
enters the hall of fame as a fully-fledged classic (at least with my simple tests
so far!) very nice touch on the 'MaskGroups' plug also :tu:

Thanks for these, they're both great :D

Chris

ozone1979
08-24-05, 02:32 AM
i find both plugins very useful... they really make subdiv and grouping a lot quicker than masking and hiding :)

but one thing i wonder about...
how would this affect a displacement map?

marcus_civis
08-24-05, 05:25 AM
Thanks for the comments guys, much appreciated.

ozone1979,
I don't think that you can use partial subdivision and generate a displacement map. You can only partially subdivide a mesh when the lowest level is active so that means your cage mesh would be altered. Partial subdivision is useful for working exclusively in ZBrush or for when topology is not important, such as when you want to quickly block out a character.

Kanga
10-06-05, 06:07 PM
Found your plug while looking to optimalise work flow. Just installed it and presto it appeared quite obiediently!

Thanx man:cool:

1stbrother
12-14-05, 03:56 PM
just ran my first attempt w/ subdstroke. perfect for me.

9/10 times i model with a vauge idea of what i want and end with a really promising model but not enough polys to go on. this will do the trick.

thanks

lemonnado
12-14-05, 04:31 PM
Just keep in mind that if you wish to animate it you might have a surprise later. But for static models this is a great time saver if you are in a pinch.
Lemo

1stbrother
12-14-05, 05:58 PM
hi lemonnado. is that because it's just a mass subdivide and w/ no regards to topology or is there something else?

marcus_civis
12-15-05, 01:20 AM
Hi 1stbrother,
I'm glad you like the plugin. :) (I guess that is what lemonnado means.)

rrzzrr
03-24-06, 02:07 AM
Thanks. Just what I looking for. Might've been my first attempt at a plugin, if I hadn't found this.

When I'm clueless about what to model, pushing, punching and twisting a 3d sphere in Zbrush untill I see something interesting, seems a productive strategy. The sphere meshes bunch up and pinch at their polar vertices, however. Trying to unf#ck those isn't easy. Hope this'll do the trick.

lemonnado
03-24-06, 07:22 AM
Only regarding the topology, you will have 'interesting' effects at the seams of low and high density parts. Try it out and see what happens if you 'bend' a cylinder with differently dense areas. Kinda cool, except when you do not need it/want it...
Cheers
Lemo

Sebcesoir
03-29-06, 06:01 AM
People always ask more and more, even for great stuffs like your cool pluggin but...

Do you think it would be possible to mix this plug with projection master?

I did nice gothic plans, but the need a huge amound of polys, even on undetailes areas... That would be awsome to be able to add polys, only where projection master drope some details...
But I might be impossible regarding how work your plug?

marcus_civis
03-29-06, 08:46 AM
Hi Sebcesoir,

My initial response is that I don't think what you suggest is possible. But it's an interesting idea and I'll give it some thought.

Cheers,

Sebcesoir
03-31-06, 07:56 PM
I unfortunatly guess so, thanks for your answer Marcus!

marcus_civis
04-03-06, 07:27 AM
Sebcesoir,
I've had a rethink - check your email!
Cheers,

Sebcesoir
04-03-06, 09:29 PM
Thx Marcus! I have to handle it, but it works.


Just one thing, you said to paint a color to add border subdivision, but I cant make it work...

erikals
02-23-07, 06:17 AM
Hi, sorry for bumping the thread,..

..I was wondering, did you get it to work with projection master?

I think I have a solution which is freezing the mesh, but it is a bit big work-around and would pump up the resolution of the mesh,

Hoping there is a way :)

tdrs
02-12-08, 03:03 AM
marcus_civisI find both plugins very useful. Can you Update the plugin for 3.1?

aliaslies
02-22-08, 08:30 AM
This is a greast plugin and works perfectly in 3.0 ,is there a 3.1 option????
PLEASE.....

Prestoner77
08-05-10, 08:04 PM
Is there a version of this for zbrush 3.5? I need to partially subdivide an area more than once! Help!