steren / stereo-img

web component to display stereographic pictures on web pages, with VR support
https://stereo-img.steren.fr
Apache License 2.0
22 stars 6 forks source link

Ensure pictures taken with Canon EOS R5 RF5.2mm F2.8 L Dual Fisheye are supported #21

Closed steren closed 6 months ago

steren commented 7 months ago

https://www.usa.canon.com/shop/p/rf5-2mm-f2-8-l-dual-fisheye

image

steren commented 7 months ago

from exifr:

{
  "Rating": 0,
  "Make": "Canon",
  "Model": "Canon EOS R5",
  "Orientation": "Horizontal (normal)",
  "XResolution": 72,
  "YResolution": 72,
  "ResolutionUnit": "inches",
  "ModifyDate": <Date 2023-11-26T05:50:08.000Z>,
  "YCbCrPositioning": 2,
  "ExposureTime": 0.016666666666666666,
  "FNumber": 3.2,
  "ExposureProgram": "Normal program",
  "ISO": 10000,
  "SensitivityType": 2,
  "RecommendedExposureIndex": 10000,
  "ExifVersion": "2.3.1",
  "DateTimeOriginal": <Date 2023-11-26T05:50:08.000Z>,
  "CreateDate": <Date 2023-11-26T05:50:08.000Z>,
  "OffsetTime": "-08:00",
  "OffsetTimeOriginal": "-08:00",
  "OffsetTimeDigitized": "-08:00",
  "ComponentsConfiguration": <Uint8Array 01 02 03 00>,
  "ShutterSpeedValue": 6,
  "ApertureValue": 3.375,
  "ExposureCompensation": 0,
  "MeteringMode": "Pattern",
  "Flash": "Flash did not fire",
  "FocalLength": 5.2,
  "SubSecTime": "89",
  "SubSecTimeOriginal": "89",
  "SubSecTimeDigitized": "89",
  "FlashpixVersion": "1.0",
  "ColorSpace": 1,
  "ExifImageWidth": 8192,
  "ExifImageHeight": 5464,
  "FocalPlaneXResolution": 5773.079633544749,
  "FocalPlaneYResolution": 5769.799366420275,
  "FocalPlaneResolutionUnit": "Inch",
  "CustomRendered": "Normal",
  "ExposureMode": "Auto",
  "WhiteBalance": "Auto",
  "SceneCaptureType": "Standard",
  "SerialNumber": "372029001620",
  "LensInfo": [5.2, 5.2, 0, 0],
  "LensModel": "RF5.2mm F2.8 L DUAL FISHEYE",
  "LensSerialNumber": "1600000051",
  "GPSVersionID": "2.3.0.0"
}
steren commented 7 months ago

To autodetect: "LensModel": "RF5.2mm F2.8 L DUAL FISHEYE"

steren commented 6 months ago

Current code expects equirectangular images. UV of the default sphere are equirectangular.

We can either:

The latter is preferred to avoid heavy image manipulation

steren commented 6 months ago

https://stackoverflow.com/questions/49900677/mapping-a-stereographic-projection-to-the-inside-of-a-sphere-in-threejs

steren commented 6 months ago

https://community.theta360.guide/t/displaying-thetas-dual-fisheye-video-with-three-js/1160

steren commented 6 months ago

Official three.js example