forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webgl_geometry_extrude_uvs2.html
196 lines (160 loc) · 13.4 KB
/
webgl_geometry_extrude_uvs2.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
<!DOCTYPE html>
<html lang="en" id="html-el">
<head>
<title>three.js webgl - UV mapped ExtrudeGeometry</title>
<script type="text/javascript" src="../build/Three.js"></script>
<script type="text/javascript" src="js/UVsUtils.js"></script>
<script type="text/javascript">
(function(){
'use strict';
var tex;
var testShape;
var holeShape;
var testMesh = null;
var WIDTH = 640;
var HEIGHT = 480;
var targetCanvas;
var uvGenerator;
var scene, renderer, camera;
var rX = 0;
var rY = 0;
window.launch = function() {
camera = new THREE.PerspectiveCamera(30, WIDTH / HEIGHT);
camera.position.z = 20;
scene = new THREE.Scene();
/** Custom UV mapper **/
uvGenerator = new THREE.UVsUtils.CylinderUVGenerator();
testShape = setupShape(8, 3);
holeShape = setupShape(8, 2);
testShape.holes.push(holeShape);
tex = setupTexture(TestTextureData);
renewMesh();
renderer = new THREE.WebGLRenderer();
renderer.setSize(WIDTH, HEIGHT);
// show canvas
targetCanvas = renderer.domElement;
targetCanvas.width = WIDTH;
targetCanvas.height = HEIGHT;
document.getElementById('canvas-container').appendChild(targetCanvas);
setupAnimation();
render();
};
function setupAnimation(n) {
new AnimationController(
document.getElementById('html-el'),
function(x, y) {
rX = x;
rY = y;
render();
});
}
function updateRotation() {
rX = (rX + 3600) % 360;
rY = (rY + 3600) % 360;
var torad = Math.PI / 180.0;
testMesh.rotation.set(rY *torad, 0, rX *torad);
}
function render() {
if (testMesh) {
var rx = pickRepeatSetting();
if (uvGenerator.uRepeat != rx) {
uvGenerator.uRepeat = rx;
renewMesh();
}
updateRotation();
renderer.render( scene, camera );
}
}
function pickRepeatSetting() {
var radios = document.getElementById('repeat-setting').repeat;
for (var i = 0;i < 3;i++) {
if (radios[i].checked) { return radios[i].value - 0; }
}
return 1;
}
function setupShape(n, r) {
// Make shape
var sh = new THREE.Shape();
for (var i = 0; i < n;i++) {
var method = i ? 'lineTo' : 'moveTo';
var a = (i/n) * Math.PI * 2;
var x = Math.cos(a) * r;
var y = Math.sin(a) * r;
sh[method](x, y);
}
return sh;
}
function setupGeometry(shape) {
// Make extruded geometory
var exoption = {
bevelEnabled: true,
bevelSize: 1,
amount: 3,
extrudeMaterial: 0,
material: 1,
uvGenerator: uvGenerator
};
var geom = shape.extrude(exoption);
return geom;
}
function setupTexture(dat) {
var img = new Image();
var t = new THREE.Texture(img);
t.wrapS = THREE.RepeatWrapping;
img.onload = function() {
t.needsUpdate = true;
render();
};
img.src = dat;
return t;
}
function setupMesh(geom, side_texture) {
var mesh = new THREE.Mesh(geom, new THREE.MeshFaceMaterial());
// Set multi materials
geom.materials =
[
new THREE.MeshBasicMaterial( { map: side_texture } ),
new THREE.MeshBasicMaterial( { color: 0x447766 } )
];
scene.add(mesh);
return mesh;
}
function renewMesh() {
if (testMesh) {
scene.remove(testMesh);
}
testMesh = setupMesh( setupGeometry(testShape) , tex);
testMesh.position.set(0, 0, -30);
}
function AnimationController(target, callback) {
var _this = this;
this.callback = callback;
target.addEventListener('mousemove', function(e) {
_this.onMouseMove(e);
}, false);
}
AnimationController.prototype = {
onMouseMove: function(e) {
this.callback(e.clientX, e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MoDo3354qThXugvkJy82v6ur/gObL3ZwXZJgCf40xjyv9x/AKNQ/4MaS1aGbftKDFsZYhWQyeP/F+zT+9zfO887uZnYD2MSPf54ksMOgsrTUDQAH7FtnjItnf01U/4Fnr2dhEgw2X7z/PO0/8P6LqrqB2bcvk/949tM7/QfcpYF1Mk5OvuKPsUGTXjRNHnyW+EmfbuB5qbpjfrw0dqubZ8u9yezoy9eT2eOfJrQEA7bEBqwytrUsGbfOgITfXlyo/gNfvj56lMTiV+cnX6f9B6CfpVEd9afjycs3z15NvWv9B9JdUD7/5Hnty4u9wwQ3l/zpt4CRv94/gRF+xW6cGcvzInv/xcmrB3uf/yF5sJf8gBsYJT13uXVyztg3Nq66dWZxaOVnNbVvkwefX0gJw7mX9h/YfG6dvGB7Lz9/sPfpT4QD1/oPKCM0N7/7YFn7gnDAC2fYrMmMtuGLDdqGZ8YnCgl/TUsg8eYFrTC+oLyP1R7CVUoDi+SHtP8ALvw5FMZymfUf2Hzh/pqW4Eu88R/4mJ+v9x9Qu+Dkq42T33svkx+TrpR/wC8pXl588j3/6GR5/hFvfQNfUG/9Jbn4i/zDy4sfoSTpJwFfOi3cwe9hQMvffO9yb/Hyx7T/wLfJBfUfODnPCnp/8z3HlRd/gQlAM/iY/6H+A4uXwT+2/8DRxT+4/8CXP/+D+w+8/HHVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf2DVf+D/V/+B/wT15JbOMyhx1QAAAABJRU5ErkJggg==';
})();
</script>
</head>
<body onload="void launch()">
<div>
<form id="repeat-setting">
U repeat:
<label><input type="radio" value="1" name="repeat" checked="checked">1x</label>
<label><input type="radio" value="2" name="repeat">2x</label>
<label><input type="radio" value="3" name="repeat">3x</label>
</form>
</div>
<div id="canvas-container"></div>
</body>
</html>