SamSuka
everlaster
everlaster

patreon


DrawDebugMesh v1.0

One of the problems I encountered while creating the Breast_RefM morph was dealing with inconsistencies in how Blender and DAZ render the mesh versus VaM. Especially with regard to shading. The geometry can look spot on in Blender, but produce annoying issues in VaM - for example, one triangle in a quadrilateral displaying as shadowed and causing a blocky appearance that's inconsistent with the surrounding geometry.

To help debug these issues, I created a rudimentary plugin which draws a wireframe on top of the model in VaM. I imagine this might be useful in general when creating or editing looks. For example, it makes it easier to identify morphs that have unintended side effects.

Features

 

Draw quadrilaterals:

Draw triangles:

Draw quadrilaterals with x-ray:

Issues / good to know

The plugin consumes a lot of memory and has a heavy impact on frame rate. This isn't fixable because it results from having to fetch vertex positions from GPU buffers every frame. However given that it's a tool for editing, that should be OK, and the memory it uses is periodically freed up by VaM anyway.

Reload the plugin after changing the character in Skin Select. Note that not reloading allows you to disconnect the wireframe from the character which is kind of cool:

The wireframe isn't exactly 1:1 unless using the dummy skin. It seems VAM does some form of smoothing when using a non dummy skin, even if Smooth Passes is 0:

Further development

It would be possible to implement additional features such as

Do you think this is useful, and would you like to see the above additional features? If you have an idea for a feature not mentioned here, let me know!

-everlaster

DrawDebugMesh v1.0

Comments

Whenever you have extra time, no need to hurry as you are already very busy and focused on breast morph...

Pan-da!

I'm not sure about the glow effect though, I'd have to look into that.

everlaster

Yeah in theory this plugin could be extended to create a wire frame for any mesh as long as I can get the real time positions. I think Stopper has already figured that out for clothing in some plugin (probably Attach To Vertex).

everlaster

About extra features in the way i'm comparing to mmd plugin i have an affect in mind which is self wireframe mesh self Glow. It gives the ability to a piece of clothing to diplay as wireframe but selfglow (glowing effect has the choice of the colors, intensity, blink, etc.) very cool for MMD users in VaM to produce video clips.

Pan-da!

And thank you very much also for the Keybinding implementation into it.

Pan-da!

Yes !! Excellent idea. Similar plugin exists in MMD and it is also used as an FX and for 3D presentation. Very useful in my opinion even not in the way you created it ! Thank you very much !!!

Pan-da!


More Creators