Explorar el Código

Bugfix: the default distance of the far plane was too small

customisations
alemart hace 3 años
padre
commit
269ed97b73
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      src/geometry/view.ts

+ 4
- 4
src/geometry/view.ts Ver fichero

@@ -26,11 +26,11 @@ import { SpeedyMatrix } from 'speedy-vision/types/core/speedy-matrix';
26 26
 import { CameraModel, FX, FY, U0, V0 } from './camera-model';
27 27
 import { IllegalArgumentError } from '../utils/errors';
28 28
 
29
-/** Default distance of the near plane to the optical center of the camera */
30
-const DEFAULT_NEAR = 0.1;
29
+/** Default distance in pixels of the near plane to the optical center of the camera */
30
+const DEFAULT_NEAR = 1;
31 31
 
32
-/** Default distance of the far plane to the optical center of the camera */
33
-const DEFAULT_FAR = 2000;
32
+/** Default distance in pixels of the far plane to the optical center of the camera */
33
+const DEFAULT_FAR = 20000;
34 34
 
35 35
 
36 36
 

Loading…
Cancelar
Guardar