MoI discussion forum
MoI discussion forum

Full Version: Cross Hatching experiment

Show messages:  1-10  11-30  31-50  51-62

From: danperk (SBEECH)
15 Jul 2022   [#11]
Looks Great Michael! Very excited to see how it evolves!
From: pressure (PEER)
15 Jul 2022   [#12] In reply to [#10]
Michael,

Yes that's the right thing!

I'm looking for alternatives to smooth shading since that tells a story about the relationship between the object and some light sources, and I want to focus on the shape of the object primarily. Think about smooth shading on a parabolic reflector: pretty darn hard to tell what shape the reflector is, even with the object in your hands. For smooth shading, I've used Blender with either Freestyle or the new Line Art Modifier for Grease Pencil to generate basic vector line art from the same view as raster shading.

I see a version of your method saving me hours to days per drawing and giving a more convincing result than is feasible with existing tools.

I would be interested in:
1. smooth continuous lines
2. no loops (false lemon umbilics?). I know you like them, and understand the aesthetic value, but they'd make life hard for me when I'm going for minimalism. I'd rather have control over style, such as by sketching over a clean reference or by applying a pattern brush to clean paths.
3. ability to select which line of curvature I'm going to show. In some cases I'd be interested in cross hatching with 2 lines of curvature through every point, as in the examples you've shown, but in many cases I'd rather show the lines that are going in 1 general direction only as in the pdf I attached before. I'm not sure how well defined the problem is of classifying the lines into disjoint sets. Something that pops into my mind is the relative magnitude of curvature of the lines of curvature passing through a point, but I'm not sure that's right.

The last point brings me to something I noticed in a couple old forum threads: requests for closed paths in Ai exports. I suspect that there's a well-defined solution for drawing closed paths around patches of a 2D projected image and that this would be of particular benefit in the case of hatching. Maybe you've already though of this or even discussed it here. If not, I'll make some drawings showing the algorithm when I return from travel.
From: Michael Gibson
15 Jul 2022   [#13] In reply to [#12]
Hi Peer,

re:
> 1. smooth continuous lines

They're a little squiggly but yes they're curves not polylines.


> 2. no loops (false lemon umbilics?). I know you like them, and understand the
> aesthetic value, but they'd make life hard for me when I'm going for minimalism.
> <...>

Yes the looping is kind of an interesting accident, I like the warmth that it brings but I'll put in an option to turn it off, looks like this when disabled:



Also I'll see about breaking them up at face boundaries as another option that may help keep them structured a little more.


> 3. ability to select which line of curvature I'm going to show. In some cases I'd be interested in
> cross hatching with 2 lines of curvature through every point, as in the examples you've shown,
> but in many cases I'd rather show the lines that are going in 1 general direction only as in the
> pdf I attached before. I'm not sure how well defined the problem is of classifying the lines into
> disjoint sets. Something that pops into my mind is the relative magnitude of curvature of the
> lines of curvature passing through a point, but I'm not sure that's right.

I guess i should be possible to only use the direction that has the smaller radius of curvature.

It won't work for the case of a sphere or a plane though, those have equal magnitude in both directions.

So I'd need to know what should be done in those cases when they equal.


> The last point brings me to something I noticed in a couple old forum threads: requests for closed
> paths in Ai exports. I suspect that there's a well-defined solution for drawing closed paths around
> patches of a 2D projected image and that this would be of particular benefit in the case of hatching.

Currently the silhouettes and outlines are not generated by tracing around a projected 2D image, they
come from silhouette curves that are generated directly from surfaces using iterative numeric analysis
techniques. This is kind of good for overall accuracy since they are generated from smooth surfaces
but it also makes it relatively easy for their ends to slightly overlap each other. It should be possible
for me to do something in the future to try and tune those up but it will be a fiddly area and I'm not
sure when I'll be able to work on that.

Thanks,
- Michael

Image Attachments:
cross_hatching_no_loops.png 


From: Frenchy Pilou (PILOU)
15 Jul 2022   [#14]
Some iso multiple+ &some Cmorph don't make some curves ?
From: Michael Gibson
15 Jul 2022   [#15] In reply to [#14]
Hi Pilou,

re:
> Some iso multiple+ &some Cmorph don't make some curves ?

That would definitely make some curves but not with the same kind of spacing and positioning.

How long would it take to generate curves all over like this for example? :



Here's another example - try placing isocurves and some Cmorph on this attached chess pawn model and try to get a result like this:



- Michael

Attachments:
pawn.3dm

Image Attachments:
pilou_cross_hatching_pawn.png 


From: Frenchy Pilou (PILOU)
16 Jul 2022   [#16] In reply to [#15]
You want this some ceramic skin erratic result ?
From: Michael Gibson
16 Jul 2022   [#17] In reply to [#16]
Hi Pilou, try to make a result that looks like cross hatching like in a sketch.

Do a search for something like "cross hatching sketch" to see examples.

- Michael
From: wayne hill (WAYNEHILL5202)
16 Jul 2022   [#18]
Hi Michael,

It would be interesting to see the 3d cross hatching with the solid model hidden.

Wayne
From: Michael Gibson
16 Jul 2022   [#19] In reply to [#18]
Hi Wayne, here you go this one is the cross hatching all by itself, no edges or shading underneath.



Here is the same hatching with silhouettes added:



- Michael

Image Attachments:
hatching_alone.png  hatching_with_silhouettes.png 


From: wayne hill (WAYNEHILL5202)
16 Jul 2022   [#20] In reply to [#19]
Thank you!
From: Larry Fahnoe (FAHNOE)
16 Jul 2022   [#21]
This is a wonderful collection of effects! I look forward to being able to use it as it does a really nice job of illustrating curvature. I particularly like the artistic nature of the hatching. Well done Michael!!

--Larry
From: Marbleman
16 Jul 2022   [#22] In reply to [#19]
Hi Michael

Looks great with the silhouettes added, really handy.
From: Frenchy Pilou (PILOU)
16 Jul 2022   [#23] In reply to [#17]
So it's that sort of effect that you want but made in Moi3D ?


From: Michael Gibson
16 Jul 2022   [#24] In reply to [#22]
Hi James, yeah I wasn't sure if the sketchy cross hatching would combine ok with the exact silhouettes but it seems fine together.

Michael
From: Michael Gibson
16 Jul 2022   [#25] In reply to [#23]
hi Pilou,

re:
> So it's that sort of effect that you want but made in Moi3D ?

Yes, similar but with vector lines and curves being output, not as an image processing effect.

- Michael
From: Frenchy Pilou (PILOU)
16 Jul 2022   [#26] In reply to [#25]
Ok! :)
these hatching must also following the lighting of the object or must be isotropic ?
(from your examples seems isotropic)
From: Michael Gibson
16 Jul 2022   [#27] In reply to [#26]
Hi Pilou,

re:
> these hatching must also following the lighting of the object or must be isotropic ?
> (from your examples seems isotropic)

It's possible to do either.

The ones here adapt to lighting and have denser lines (smaller spacing) where the lighting is dark:
http://moi3d.com/forum/index.php?webtag=MOI&msg=10774.2

This one does not respond to lighting:
http://moi3d.com/forum/index.php?webtag=MOI&msg=10774.19

That will be an option that you will be able to set.

- Michael
From: Frenchy Pilou (PILOU)
16 Jul 2022   [#28] In reply to [#27]
ok...

Else in theory Flow function can't be used ?


From: Michael Gibson
16 Jul 2022   [#29] In reply to [#28]
Hi Pilou,

re:
> Else in theory Flow function can't be used ?

Not if you want it to look like real hatching - the pattern flowed on a sphere will be compressed at the pole areas and wider at the equator.

- Michael
From: Frenchy Pilou (PILOU)
16 Jul 2022   [#30] In reply to [#29]
Yes but you can make some Flow after a rotation of the sphere!
Sure the hatching will be not ultra regular but...



Show messages:  1-10  11-30  31-50  51-62