NVil Forum

General Category => Feature Requests => Topic started by: Vaquero on February 14, 2015, 01:36:02 am

Title: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on February 14, 2015, 01:36:02 am
I've seen, that in ZBrush 4R7 some methods of low poly modeling were introduced, and while the majority of them is not news (and no means for precise modeling), some innovation caught my attention that is called QMesh, especially a specific funtion of that brush. It's the ability to auto weld/fuse an extrusion with its neighbouring faces and auto clean up the mesh. A video clip can show more, than I am able to explain with words: http://youtu.be/i0DGujFOxJg (http://youtu.be/i0DGujFOxJg)

I can imagine that this saves a lot of work and speeds up modeling significantly. It saves you the trouble of deleting the inner or outer overlapping faces that occur with extrusion and afterwards welding the vertices together. The benefit is that you're also able to subtract volumes easily, because you're not left with overlapping faces. I tried but found no easy and fast way of doing that in NVil. See the picture below for end result. And returning this to its original cube form by building up the volume again through extrusion is not so fast either because of aforementioned problems.

So the request is for this kind of auto-weld, auto clean-up extrusion. The sliding of the non-welded edges as seen in the video would also be nice.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Darcvizer on February 14, 2015, 03:13:43 am
+500
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 22, 2015, 10:52:27 am
Try this
http://www.digitalfossils.com/Download/NVil-Feb-21-15.rar

  * Edit > Options > Extrusion Options > Polygon Extrusion Auto Weld Enabled.
  * Edit > Preference > General > Polygon extrusion auto weld threshold angle.

Have fun.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: steve on February 22, 2015, 12:56:27 pm
Probably a good time for me to remind about the missing ability of polygon extruding to snap points.

Also a good time to put forward the problems with co-planer polygon creation(which this tool can also create).
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: samardac on February 24, 2015, 03:19:33 pm
Vaquero, can you explain how to use these features, can not understand. May be some video will be great.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Darcvizer on February 24, 2015, 09:30:22 pm
Quote
Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.IndexOutOfRangeException: Индекс находился вне границ массива.
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.Component.SelectEdgeAtPoint(Single x, Single y, ArrayList objects, Boolean ignoreCulling, Boolean allowSubdEdges, Boolean canSnapToEndPoint, Single allowance)
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.CharacterHolder.SelectEdgeAtPoint(Single x, Single y, Single allowance, Component hintComponent, Boolean freezedComponentBlocked, Boolean ignoreCulling, ArrayList objects)
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.Util.GetEdgeSnapPoint(Single x, Single y, Single tolerance, Boolean snapToEdgeMidPoint, AbstractGraphicWindow graphicWindow, ArrayList characters, CharacterHolder exclusiveCharacter, Component hintComponent, Boolean freezedComponentBlocked, Vector3& intersectPt, Object& objEdge)
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.GetSnapPointCore(ReferenceVector3 origianlPtRef, Single x, Single y, Boolean snapToGridPlane, Boolean snapToGridPoint, Boolean snapToGridLine, Boolean snapToFace, Boolean snapToPolyCenter, Boolean snapToEdge, Boolean snapToEdgeMidPt, Boolean snapToVertex, Boolean snapToSpline, Boolean snapToObject, Boolean snapToMesh, CharacterHolder excludedCharacter, Object& snappedObject, Boolean& isOthographicPlaneSnapping)
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.UpdateSnapPointSearch()
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.ModelDesigner.Update()
   в DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.FrameMove()
   в DigitalFossil.BaseGraphicWindow.FullRenderDetail(Boolean forced)
   в DigitalFossil.BaseGraphicWindow.Render(PresentTarget pt, Boolean forced)
   в DigitalFossil.BaseGraphicWindow.FullRender(Boolean forced, Boolean allWindows)
   в DigitalFossil.BaseGraphicWindow.FullRender()
   в DigitalFossil.AnimationDesign.AnimationDesignForm.FullRender()
   в DigitalFossil.AnimationDesign.AnimationDesignForm.Render()
   в DigitalFossil.StartForm.DoRender()
   в System.Windows.Forms.Timer.OnTick(EventArgs e)
   в System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
NVil 1.0
    Версия сборки: 2.3.5531.42732
    Версия Win32: 2.3.5531.42732
    CodeBase: file:///C:/Users/Vlad/Desktop/NVil-Feb-21-15/NVil%201.0.exe
----------------------------------------
WorkShop
    Версия сборки: 2.3.5531.42725
    Версия Win32: 2.3.5531.42725
    CodeBase: file:///C:/Users/Vlad/Desktop/NVil-Feb-21-15/WorkShop.DLL
----------------------------------------
BasicD3DClasses
    Версия сборки: 2.3.5531.42721
    Версия Win32: 2.3.5531.42721
    CodeBase: file:///C:/Users/Vlad/Desktop/NVil-Feb-21-15/BasicD3DClasses.DLL
----------------------------------------
CharacterClasses
    Версия сборки: 2.3.5531.42720
    Версия Win32: 2.3.5531.42720
    CodeBase: file:///C:/Users/Vlad/Desktop/NVil-Feb-21-15/CharacterClasses.DLL
----------------------------------------
System.Windows.Forms
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Версия сборки: 2.0.0.0
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Darcvizer on February 25, 2015, 08:05:34 am
http://take.ms/q1fex
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 25, 2015, 08:30:30 am
Darcvizer, can you reproduce the bug? If can, can you tell me the steps to reproduce it? A video will help.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Darcvizer on February 25, 2015, 08:50:32 am
I can not repeat the mistake, it was an accident when I test new tool.
I used to streamline>extrude.
Founded and another mistake.
https://yadi.sk/d/5llBQKDMesomC

https://yadi.sk/d/WYWIKsMVespiQ
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 25, 2015, 09:31:22 am
I have fixed the latest bug.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 25, 2015, 09:34:17 am
Probably a good time for me to remind about the missing ability of polygon extruding to snap points.

Also a good time to put forward the problems with co-planer polygon creation(which this tool can also create).

What are these? Can you give detail?
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on February 25, 2015, 02:13:50 pm
I just had a test run with simple geometry in the latest feb 24th build and this tool is great! Unfortunately it often produces unexpected results. I made a lengthy video that shows annotations for each unexpected behavior. Most of the time it occurs when extrude streamline tool is executed with nmb action. It works better with lmb, even though it's the same streamline basic tool.
http://youtu.be/sfSgGYt3mOc (http://youtu.be/sfSgGYt3mOc)
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 26, 2015, 08:13:27 am
I don't know how to recreate the bugs shown in the video.

What is the value of your auto weld threshold angle? Which tool have you assigned to NMB?

And what is your value for this setting, Edit > Preference > General > Extrusion threshold in pixels. The default value is 4.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on February 26, 2015, 11:04:39 am
this feature is kinda cool....I could see it being useful on hard edged modeling techniques.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on February 26, 2015, 11:43:05 am
small request:

can we have a soft snap at .5 and .25  so that we can have precise extrusions?

i guess using shift is enough
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on February 26, 2015, 05:44:27 pm
I don't know how to recreate the bugs shown in the video.

What is the value of your auto weld threshold angle? Which tool have you assigned to NMB?

And what is your value for this setting, Edit > Preference > General > Extrusion threshold in pixels. The default value is 4.

Angle is at 30 and extrude threshold at 4 (defaults). The streamline tool on nmb and lmb is extrude_polygonNormal#. Here are my user settings:
NVil - Vaquero-User Settings - Feb 2015 (https://www.dropbox.com/s/k77qhf36bhn2fma/NVil-Vaquero-User%20Settings-Feb2015.zip?dl=0)
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on February 27, 2015, 10:13:28 am
Try this
http://www.digitalfossils.com/Download/NVil-Feb-26-15.rar
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on February 27, 2015, 08:01:09 pm
I had a quick go at it and it works really nice. Great job!
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: steve on February 28, 2015, 05:34:04 am
I did not really want to get involed with this, but will make a post.

How do we get an extrsion to snap point, or to planer?

Simple example:

I have base simple model. I want to extrude hightlighted polygon, to same hight as top planer surface. I do not know the actual hight of the extrusion, so stepping cannot be used(unless of course I want to measure ever hight before I make an extrusion, which is not workable).

(http://imagizer.imageshack.us/v2/xq90/540/q7ap2x.jpg) (https://imageshack.com/i/f0q7ap2xj)

So I extrude with new option. The auto weld is made, and I am left with polygon which is adjustable in hight, but no way to make planer to hight required. There is no(never as been) any snapping for polygon extrusion, so cannot snap to top face. There is no stepping that can be used.
Should we just guess? or exit tool to make planer with other tools/functions?

(http://imagizer.imageshack.us/v2/xq90/540/6cKvxX.jpg) (https://imageshack.com/i/f06cKvxXj)


-----------------------------

co-planer faces creation.

With same simple example. I want to extrude face inward. I select face to extrude:-
(http://imagizer.imageshack.us/v2/xq90/908/L0jYnb.jpg) (https://imageshack.com/i/p8L0jYnbj)

On extrusion, result as expected.

(http://imagizer.imageshack.us/v2/xq90/905/aKhx7K.jpg) (https://imageshack.com/i/p5aKhx7Kj)

However, if I had selected the top face instead:-

(http://imagizer.imageshack.us/v2/xq90/673/3BGQbC.jpg) (https://imageshack.com/i/ip3BGQbCj)

The result is a concave quad, with 3 vertex welded, producing co-planer faces, and a floating vertex with no way to make correct alignment.
The result should of been as previous exrude.

(http://imagizer.imageshack.us/v2/xq90/537/jDPd3M.jpg) (https://imageshack.com/i/exjDPd3Mj)


I am going to have a few weeks off beta testing, so if changes are made, others can beta test.







Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: samardac on February 28, 2015, 08:36:39 am
steve, those things also confuse me.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on February 28, 2015, 08:56:03 am
The tool definately needs a planar snap and the  distance should be shown in % of  local edge length so we can extrude at 50% or 25%.

The last picture is not a bug, the tool  functions by welding verts so you will need a supporting edge first for it to weld to, which is why it works in the other picture.

Ideally, this polygon should just be deleted,  which would be awesome because it would behave like a boolean that carves edges.

Tool works great,  this is just a little polish.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on March 01, 2015, 10:28:56 am
Try this
http://www.digitalfossils.com/Download/NVil-Feb-28-15.rar

The snapping ability is added.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on March 01, 2015, 09:26:05 pm
Whoohoo! Now I can use edge snapping to midpoint to get half steps and snapping to vertex to get full steps. Thank you!
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on March 02, 2015, 12:40:48 pm
really nice now!

Thanx!
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: polyxo on March 02, 2015, 02:32:04 pm
I use Zbrush anyway – so replicating the Qmesh feature clearly isn't what I personally wish for most...so I really would not mind if IStonia now did something else again :)

But I think what makes the Zbrush command so elegant isn't quite met yet. The auto-welding is there, but what happens when one drags inwards is at least equally cool. First stage is undo the just created extrusion, second stage is extrude in opposite direction, third stage is bridge/hole/cutout creation and automatic cleanup + polygroup-creation.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on March 02, 2015, 05:58:21 pm
http://www.hard-mesh.com/


Doing spline based fillets would be a considerable feature.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Vaquero on March 02, 2015, 06:02:40 pm
yeah the QMesh in Zbrush does bridging, too. But I'm satisfied with the NVil implementation. Let's not make this thead about wishes or other features. Because then I would have to press for a descent UV workflow...
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: IStonia on March 07, 2015, 10:39:58 am
I use Zbrush anyway – so replicating the Qmesh feature clearly isn't what I personally wish for most...so I really would not mind if IStonia now did something else again :)

But I think what makes the Zbrush command so elegant isn't quite met yet. The auto-welding is there, but what happens when one drags inwards is at least equally cool. First stage is undo the just created extrusion, second stage is extrude in opposite direction, third stage is bridge/hole/cutout creation and automatic cleanup + polygroup-creation.

It behaves like that now if snapping is off.
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: samardac on March 19, 2015, 06:48:45 am
Can not finish it:
(https://monosnap.com/file/BWYPuBXrg5epfOIUdILTxiQQY3QfBq.png)

(https://monosnap.com/file/thVgM6S0HkmcV31h8CFbOZdhDKpVnB.png)

Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: arvin00 on March 22, 2015, 03:29:09 pm
bumping up this one, I wish this can be updated to become more powerful. Thanks!

-Arvin
Title: Re: ZBrush's QMesh - extrusion w/ auto weld&cleanup
Post by: Mason on March 23, 2015, 08:35:15 pm
Yes, this is the only unfinished part of the tool feature.  Deleting the last polygon to create a hole, and then merging the verts around the open edges.