forked from samrolfes/teengirl.jointhestudio.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_copy.html
362 lines (302 loc) · 12.7 KB
/
index_copy.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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<!DOCTYPE html>
<html lang="en">
<head>
<!-- .
. _/_ ____ ___ .___ ___ , _ / , . ___
\ | ( .' ` / \ .' ` | | | | ` / `
| | `--. | | ' |----' ` ^ ' | | | |
/` | \__/ \___.' `._.' / `.___, \/ \/ , `---|. `.__/|
\___/` / \___/
,__ /
/ ` , . _ .- |
|__ | | \,' | Come out and hang on the 26th!
| | | /\ | ❤❤❤ Sam
| `._/| / \ `
/ '
-->
<meta charset="UTF-8"" />
<title>TEENGIRL❤VISUALS❤MORE❤JUN26</title>
<meta charset="utf-8" />
<meta property="og:image"content="images/tgfthumb.jpg" />
<meta content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" name="viewport" />
<style type="text/css">body {
background-color: #090cdf;
margin: 0px;
overflow: hidden;
}
#top {
position: absolute;
top: 0px; width: 100%;
text-align:center;
}
#under {
position: absolute;
top: 0px; width: 100%;
text-align:center;
}
#info {
position: absolute;
position: absolute;
top: -4vw;
right: 2vw;
color: #ffffff;
font-family:Verdana;
font-size:30px; font-size: 1.5vw;
text-shadow: 2px 2px #0000FF;
transform: rotate(-45deg)
translateY(100px)
translateX(-100px)
}
#sub {
position: fixed;
bottom: 1vw;
left: 1vw;
color: #ffffff;
font-family:Verdana;
font-size:30px; font-size: 1vw;
transform: rotate(45deg)
translateY(0vw)
translateX(-2vw)
}
</style>
<style>
a:link {color:#ffffff; background-color:transparent; text-decoration:none}
a:visited {color:#ffffff; background-color:transparent; text-decoration:none}
a:hover {color:#ffffff; background-color:transparent; text-decoration:underline}
</style>
</head>
<body>
<div id="container"></div>
<div id="thumb"><img src="images/tgfthumb.jpg" /></div>
<div id="sub"> Site by Sam Rolfes <br>x Join The Studio</div>
<div id="info">
<a href="http://teengirlkimler.brownpapertickets.com/"><h1 style="color: #FF3399; font-weight: bold; font-size: 4vw;text-shadow: 2px 2px #ffffff;">ŤẸẸŇĞĮŘĹ<br>ƑÃŇŤÃŜЎ •._.·°¯))؟•</h1></a>
<h2 style="font-size: 1vw; text-shadow: 1px 1px #FF3399;color: #0000FF;">June 26th @ Wesley Kimler Studio</h2>
<br>w/<br>
<a href="https://soundcloud.com/starfoxxxsounds">Starfoxxx (FeelTrip)</a><br>
<a href="https://soundcloud.com/gel-set">Gel Set</a><br>
<a href="https://soundcloud.com/hawaiiangardens">Hawaiian Gardens</a><br>
<br>
Visuals:<br>
<a href="http://jonsatrom.com/">Jon Satrom</a><br>
<a href="http://www.samrolfes.com">Sam Rolfes</a><br>
<a href="https://www.youtube.com/watch?v=Wzf8rbZWg-I">Sophos Visuals</a><br>
<a href="http://www.heywolinsky.com/">Eric Wolinsky</a><br>
<a href="http://yaloopop.com/">Yaloopop</a><br>
<div id="sinfo">
<!-- <div align="center" id="top"><img src="http://wesleykimlerstudio.com/EXPO/partyy3.gif" /></div>
<div align="center" id="under"><img src="http://wesleykimlerstudio.com/EXPO/EXPO2_800_3.gif" /></div> -->
<script src="http://threejs.org/build/three.js"></script>
<script src="http://threejs.org/examples/js/loaders/OBJLoader.js"></script>
<script>
var camera, scene, renderer;
var particles, i, h, color, sprite, size;
//new:
var directionalLight, directionalLight2, pointLight, ambientLight, spotLight;
var isUserInteracting = false,
onMouseDownMouseX = 0, onMouseDownMouseY = 0,
lon = 0, onMouseDownLon = 0,
lat = 0, onMouseDownLat = 0,
phi = 0, theta = 0;
init();
animate();
function init() {
var container, mesh;
container = document.getElementById( 'container' );
camera = new THREE.PerspectiveCamera( 85, window.innerWidth / window.innerHeight, 1, 1100 );
camera.target = new THREE.Vector3( 0, 0, 0 );
scene = new THREE.Scene();
// LIGHTS......?
var directionalLight = new THREE.DirectionalLight( 0xffffff, 2 );
directionalLight.position.set( 0, 0, 0 );
scene.add( directionalLight );
pointLight = new THREE.PointLight( 0xffffff, 1, 800 );
pointLight.color.setHSL( 0.05, 1, 0.95 );
pointLight.position.set( 0, 0, 600 );
scene.add( pointLight );
directionalLight2 = new THREE.DirectionalLight( 0xD6EBFF,.8 );
directionalLight2.position.set( 1, -0.5, -1 );
directionalLight2.color.setHSL( 0.08, 1, 0.825 );
scene.add( directionalLight2 );
var flashlight = new THREE.SpotLight(0xffffff,4,40);
camera.add(flashlight);
flashlight.position.set(0,0,.5);
flashlight.target = camera;
var hemisphereLight = new THREE.HemisphereLight(0x66FFFF,0xFF00FF,2)
//sprite
var spriteGeometry = new THREE.Geometry();
sprite = THREE.ImageUtils.loadTexture( "images/tgf2.png" );
for ( i = 0; i < 2000; i ++ ) {
var vertex = new THREE.Vector3();
vertex.x = 2000 * Math.random() - 1000;
vertex.y = 2000 * Math.random() - 1000;
vertex.z = 2000 * Math.random() - 1000;
spriteGeometry.vertices.push( vertex );
}
spriteMaterial = new THREE.PointCloudMaterial( {
size: 75,
sizeAttenuation: false,
map: sprite,
alphaTest: 0.5,
transparent: true
} );
spriteMaterial.color.setHSL( 1.0, 0.3, 0.7 );
particles = new THREE.PointCloud( spriteGeometry, spriteMaterial );
scene.add( particles );
//panorama sphere
var geometry = new THREE.SphereGeometry( 500, 60, 40 );
geometry.applyMatrix( new THREE.Matrix4().makeScale( -1, 1, 1 ) );
var material = new THREE.MeshBasicMaterial( {
map: THREE.ImageUtils.loadTexture( 'images/PANOscreen3.jpg' )
} );
mesh = new THREE.Mesh( geometry, material );
mesh.rotation.y = 15
scene.add( mesh );
//Teengirl obj texture
var manager = new THREE.LoadingManager();
manager.onProgress = function ( item, loaded, total ) {
console.log( item, loaded, total );
};
//normal map
var mapHeight = THREE.ImageUtils.loadTexture( "images/teengirlSkin_ZSphere_2-NM_u0_v2.jpg" );
mapHeight.anisotropy = 4;
mapHeight.repeat.set( 0.998, 0.998 );
mapHeight.offset.set( 0.001, 0.001 )
mapHeight.wrapS = mapHeight.wrapT = THREE.RepeatWrapping;
mapHeight.format = THREE.RGBFormat;
//
var texture = new THREE.Texture();
var onProgress = function ( xhr ) {
if ( xhr.lengthComputable ) {
var percentComplete = xhr.loaded / xhr.total * 100;
console.log( Math.round(percentComplete, 2) + '% downloaded' );
}
};
var onError = function ( xhr ) {
};
// Teengirl obj model
var loader = new THREE.OBJLoader( manager );
loader.load( 'objects/teengirl3.OBJ', function ( object ) {
var loader = new THREE.ImageLoader( manager );
loader.load( 'images/teengirl3.jpg', function ( image ) {
texture.image = image;
texture.needsUpdate = true;
} );
object.traverse( function ( child ) {
if ( child instanceof THREE.Mesh ) {
console.log(child.material);
//var m = child.material;
//console.log('1', JSON.stringify(m));
child.material = new THREE.MeshPhongMaterial( {
color: 0xFFFFFF,
specular: 0xFFDAFF,
shininess: 100,
map: texture,
normalMap: mapHeight,
wrapRGB: new THREE.Vector3( 0.575, 0.5, 0.5 ),
wrapAround: true
} );
//child.material.map = texture;
//child.material.normalMap = normal;
}
});
object.position.y = 20;
object.scale.set(52,52,52)
object.rotation.y = -40
scene.add( object );
var light = new THREE.AmbientLight( 0xFFFFFF ); // full white light
scene.add( light );
}, onProgress, onError );
//
//renderer
renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
document.addEventListener( 'mousedown', onDocumentMouseDown, false );
document.addEventListener( 'mousemove', onDocumentMouseMove, false );
document.addEventListener( 'mouseup', onDocumentMouseUp, false );
document.addEventListener( 'mousewheel', onDocumentMouseWheel, false );
document.addEventListener( 'DOMMouseScroll', onDocumentMouseWheel, false);
//
document.addEventListener( 'dragover', function ( event ) {
event.preventDefault();
event.dataTransfer.dropEffect = 'copy';
}, false );
document.addEventListener( 'dragenter', function ( event ) {
document.body.style.opacity = 0.5;
}, false );
document.addEventListener( 'dragleave', function ( event ) {
document.body.style.opacity = 1;
}, false );
document.addEventListener( 'drop', function ( event ) {
event.preventDefault();
var reader = new FileReader();
reader.addEventListener( 'load', function ( event ) {
material.map.image.src = event.target.result;
material.map.needsUpdate = true;
}, false );
reader.readAsDataURL( event.dataTransfer.files[ 0 ] );
document.body.style.opacity = 1;
}, false );
//
window.addEventListener( 'resize', onWindowResize, false );
}
function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize( window.innerWidth, window.innerHeight );
}
function onDocumentMouseDown( event ) {
event.preventDefault();
isUserInteracting = true;
onPointerDownPointerX = event.clientX;
onPointerDownPointerY = event.clientY;
onPointerDownLon = lon;
onPointerDownLat = lat;
}
function onDocumentMouseMove( event ) {
if ( isUserInteracting === true ) {
lon = ( onPointerDownPointerX - event.clientX ) * 0.1 + onPointerDownLon;
lat = ( event.clientY - onPointerDownPointerY ) * 0.1 + onPointerDownLat;
}
}
function onDocumentMouseUp( event ) {
isUserInteracting = false;
}
function onDocumentMouseWheel( event ) {
// WebKit
if ( event.wheelDeltaY ) {
camera.fov -= event.wheelDeltaY * 0.05;
// Opera / Explorer 9
} else if ( event.wheelDelta ) {
camera.fov -= event.wheelDelta * 0.05;
// Firefox
} else if ( event.detail ) {
camera.fov += event.detail * 1.0;
}
camera.updateProjectionMatrix();
}
function animate() {
requestAnimationFrame( animate );
update();
}
function update() {
if ( isUserInteracting === false ) {
lon += 0.1;
}
lat = Math.max( - 85, Math.min( 85, lat ) );
phi = THREE.Math.degToRad( 90 - lat );
theta = THREE.Math.degToRad( lon );
var time = Date.now() * 0.00005;
camera.target.x = 500 * Math.sin( phi ) * Math.cos( theta );
camera.target.y = 500 * Math.cos( phi );
camera.target.z = 500 * Math.sin( phi ) * Math.sin( theta );
camera.lookAt( camera.target );
// distortion
camera.position.copy( camera.target ).negate();
h = ( 360 * ( 2.0 + time ) % 360 ) / 360;
spriteMaterial.color.setHSL( h, 0.7, 0.7 );
renderer.render( scene, camera );
}
</script></body>
</html>