mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-16 04:43:52 +08:00
smaller images for viewer (#390)
This commit is contained in:
1 parent
d50c71ac43
commit
5b8f0f0204
1 file changed
+3
-4
@@ -127,10 +127,9 @@ export function drawCamera(camera): THREE.Object3D {
|
||||
'The camera should be a PinholeCamera',
|
||||
);
|
||||
|
||||
const height = 0.25;
|
||||
const f = camera.fx;
|
||||
const displayedFocalLength = height / (2.0 * (camera.cy / f));
|
||||
const width = 2.0 * (camera.cx / f) * displayedFocalLength;
|
||||
const height = 0.05;
|
||||
const displayedFocalLength = height;
|
||||
const width = height * camera.cx / camera.cy;
|
||||
const cameraWireframeObject = getCameraWireframe(
|
||||
1.0,
|
||||
displayedFocalLength,
|
||||
|
||||
Reference in new issue
Block a user