Spaces:
Running
Running
Update ar.html
Browse files56 unmodified lines57585960616263164 unmodified lines2282292302312322332342352362372382394 unmodified lines2442452462472482492502512522532549 unmodified lines26426526626726826927020 unmodified lines29129229329429529656 unmodified linespadding: 0 !important;}.a-scene {position: fixed !important;top: 0 !important;left: 0 !important;164 unmodified lines<p class="text-white/60 text-xs mt-3 text-center">Il marker non è stato trovato. Usa questo player manuale.</p></div><!-- 5. AR SCENE - ULTRA STABILIZED --><!-- filterBeta: 500 = smoothing MASSIMO, missTolerance: 50 = mantiene lock per 1.5+ sec --><a-scenemindar-image="imageTargetSrc: img/targets.mind; filterMinCF:0.000001; filterBeta: 500; uiLoading: no; uiScanning: no; missTolerance: 50; warmupTolerance: 1"color-space="sRGB"renderer="colorManagement: true, physicallyCorrectLights, highRefreshRate: true"vr-mode-ui="enabled: false"device-orientation-permission-ui="enabled: false">4 unmodified lines<a-camera position="0 0 0" look-controls="enabled: false"></a-camera><a-entity id="example-target" mindar-image-target="targetIndex: 0"><!-- VIDEO 16:9 --><a-entity id="myVid"geometry="primitive: plane; width: 1.6; height: 0.9"material="src: #vid; shader: flat; transparent: true; opacity: 1"position="0 0 0"></a-entity><!-- Cornice Cyberpunk 16:9 -->9 unmodified lines<a-plane position="-0.77 0.41 0.01" width="0.15" height="0.03" color="white" material="shader: flat; opacity: 0.9"></a-plane><a-plane position="0.77 -0.41 0.01" width="0.15" height="0.03" color="white" material="shader: flat; opacity: 0.9"></a-plane><a-text value="HACK_THE_PLANET.exe" color="#00ff41" align="center" width="1.5" position="0 -0.6 0.01"font="https://cdn.aframe.io/fonts/Roboto-msdf.json"><a-animation attribute="opacity" from="0.3" to="1" dur="800" direction="alternate" repeat="indefinite"></a-animation></a-text>20 unmodified lineslet isAudioEnabled = false;let loadProgress = 0;// Easter Egg 1: Fake FPS CountersetInterval(() => {56 unmodified lines57585960616263164 unmodified lines2282292302312322332342352362372382394 unmodified lines2442452462472482492502512522532542559 unmodified lines26526626726826927027120 unmodified lines29229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432556 unmodified linespadding: 0 !important;}a-scene {position: fixed !important;top: 0 !important;left: 0 !important;164 unmodified lines<p class="text-white/60 text-xs mt-3 text-center">Il marker non è stato trovato. Usa questo player manuale.</p></div><!-- 5. AR SCENE - ULTRA MEGA STABILIZED (BEAST MODE) --><!-- filterBeta: 10000 = smoothing ESTREMO, missTolerance: 100 = 3+ sec di grace period --><a-scenemindar-image="imageTargetSrc: img/targets.mind; filterMinCF:0.0000001; filterBeta: 10000; uiLoading: no; uiScanning: no; missTolerance: 100; warmupTolerance: 1; maxTrack: 1"color-space="sRGB"renderer="colorManagement: true, physicallyCorrectLights, highRefreshRate: true, antialias: true"vr-mode-ui="enabled: false"device-orientation-permission-ui="enabled: false">4 unmodified lines<a-camera position="0 0 0" look-controls="enabled: false"></a-camera><a-entity id="example-target" mindar-image-target="targetIndex: 0"><!-- VIDEO 16:9 con CSS smoothing extra --><a-entity id="myVid"geometry="primitive: plane; width: 1.6; height: 0.9"material="src: #vid; shader: flat; transparent: true; opacity: 1"position="0 0 0"animation__smooth="property: position; dur: 200; easing: easeOutQuad; loop: false"></a-entity><!-- Cornice Cyberpunk 16:9 -->9 unmodified lines<a-plane position="-0.77 0.41 0.01" width="0.15" height="0.03" color="white" material="shader: flat; opacity: 0.9"></a-plane><a-plane position="0.77 -0.41 0.01" width="0.15" height="0.03" color="white" material="shader: flat; opacity: 0.9"></a-plane><a-text value="INNOVATION_LAB_DEV" color="#00ff41" align="center" width="1.5" position="0 -0.6 0.01"font="https://cdn.aframe.io/fonts/Roboto-msdf.json"><a-animation attribute="opacity" from="0.3" to="1" dur="800" direction="alternate" repeat="indefinite"></a-animation></a-text>20 unmodified lineslet isAudioEnabled = false;let loadProgress = 0;let smoothPositionX = 0;let smoothPositionY = 0;let smoothPositionZ = 0;const SMOOTHING_FACTOR = 0.5; // 5% update per frame = ultra smooth// CUSTOM SMOOTHING LAYER - Questo è il segreto!const myVidEntity = document.querySelector("#myVid");let lastPosition = {x: 0, y: 0, z: 0};// Applica smoothing custom ogni framesetInterval(() => {if(myVidEntity && target.object3D.visible) {const currentPos = target.object3D.position;// Lerp (Linear interpolation) per smooth movementsmoothPositionX += (currentPos.x - smoothPositionX) * SMOOTHING_FACTOR;smoothPositionY += (currentPos.y - smoothPositionY) * SMOOTHING_FACTOR;smoothPositionZ += (currentPos.z - smoothPositionZ) * SMOOTHING_FACTOR;// Applica la posizione smoothed al targetif(Math.abs(currentPos.x - lastPosition.x) > 0.001 ||Math.abs(currentPos.y - lastPosition.y) > 0.001 ||Math.abs(currentPos.z - lastPosition.z) > 0.001) {target.object3D.position.set(smoothPositionX, smoothPositionY, smoothPositionZ);lastPosition = {x: smoothPositionX, y: smoothPositionY, z: smoothPositionZ};}}}, 16); // 60fps// Easter Egg 1: Fake FPS CountersetInterval(() => {
ar.html+37-8