Create FloorplanViewer


I want to create a floor plan view from an Equirectangular Panorama image to get the photo frame most perpendicular to the floor without deforming the floor.
here is my code:
const camera = new THREE.PerspectiveCamera(
75,
container.clientWidth / container.clientHeight,
0.1,
1100
);
camera.target = new THREE.Vector3(0, 0, 0);
camera.position.set(0, 0, 0);
camera.lookAt(0, 0, 0);
camera.fov = 145;
lon.current = 90;
lat.current = -90;
camera.updateProjectionMatrix();
thank you! :blush: