-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpovthread.html
61 lines (61 loc) · 5.22 KB
/
povthread.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html>
<html lang='en-US'>
<head>
<link rel='icon' type='image/x-icon' href='favicon.ico'>
<link rev='made' href='mailto:[email protected]'>
<link rel='canonical' href='https://dnyarri.github.io/povthread.html'/>
<meta charset='utf-8' />
<meta name='author' content='Ilyich the Toad'>
<meta name='description' content='POVRay thread: Linen and Stitch'>
<meta name='keywords' content='Python, POVRay, thread, textile, cross-stitch, canvas, linen, tabby, weave, gros-de-Naples, taffeta, embroidery'>
<link rel='stylesheet' href='toc.css' type='text/css'>
<link rel='stylesheet' href='content.css' type='text/css'>
<title>POVRay Thread: Linen and Stitch. Textile and embroidery simulation.</title>
</head>
<body>
<div class='leftarea'> <!-- Nav holder begin -->
<object data='toc.html' class='leftbar'></object>
</div>
<div class='content'> <!-- Content block begin -->
<h1 class='darkbg'>POVRay Thread: Linen and Stitch</h1>
<h2 class='lightbg'>Converting 2D image into canvas and cross-stitch 3D simulation</h2>
<div class='lightbg justborder'>
<p>POVRay Thread, a bastardly offspring of <a href='povzaika.html'>POVRay Mosaic</a> project is a set of programs, which read pixels of source image and convert them into a complex 3D structure, simulating something textile and thread related, in <a href='https://www.povray.org/'>POV-Ray</a> format.</p>
<p>POVRay Thread programs are <a href='https://github.com/Dnyarri/POVthread' class='git'>freely available at GitHub</a>.</p>
</div>
<div class='lightbg justborder cols512'>
<div class='center' style='break-inside: avoid; margin: 0pt; padding: 0pt;'>
<h3>Linen...</h3>
<img src='thread/linen24x512.png' width='512' height='384'>
<p class='small center'>linen output rendering example</p>
</div>
<p>«Linen» is a program for simulating most common <a href='https://en.m.wikipedia.org/wiki/Plain_weave'>plain weave</a>, seen in many cotton, wool, and practically all linen fabrics. Elemental nodes of linen output are colored after source image pixels, producing colored taffeta or print on canvas look.</p>
<p>Resulting POVRay files are easy to edit, globally changing thread finish (dull/shiny) and texture (normal vectors) to simulate wide range of threads, from single strand plastic to multistrand natural fibers.</p>
<div class='center' style='break-inside: avoid; margin: 0pt; padding: 0pt'>
<h3>...and Stitch</h3>
<img src='thread/stitch24x512.png' width='512' height='384'>
<p class='small center'>stitch output rendering example</p>
</div>
<p>«Stitch» is a program for simulating most common <a href='https://en.wikipedia.org/wiki/Cross-stitch'>cross-stitching</a> embroidery type, i.e. a cross stitch. Each of 3D stitches produced by program is colored after source image pixel. Stitch pattern may be distorted during rendering, turning too regular artificial appearance into something more natural. Distortion is based on structured Perlin noise pattern.</p>
</div>
<div class='lightbg justborder'>
<p>Currently both POVRay Thread programs use one primitive to simulate main object, but this, as any other export settings, may be overwritten. The easiest way to do so is using external "preset.inc" patch files which, upon importing into main scene file, will override all previous settings.</p>
<div class='center'>
<img src='thread/linen24x1024_1_strand.png' width='1024'>
<p class='small center'>example of rendering using include file with isosurface main object</p>
</div>
</div>
<div class='lightbg justborder cols512'>
<h3>Accessory: Adaptive color averager</h3>
<p>In cross stitching, single thread is often used to produce several stitches in a row, producing flat single color areas. To help with color reduction for this, a small color reduction utility «Averager» is included into the package.</p>
<p>Unlike regular color reduction utilities, like ones used to create GIF files, «Averager» does not build common palette for the whole image but rather tries to find, isolate, and flatten smooth areas based on local contrast, that is closer to idea of using single thread for the area.</p>
<p>«Averager» is an accessory since it does not produce POV files - it loads PNG file, filters image, and saves filtered image as PNG.</p>
<p>To simplify visual filtering adjustments, «Averager» is equipped with minimal yet suitable GUI.</p>
<p><img src='thread/ave.png' width='479' height='437'></p>
</div>
<p class='lightbg justborder'>Now it's time to <a href='https://github.com/Dnyarri/POVthread' class='git'>download POVRay Thread from GitHub</a> and start building your own textile scenes.</p>
<br>
<p class='right'><span class='lightbg justborder'>...or Move back to <a href='https://dnyarri.github.io'>main page</a>.</span></p>
</div> <!-- Content block end -->
</body>
</html>