Using a Subsurf Modifier on a mecabricks part?
Owenator13 started this discussion in Model Export and Render

Hi I’m trying to use a subsurf modifier on a mecabricks part in blender but I’m getting a really weird result because of the edge split modifier on the parts...

Is there any fix to this? How can I use the subsurf modifier properly on a mecabricks part?

Thanks

12 replies · Page 1 of 1
Avatar of Scrubs
Administrator

I have an automatic workflow that I use for the online rendering service when the option is activated. It doesn’t work perfectly for all pieces, but in 90% of the cases it does the job.

What about inside blender? I’m trying to make animations so I’m not using the renderfarm

Ya, is there anyway you can tell us how you did it for the online rendering service, so we can do the same in blender scrubs? Thanks

Hey CitrineYT I figured out how to do it manually. If you’re using 2.8, make sure to check “use bevels” when you import the models. And when you add the Subsurface Modifier, look and see which edges don’t work, then go into edit mode and highlight them (there will be multiple edges for each edge on the model because of the bevel) also easier if you turn off the modifier for this part. then change the crease value to 1😮0 and it should fix the wierd effect.

If you are just doing this for a couple parts it’s not a big deal but for a large model it would be almost impossible. Hopefully scrubs can show us how make it automatic.

I posted a per-part solution for Cycles/Collada Export once here: https://www.mecabricks.com/en/forum/topic/72/17
It should give slightly better results than the workflow Owenator13 suggested.

• Select the part you want to subdivide.
• Press [TA😎 to get into edit mode.
• Press [N] to bring up the right toolbar, and under "Mesh Display", uncheck "Bevel".
• Press [A] to select all vertices and press [W] → "Remove Doubles" (there aren't many usually).
• Select a sharpened edge (highlighted in light blue if "Sharp" option is activated in the "Mesh Display" menu). Press [SHIFT] + [G] → "Sharpness", then Press [SHIFT] + [E] and then press [1]. Press [TA😎 again to get into object mode.
• Hide the Bevel Modifier by clicking on its eye icon.
• Add a Subdivision Surface Modifier and place it between the Bevel and Edge Split Modifier.
• Make sure there are no artifacts; usually, simple LEGO® bricks/cubic elements tend to create artifacts at the underside opening (wherever creased edge corners are connected with an uncreased edge). Usually, this can be solved by creasing ([SHIFT] + [E] and then [1]) non-creased edges at corners (here the four edges connecting the inner opening egde and the outer edge). Experiment until you get the best result.
• Select the number of subdivisions you want to have on the object, then apply the Subdivision Surface Modifier while keeping all the others. Make sure you didn't miss anything, for you can't get it back!
• Get into Edit Mode, select a sharp edge, and press [SHIFT] + [G] → "Sharpness" again. With those selected edges, bring up the right toolbar ([N]), and under "Transform" → "Edges Data" → "Mean Bevel Weight" enter the value "1".
• Get out of Edit Mode and make the Bevel Modifier visible again.

Hey thanks for this!

When I apply the subsurf modifier it says "Modifiers cannot be applied to multi user data"

What do I do?

Thanks

@Owenator13
This means you have instances in your scene (several objects that share identical geometry data which is less memory consuming).
You may not use instances on export; duplicate objects as instances share the same geometry data, hence applying modifiers won't work. So you either export a MB model without using instances or you export with instances and click on the little number next to the name tag of the part you want to work on in the Object Data tab (this will make it a standalone object, while the number indicates the number of instances the geometry has); after applying the subsurf workflow, I would recommend manually replacing identical parts then with [Alt]+[D] (instance duplication) to make things run faster while eating up less memory.

Thanks!

I made a addon to do this, may release it soon. It does the job pretty well

Awesome cant wait

Hey Citrine did you ever release your add on?

shoot I should do that soon

Advertising
4 participants
Avatar of Owenator13
Avatar of Citrine
Avatar of NGCHunter2
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.