360° viewer in #threejs + #R3F using an #equirectangular #image
```
import { OrbitControls, Environment, useTexture } from '@react-three/drei';
import * as THREE from 'three';
export default function Equirectangular() {
const texture = useTexture(`/image.jpg`);
texture.mapping = THREE.EquirectangularReflectionMapping;
return (
<>
<Environment background map={texture} />
<OrbitControls />
</>
);
}
```
(Just putting this here as I always forget how it works 😅)
#threejs #R3F #equirectangular #image
Found a bug in #zoomasm's 360 projection (the distance estimate scaling was wrong).
Trying to do the maths by hand is too hard, so I copied my #GLSL #DualNumber implementation (for #AutomaticDifferentiation) from my fragm-examples repository, minus the #CPreProcessor macro hell, plus some quaternion-to-rotation-matrix code ported from Python that I found online.
Now it looks okish in the #equirectangular view, need to render some tests at various orientations and inject spatial metadata for viewing in VLC to be more sure I got it right...
#equirectangular #CPreProcessor #AutomaticDifferentiation #DualNumber #glsl #zoomasm
PanoBlenderAddon1.3:
- Print KRpano values
- Better PanoMAT
- Zenith/Nadir View
- Cleaner UI
Gumroad:
https://gumroad.com/l/tZUlht
Documentation:
https://der-mische.de/panoblender/
Tour-Tutorial:
https://der-mische.de/2020/06/11/panoblenderaddon-easy-tour-tutorial/
#PanoBlenderAddon #krpano #Blender #pano360 #equirectangular #panorama #depthmappanorama
#PanoBlenderAddon #krpano #blender #pano360 #equirectangular #panorama #depthmappanorama
💯 📸 100 Equirectangular Panoramen hab ich bis jetzt bei Wikimedia hochgeladen. 😊
Hier:
https://commons.wikimedia.org/wiki/User:DerMische/EquirectangularPanoramen
Ist noch viel Arbeit..
Meine Website ist auch gerade wegen Umbau geschlossen. 🚧
#wikimedia #creativecommons #pano360 #equirectangular