Data city: Sykes tower, Vegas Sphere, Mr. T tower with chains; data in/out of every window, horizontal between, spherical at Sphere
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>GHOST · Schema Jump · SAND · Mr. T · Sphere</title><script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160/examples/jsm/"}}</script><style>html,body{margin:0;height:100%;background:#05070d;color:#cfe;font-family:-apple-system,Helvetica,sans-serif;overflow:hidden}#hud{position:fixed;top:12px;left:12px;z-index:2;max-width:360px}#hud h1{margin:0 0 6px;font-size:20px;letter-spacing:2px}#hud a{display:block;color:#cfe;text-decoration:none;padding:6px 10px;margin:4px 0;border-left:4px solid;background:#0b1220cc}#clock{position:fixed;bottom:12px;left:12px;font-size:28px;color:#ff4fa3;letter-spacing:2px;z-index:2}canvas{display:block}</style></head><body><div id="hud"><h1>GHOST STACK</h1><a style="border-color:#2ec4ff" href="https://huggingface.co/spaces/autobahn247365/sand-hub">▲ SAND · rides on top</a><a style="border-color:#ffb000" href="https://huggingface.co/spaces/autobahn247365/sand-jump">↕ SCHEMA JUMP · the vertical, through the Sphere</a><a style="border-color:#c070ff" href="https://huggingface.co/spaces/autobahn247365/ghost">◯ THE SPHERE · free global show · Derailleur Dance</a><a style="border-color:#888" href="https://huggingface.co/spaces/autobahn247365/ghost">▼ GHOST · the floor · disassociation</a><a style="border-color:#00ff88" href="https://huggingface.co/datasets/autobahn247365/mmr">◉ MMR · root</a></div><div id="clock">MR. T · <span id="t"></span></div><script type="module">import * as T from 'three';import {OrbitControls} from 'three/addons/controls/OrbitControls.js';const s=new T.Scene();s.fog=new T.FogExp2(0x05070d,.02);const c=new T.PerspectiveCamera(50,innerWidth/innerHeight,.1,500),r=new T.WebGLRenderer({antialias:true});r.setPixelRatio(devicePixelRatio);r.setSize(innerWidth,innerHeight);document.body.appendChild(r.domElement);c.position.set(20,15,24);const o=new OrbitControls(c,r.domElement);o.target.set(0,7,0);o.autoRotate=true;o.autoRotateSpeed=.8;o.enableDamping=true;s.add(new T.AmbientLight(0xffffff,.8));const L=new T.PointLight(0xffffff,400);L.position.set(0,22,10);s.add(L);const stars=new T.BufferGeometry(),sp=[];for(let i=0;i<3000;i++)sp.push((Math.random()-.5)*300,(Math.random()-.5)*300,(Math.random()-.5)*300);stars.setAttribute('position',new T.Float32BufferAttribute(sp,3));s.add(new T.Points(stars,new T.PointsMaterial({color:0x88aaff,size:.3})));const links=[],G='https://huggingface.co/spaces/autobahn247365/';function mat(col,op){return new T.MeshStandardMaterial({color:col,emissive:col,emissiveIntensity:.5,transparent:true,opacity:op,side:T.DoubleSide});}function add(m,url){m.userData.url=url;s.add(m);links.push(m);return m;}add(new T.Mesh(new T.BoxGeometry(14,.4,14),mat(0x888888,.25)),G+'ghost');s.add(new T.GridHelper(14,28,0x666666,0x333333));const ghosts=[];for(let i=0;i<160;i++){const p=add(new T.Mesh(new T.BoxGeometry(.5,.5,.5),mat(0xcccccc,.3)),G+'ghost');p.position.set((Math.random()-.5)*13,.6,(Math.random()-.5)*13);p.userData.f=Math.random()*6;ghosts.push(p);}const sph=add(new T.Mesh(new T.SphereGeometry(4.5,48,32),new T.MeshStandardMaterial({color:0xc070ff,emissive:0xc070ff,emissiveIntensity:.6,wireframe:true})),G+'ghost');sph.position.y=7;const core=new T.Mesh(new T.SphereGeometry(4.3,48,32),mat(0x5020a0,.15));core.position.y=7;s.add(core);add(new T.Mesh(new T.CylinderGeometry(1.1,1.1,13,32,1,true),mat(0xffb000,.45)),G+'sand-jump').position.y=6.5;const jumpers=[];for(let i=0;i<16;i++){const b=add(new T.Mesh(new T.BoxGeometry(.6,.6,.6),mat(0xffb000,1)),G+'sand-jump');b.userData.p=i/16;jumpers.push(b);}add(new T.Mesh(new T.BoxGeometry(14,.4,14),mat(0x2ec4ff,.5)),G+'sand-hub').position.y=13;const grains=[];for(let i=0;i<300;i++){const g=new T.Mesh(new T.BoxGeometry(.18,.18,.18),mat(0x9fe8ff,1));g.position.set((Math.random()-.5)*13,13.4+Math.random()*.6,(Math.random()-.5)*13);g.userData.f=Math.random()*6;s.add(g);grains.push(g);}const ring=new T.Mesh(new T.TorusGeometry(8,.15,8,120),mat(0xff4fa3,.9));ring.rotation.x=Math.PI/2;ring.position.y=7;s.add(ring);for(let i=0;i<12;i++){const k=new T.Mesh(new T.BoxGeometry(.3,.8,.3),mat(0xff4fa3,1));const a=i/12*Math.PI*2;k.position.set(Math.cos(a)*8,7,Math.sin(a)*8);s.add(k);}const hand=new T.Mesh(new T.BoxGeometry(7.5,.2,.2),mat(0xff4fa3,1));hand.position.y=7;s.add(hand);const ray=new T.Raycaster(),mv=new T.Vector2();addEventListener('click',e=>{if(e.target.tagName==='A')return;mv.set(e.clientX/innerWidth*2-1,-(e.clientY/innerHeight)*2+1);ray.setFromCamera(mv,c);const h=ray.intersectObjects(links)[0];if(h)open(h.object.userData.url,'_blank');});addEventListener('resize',()=>{c.aspect=innerWidth/innerHeight;c.updateProjectionMatrix();r.setSize(innerWidth,innerHeight);});let t=0;(function a(){requestAnimationFrame(a);t+=.01;ghosts.forEach(m=>m.material.opacity=.15+.3*Math.sin(t*2+m.userData.f));grains.forEach(g=>g.position.y=13.5+.3*Math.sin(t*3+g.userData.f));jumpers.forEach(b=>{const p=(b.userData.p+t*.15)%1;b.position.set(Math.cos(p*14)*1.6,p*13,Math.sin(p*14)*1.6);b.rotation.y=t*3;});sph.rotation.y+=.004;const d=new Date();const ang=-(d.getSeconds()/60)*Math.PI*2;hand.rotation.y=ang;hand.position.x=Math.cos(-ang)*3.75;hand.position.z=Math.sin(-ang)*3.75;document.getElementById('t').textContent=d.toLocaleTimeString();o.update();r.render(s,c);})();</script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>GHOST STACK · Data City</title><script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160/examples/jsm/"}}</script><style>html,body{margin:0;height:100%;background:#03050a;color:#cfe;font-family:-apple-system,Helvetica,sans-serif;overflow:hidden}#hud{position:fixed;top:12px;left:12px;z-index:2;max-width:340px}#hud h1{margin:0 0 6px;font-size:18px;letter-spacing:2px}#hud a{display:block;color:#cfe;text-decoration:none;padding:5px 9px;margin:3px 0;border-left:4px solid;background:#0b1220cc;font-size:13px}#clock{position:fixed;bottom:12px;left:12px;font-size:24px;color:#ff4fa3;z-index:2}canvas{display:block}</style></head><body><div id="hud"><h1>GHOST STACK · DATA CITY</h1><a style="border-color:#ffb000" href="https://huggingface.co/spaces/autobahn247365/sand-jump">▮ SYKES TOWER · Schema Jump</a><a style="border-color:#c070ff" href="https://huggingface.co/spaces/autobahn247365/ghost">◯ VEGAS SPHERE · the show</a><a style="border-color:#ff4fa3" href="https://huggingface.co/spaces/autobahn247365/ghost">⛓ MR. T · time · chains every floor</a><a style="border-color:#2ec4ff" href="https://huggingface.co/spaces/autobahn247365/sand-hub">▲ SAND · rides on top</a><a style="border-color:#888" href="https://huggingface.co/spaces/autobahn247365/ghost">▼ GHOST · the floor</a><a style="border-color:#00ff88" href="https://huggingface.co/datasets/autobahn247365/mmr">◉ MMR · root</a></div><div id="clock">MR. T · <span id="t"></span></div><script type="module">import * as T from 'three';import {OrbitControls} from 'three/addons/controls/OrbitControls.js';const s=new T.Scene();s.fog=new T.FogExp2(0x03050a,.012);const c=new T.PerspectiveCamera(50,innerWidth/innerHeight,.1,800),r=new T.WebGLRenderer({antialias:true});r.setPixelRatio(devicePixelRatio);r.setSize(innerWidth,innerHeight);document.body.appendChild(r.domElement);c.position.set(46,28,52);const o=new OrbitControls(c,r.domElement);o.target.set(0,12,0);o.autoRotate=true;o.autoRotateSpeed=.5;o.enableDamping=true;s.add(new T.AmbientLight(0xffffff,.6));const L=new T.PointLight(0xffffff,1500);L.position.set(0,60,20);s.add(L);const sg=new T.BufferGeometry(),sp=[];for(let i=0;i<4000;i++)sp.push((Math.random()-.5)*600,(Math.random()-.5)*600,(Math.random()-.5)*600);sg.setAttribute('position',new T.Float32BufferAttribute(sp,3));s.add(new T.Points(sg,new T.PointsMaterial({color:0x88aaff,size:.4})));const M=(col,op=1,em=.5)=>new T.MeshStandardMaterial({color:col,emissive:col,emissiveIntensity:em,transparent:op<1,opacity:op});const links=[],HF='https://huggingface.co/spaces/autobahn247365/';const add=(m,u)=>{m.userData.url=u;s.add(m);links.push(m);return m;};const H=24;// GHOST flooradd(new T.Mesh(new T.BoxGeometry(70,.4,40),M(0x555555,.3,.2)),HF+'ghost');s.add(new T.GridHelper(70,70,0x444444,0x222222));// window grid helper: returns list of window world positionsconst windows=[];function addWindows(list){list.forEach(w=>windows.push(w));}// SYKES TOWER: gold cylinder with window ringsconst sykes=new T.Vector3(-22,0,0);add(new T.Mesh(new T.CylinderGeometry(4,4,H,40),M(0xffb000,.85,.35)),HF+'sand-jump').position.set(sykes.x,H/2,sykes.z);for(let f=1;f<H;f+=1.5)for(let k=0;k<16;k++){const a=k/16*Math.PI*2;const w=new T.Mesh(new T.BoxGeometry(.5,.6,.1),M(0xfff2b0,1,1.2));w.position.set(sykes.x+Math.cos(a)*4.05,f,sykes.z+Math.sin(a)*4.05);w.lookAt(sykes.x,f,sykes.z);s.add(w);windows.push({p:w.position.clone(),o:new T.Vector3(Math.cos(a),0,Math.sin(a)),b:'sykes'});}// VEGAS SPHERE: purple, same heightconst sph=new T.Vector3(0,H/2,0);const S=add(new T.Mesh(new T.SphereGeometry(H/2,64,48),M(0x7a2cff,.55,.5)),HF+'ghost');S.position.copy(sph);const SW=new T.Mesh(new T.SphereGeometry(H/2+.05,32,24),new T.MeshBasicMaterial({color:0xd8a0ff,wireframe:true,transparent:true,opacity:.35}));SW.position.copy(sph);s.add(SW);// MR. T TOWER: traditional tower, same height, chains every floorconst mrt=new T.Vector3(22,0,0);add(new T.Mesh(new T.BoxGeometry(7,H,7),M(0x2a0a1a,.95,.2)),HF+'ghost').position.set(mrt.x,H/2,mrt.z);for(let f=1;f<H;f+=1.5){for(let side=0;side<4;side++)for(let k=-2;k<=2;k++){const w=new T.Mesh(new T.BoxGeometry(.9,.7,.1),M(0xffc0e0,1,1.1));const n=[[0,1],[1,0],[0,-1],[-1,0]][side];w.position.set(mrt.x+n[0]*3.55+(n[1]?k*1.2:0),f,mrt.z+n[1]*3.55+(n[0]?k*1.2:0));w.lookAt(mrt.x+n[0]*10,f,mrt.z+n[1]*10);s.add(w);windows.push({p:w.position.clone(),o:new T.Vector3(n[0],0,n[1]),b:'mrt'});}// chain at every floor: links around the towerfor(let k=0;k<28;k++){const t=k/28,per=t*4,sd=Math.floor(per),u=per-sd;const C=[[-3.8,3.8],[3.8,3.8],[3.8,-3.8],[-3.8,-3.8]];const a=C[sd],b=C[(sd+1)%4];const lk=new T.Mesh(new T.TorusGeometry(.32,.09,6,12),M(0xffd700,1,.7));lk.position.set(mrt.x+a[0]+(b[0]-a[0])*u,f+.75,mrt.z+a[1]+(b[1]-a[1])*u);lk.rotation.y=sd%2?0:Math.PI/2;lk.rotation.x=k%2?Math.PI/2:0;s.add(lk);}}// SAND topfor(let i=0;i<500;i++){const g=new T.Mesh(new T.BoxGeometry(.25,.25,.25),M(0x9fe8ff,1,1));g.position.set((Math.random()-.5)*60,H+3+Math.random()*2,(Math.random()-.5)*30);g.userData.f=Math.random()*6;g.userData.sand=1;s.add(g);}add(new T.Mesh(new T.BoxGeometry(70,.3,40),M(0x2ec4ff,.25,.4)),HF+'sand-hub').position.y=H+2.5;// MR. T clock face on top of his towerconst ring=new T.Mesh(new T.TorusGeometry(3,.2,8,64),M(0xff4fa3,1,1));ring.position.set(mrt.x,H+1.2,mrt.z);ring.rotation.x=Math.PI/2;s.add(ring);const hand=new T.Mesh(new T.BoxGeometry(2.8,.15,.25),M(0xff4fa3,1,1.2));hand.position.set(mrt.x,H+1.2,mrt.z);s.add(hand);// DATA PACKETSconst COLS={sykes:0xffd060,sph:0xd080ff,mrt:0xff70c0,link:0x40e0ff};const pk=[];const geo=new T.BoxGeometry(.25,.25,.25);function packet(col){const m=new T.Mesh(geo,new T.MeshBasicMaterial({color:col}));s.add(m);return m;}// 1) in/out of every window (radial along window normal)for(let i=0;i<450;i++){const w=windows[Math.floor(Math.random()*windows.length)];const m=packet(COLS[w.b]);pk.push({m,type:'win',w,t:Math.random(),sp:.004+Math.random()*.006,dir:Math.random()<.5?1:-1});}// 2) Sphere: in and out at all angles (spherical)for(let i=0;i<350;i++){const d=new T.Vector3().randomDirection();const m=packet(COLS.sph);pk.push({m,type:'sph',d,t:Math.random(),sp:.003+Math.random()*.005,dir:Math.random()<.5?1:-1});}// 3) Horizontal passages between buildings, left to right and back, at floor heightsconst ends=[[sykes,sph],[sph,mrt],[sykes,mrt]];for(let i=0;i<300;i++){const e=ends[i%3];const y=1+Math.floor(Math.random()*15)*1.5;const m=packet(COLS.link);pk.push({m,type:'link',a:e[0],b:e[1],y,t:Math.random(),sp:.003+Math.random()*.004,dir:Math.random()<.5?1:-1,arc:e===ends[2]});}const ray=new T.Raycaster(),mv=new T.Vector2();addEventListener('click',e=>{if(e.target.tagName==='A')return;mv.set(e.clientX/innerWidth*2-1,-(e.clientY/innerHeight)*2+1);ray.setFromCamera(mv,c);const h=ray.intersectObjects(links)[0];if(h)open(h.object.userData.url,'_blank');});addEventListener('resize',()=>{c.aspect=innerWidth/innerHeight;c.updateProjectionMatrix();r.setSize(innerWidth,innerHeight);});let tt=0;(function a(){requestAnimationFrame(a);tt+=.01;pk.forEach(p=>{p.t+=p.sp;if(p.t>1)p.t-=1;const u=p.dir>0?p.t:1-p.t;if(p.type==='win'){p.m.position.copy(p.w.p).addScaledVector(p.w.o,u*14);}else if(p.type==='sph'){p.m.position.copy(sph).addScaledVector(p.d,H/2+u*22);}else{const x=p.a.x+(p.b.x-p.a.x)*u,z=p.a.z+(p.b.z-p.a.z)*u+(p.arc?Math.sin(u*Math.PI)*-14:0);p.m.position.set(x,p.y,z);}});s.children.forEach(m=>{if(m.userData.sand)m.position.y+=Math.sin(tt*3+m.userData.f)*.01;});S.rotation.y+=.003;SW.rotation.y-=.002;const d=new Date();hand.rotation.y=-(d.getSeconds()/60)*Math.PI*2;document.getElementById('t').textContent=d.toLocaleTimeString();o.update();r.render(s,c);})();</script></body></html>
index.html+75-39