antimatter15 / splat

WebGL 3D Gaussian Splat Viewer
https://antimatter15.com/splat/
MIT License
1.7k stars 169 forks source link

How to calculate fx and fy? #41

Open wddl opened 4 months ago

wddl commented 4 months ago

{ id: 0, img_name: "00001", width: 1959, height: 1090, position: [ -3.0089893469241797, -0.11086489695181866, -3.7527640949141428, ], rotation: [ [0.876134201218856, 0.06925962026449776, 0.47706599800804744], [-0.04747421839895102, 0.9972110940209488, -0.057586739349882114], [-0.4797239414934443, 0.027805376500959853, 0.8769787916452908], ], fy: 1164.6601287484507, fx: 1159.5880733038064, } For example, how to calculate fx and fy using parameters like fovInDegrees, aspect, near, and far?