NERDDISCO · @NERDDISCO
126 followers · 462 posts · Server mastodon.social

360° viewer in + using an

```
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

Last updated 2 years ago

claude · @mathr
288 followers · 2739 posts · Server post.lurk.org

Found a bug in 's 360 projection (the distance estimate scaling was wrong).

Trying to do the maths by hand is too hard, so I copied my implementation (for ) from my fragm-examples repository, minus the macro hell, plus some quaternion-to-rotation-matrix code ported from Python that I found online.

Now it looks okish in the 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

Last updated 4 years ago

DerMische · @DerMische
249 followers · 4079 posts · Server social.tchncs.de
DerMische · @DerMische
250 followers · 4080 posts · Server social.tchncs.de

💯 📸 100 Equirectangular Panoramen hab ich bis jetzt bei Wikimedia hochgeladen. 😊

Hier:
commons.wikimedia.org/wiki/Use

Ist noch viel Arbeit..

Meine Website ist auch gerade wegen Umbau geschlossen. 🚧

#wikimedia #creativecommons #pano360 #equirectangular

Last updated 5 years ago