mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +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',
|
'The camera should be a PinholeCamera',
|
||||||
);
|
);
|
||||||
|
|
||||||
const height = 0.25;
|
const height = 0.05;
|
||||||
const f = camera.fx;
|
const displayedFocalLength = height;
|
||||||
const displayedFocalLength = height / (2.0 * (camera.cy / f));
|
const width = height * camera.cx / camera.cy;
|
||||||
const width = 2.0 * (camera.cx / f) * displayedFocalLength;
|
|
||||||
const cameraWireframeObject = getCameraWireframe(
|
const cameraWireframeObject = getCameraWireframe(
|
||||||
1.0,
|
1.0,
|
||||||
displayedFocalLength,
|
displayedFocalLength,
|
||||||
|
|||||||
Reference in new issue
Block a user