/
index.html
339 lines (331 loc) · 11.8 KB
/
index.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Google Web Designer 14.0.4.1108">
<meta name="template" content="Banner 3.0.0">
<meta name="environment" content="gwd-dv360">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="gwdpage_style.css" rel="stylesheet" data-version="13" data-exports-type="gwd-page">
<link href="gwdpagedeck_style.css" rel="stylesheet" data-version="14" data-exports-type="gwd-pagedeck">
<link href="gwdgooglead_style.css" rel="stylesheet" data-version="8" data-exports-type="gwd-google-ad">
<link href="gwdimage_style.css" rel="stylesheet" data-version="16" data-exports-type="gwd-image">
<style type="text/css" id="gwd-lightbox-style">
.gwd-lightbox {
overflow: hidden;
}
</style>
<style type="text/css" id="gwd-text-style">
p {
margin: 0px;
font-family: "Source Code Pro";
font-size: 24px;
font-weight: normal;
}
h1 {
margin: 0px;
}
h2 {
margin: 0px;
}
h3 {
margin: 0px;
}
</style>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0px;
}
.gwd-page-container {
position: relative;
width: 100%;
height: 100%;
}
.gwd-page-content {
background-color: transparent;
transform: perspective(1400px) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
transform-style: preserve-3d;
position: absolute;
}
.gwd-page-wrapper {
background-color: rgb(255, 255, 255);
position: absolute;
transform: translateZ(0px);
}
.gwd-page-size {
width: 1080px;
height: 3000px;
}
.gwd-span-alen {
position: absolute;
top: 40px;
width: 890.667px;
height: 93.3333px;
left: 95px;
font-family: "Source Code Pro";
text-align: center;
font-size: 38px;
font-weight: 900;
}
.gwd-span-jl2s {
position: absolute;
top: 133px;
width: 793px;
transform-origin: 50% 50% 0px;
left: 144px;
font-weight: 500;
font-style: italic;
height: 62px;
font-size: 26px;
text-align: center;
}
.gwd-p-1b73 {
position: absolute;
text-align: left;
height: 38px;
transform-origin: 50% 50% 0px;
font-size: 30px;
font-style: normal;
font-weight: bold;
width: 891px;
left: 95px;
top: 214px;
}
.gwd-p-1xo2 {
position: absolute;
font-style: normal;
text-align: left;
font-weight: normal;
transform-origin: 50% 50% 0px;
font-size: 24px;
height: 853px;
top: 252px;
left: 95px;
width: 891px;
}
.gwd-image-1pii {
position: absolute;
transform-origin: 50% 50% 0px;
left: 624px;
width: 361px;
height: 689px;
top: 1378px;
}
.gwd-image-yahx {
position: absolute;
transform-origin: 50% 50% 0px;
left: 95px;
width: 516px;
height: 689px;
top: 1378px;
}
.gwd-span-1t9g {
position: absolute;
left: 95px;
top: 1997px;
width: 890px;
text-align: left;
height: 62px;
transform-origin: 50% 50% 0px;
font-weight: normal;
font-style: normal;
}
.gwd-img-1eax {
position: absolute;
transform-origin: 50% 50% 0px;
width: 1080px;
height: 342px;
left: 0px;
top: 2173px;
}
.gwd-p-1o39 {
width: 939px;
left: 70px;
top: 2432px;
}
.gwd-p-ej3i {
font-size: 24px;
font-weight: 500;
top: 1316px;
}
.gwd-span-pmh7 {
position: absolute;
width: 890px;
transform-origin: 50% 50% 0px;
text-align: left;
font-weight: normal;
height: 38px;
left: 70px;
top: 1134px;
}
.gwd-span-1sro {
font-style: normal;
font-weight: bold;
font-size: 32px;
}
.gwd-p-ivt3 {
position: absolute;
left: 70px;
width: 207.333px;
height: 38px;
top: 1188px;
}
.gwd-p-k60m {
position: absolute;
height: 38px;
transform-origin: 50% 50% 0px;
width: 288px;
left: 307px;
top: 1188px;
}
.gwd-p-1ed2 {
position: absolute;
height: 38px;
width: 337px;
transform-origin: 50% 50% 0px;
left: 681px;
top: 1188px;
}
.gwd-image-8n4i {
position: absolute;
width: 50px;
height: 50px;
transform-origin: 50% 50% 0px;
left: 624px;
top: 1176px;
}
.gwd-image-r2wf {
position: absolute;
transform-origin: 50% 50% 0px;
left: 503px;
width: 507px;
height: 292px;
top: 2621px;
}
.gwd-image-1d2b {
position: absolute;
transform-origin: 50% 50% 0px;
left: 70px;
width: 427px;
height: 292px;
top: 2621px;
}
.gwd-span-6xsp {
position: absolute;
left: 70px;
transform-origin: 50% 50% 0px;
width: 427px;
font-size: 20px;
font-family: "Source Code Pro";
height: 50px;
top: 2621px;
}
.gwd-span-1f6u {
position: absolute;
height: 50px;
font-family: "Source Code Pro";
font-size: 20px;
transform-origin: 50% 50% 0px;
left: 649px;
width: 361px;
top: 2621px;
}
.gwd-p-1mjm {
height: 38px;
text-align: center;
font-weight: 600;
top: 2583px;
}
.gwd-p-ozb1 {
font-size: 24px;
font-weight: 500;
top: 2135px;
height: 38px;
}
.gwd-p-bs86 {
top: 1276px;
font-size: 32px;
font-weight: 700;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic" rel="stylesheet" type="text/css">
<script data-source="googbase_min.js" data-version="4" data-exports-type="googbase" src="googbase_min.js"></script>
<script data-source="gwd_webcomponents_v1_min.js" data-version="2" data-exports-type="gwd_webcomponents_v1" src="gwd_webcomponents_v1_min.js"></script>
<script data-source="gwdpage_min.js" data-version="13" data-exports-type="gwd-page" src="gwdpage_min.js"></script>
<script data-source="gwdpagedeck_min.js" data-version="14" data-exports-type="gwd-pagedeck" src="gwdpagedeck_min.js"></script>
<script data-source="https://s0.2mdn.net/ads/studio/Enabler.js" data-exports-type="gwd-google-ad" src="https://s0.2mdn.net/ads/studio/Enabler.js"></script>
<script data-source="gwdgooglead_min.js" data-version="8" data-exports-type="gwd-google-ad" src="gwdgooglead_min.js"></script>
<script data-source="gwdimage_min.js" data-version="16" data-exports-type="gwd-image" src="gwdimage_min.js"></script>
</head>
<body>
<gwd-google-ad id="gwd-ad" polite-load="">
<gwd-metric-configuration></gwd-metric-configuration>
<gwd-pagedeck class="gwd-page-container" id="pagedeck">
<gwd-page id="page1" class="gwd-page-wrapper gwd-page-size gwd-lightbox" data-gwd-width="1080px" data-gwd-height="3000px">
<div class="gwd-page-content gwd-page-size">
<h1 class="gwd-span-alen">GPU-Driven Real-Time <br>Mesh Contour Vectorization</h1>
<p class="gwd-span-jl2s"><a href="https://jiangwzw.github.io/">Wangziwei Jiang</a>,<br>
Guiqing Li, Yongwei Nie, Chuhua Xian</p>
<p class="gwd-p-1b73">Abstract</p>
<p class="gwd-p-1xo2">Rendering contours of 3D meshes has a wide range of applications.<br>
<br>
Previous CPU-based contour rendering algorithms support advanced stylized effects but cannot achieve realtime performance.<br>
On the other hand, real-time algorithms based on GPU have to sacrifice some advanced stylization effects due to the difficulty of linking contour elements into stroke curves.<br>
<br>
This paper proposes a GPU-based mesh contour rendering method which includes the following steps: (1) before rendering, a preprocessing step analyzes the adjacency and geometric information from the 3d mesh model; (2) at runtime, an extraction stage firstly selects contour edges from the 3D mesh model, then the parallelized Bresenham algorithm rasterizes the contour edges into a set of oriented contour pixels; (3) next, Potrace is parallelized to extract (pixel) edge loops from the contour pixels; (4) subsequently, a novel segmentation procedure is designed to partition the edge loops into strokes; (5) finally, these strokes are then converted into 2D strip meshes in order to support rendering with controllable styles.<br>
<br>
Except the preprocessing step, all other procedures are implemented in parallel on a GPU. This enables our framework to achieve real-time performance for high-resolution rendering of dense mesh models. </p>
<gwd-image id="Lucy_Strokes" source="assets/Lucy Strokes.png" scaling="stretch" class="gwd-image-1pii"></gwd-image>
<gwd-image id="Castle_Strokes" source="assets/Castle Strokes.png" scaling="stretch" class="gwd-image-yahx"></gwd-image>
<p class="gwd-span-1t9g gwd-p-ej3i">Extracted curves from 3D mesh.<br>
Curves are rendered with different colors.</p>
<p class="gwd-span-1t9g gwd-p-1o39 gwd-p-ozb1">Time per frame. Our method achieves superior performance. </p>
<p class="gwd-span-1t9g gwd-p-1o39 gwd-p-1mjm">Two simple examples of contour stylization</p>
<gwd-image source="assets/image_1.png" class="gwd-img-1eax" id="image_1"></gwd-image>
<p class="gwd-span-pmh7"><span class="gwd-span-1sro">Resources</span></p>
<p class="gwd-span-pmh7 gwd-p-bs86">Images</p>
<p class="gwd-p-ivt3"><a href="https://jiangwzw.github.io/Realtime-GPU-Contour-Curves-from-3D-Mesh/assets/GPUCV_EGSR2022.pdf">Paper</a>(PDF)</p>
<p class="gwd-p-k60m"><a href="https://www.bilibili.com/video/BV1SW4y1U7Th?share_source=copy_web">Presentation</a>(14 min)</p>
<p class="gwd-p-1ed2"><a href="https://github.com/JiangWZW/Realtime-GPU-Contour-Curves-from-3D-Mesh">Uinty project on Github</a></p>
<gwd-image id="GitHub-Mark-120px-plus" source="assets/GitHub-Mark-120px-plus.png" scaling="stretch" class="gwd-image-8n4i"></gwd-image>
<gwd-image id="Stamping" source="assets/Stamping.png" scaling="stretch" class="gwd-image-1d2b"></gwd-image>
<gwd-image id="Texture_Mapping" source="assets/Texture Mapping.jpg" scaling="stretch" class="gwd-image-r2wf"></gwd-image><span class="gwd-span-6xsp">"Stamping" style, similar to Photoshop brush. </span><span class="gwd-span-1f6u">"Textured Path" style, <br>similar to Illustrator brush.</span></div>
</gwd-page>
</gwd-pagedeck>
</gwd-google-ad>
<script type="text/javascript" id="gwd-init-code">
(function() {
var gwdAd = document.getElementById('gwd-ad');
/**
* Handles the DOMContentLoaded event. The DOMContentLoaded event is
* fired when the document has been completely loaded and parsed.
*/
function handleDomContentLoaded(event) {
}
/**
* Handles the WebComponentsReady event. This event is fired when all
* custom elements have been registered and upgraded.
*/
function handleWebComponentsReady(event) {
// Start the Ad lifecycle.
setTimeout(function() {
gwdAd.initAd();
}, 0);
}
/**
* Handles the event that is dispatched after the Ad has been
* initialized and before the default page of the Ad is shown.
*/
function handleAdInitialized(event) {}
window.addEventListener('DOMContentLoaded',
handleDomContentLoaded, false);
window.addEventListener('WebComponentsReady',
handleWebComponentsReady, false);
window.addEventListener('adinitialized',
handleAdInitialized, false);
})();
</script>
</body>
</html>