You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make it work with every aspect ratio of camera/screen, so not always 4:3. This will make possible to use the NFT with fullscreen camera on mobile and desktop devices.
The text was updated successfully, but these errors were encountered:
I keep the canvas passed into ar.process to have aspect ratio 4:3 to fit the camera params. This canvas is called "canvas_process" . (You can see a lot of my code is just calculating width/height.)
@albjeremias (At least for my demos) 4:3 because I used a fixed "camera_para-iPhone 5 rear 640x480 1.0m.dat" for camera params and didn't have time to implement a matching.
I think 3:4 is doable with that camera params. rotate video feed 90 degrees when drawing onto canvas_process and rotate the perspective matrix back.
Take a look at images here.
In CSS terms, I did an "object-fit: contain;" to fit video in canvas_process.
To solve this aspect ratio issue, maybe do this again, do an "object-fit: cover;" to cover fullscreen canvas with video, and use another pair of ratioW/H to fix the perspective matrix.
We should make it work with every aspect ratio of camera/screen, so not always 4:3. This will make possible to use the NFT with fullscreen camera on mobile and desktop devices.
The text was updated successfully, but these errors were encountered: