|
@ -256,15 +256,27 @@ $target->x = $target->x * UNIT_CONVERSION_MM_TO_M; |
|
|
$target->y = $target->y * UNIT_CONVERSION_MM_TO_M; |
|
|
$target->y = $target->y * UNIT_CONVERSION_MM_TO_M; |
|
|
$target->z = $target->z * UNIT_CONVERSION_MM_TO_M; |
|
|
$target->z = $target->z * UNIT_CONVERSION_MM_TO_M; |
|
|
$rotation = $taskCamera->rotation; |
|
|
$rotation = $taskCamera->rotation; |
|
|
|
|
|
// $camera = new camera\Perspective(
|
|
|
|
|
|
// [
|
|
|
|
|
|
// 'autovolumeEnable' => 0,
|
|
|
|
|
|
// 'lookatOrig' => "{$position->x} {$position->y} {$position->z}",
|
|
|
|
|
|
// 'lookatTarget' => "{$target->x} {$target->y} {$target->z}",
|
|
|
|
|
|
// 'up' => "{$rotation->x} {$rotation->y} {$rotation->z}",
|
|
|
|
|
|
// 'screenwindow' => "-1 1 -1 1",
|
|
|
|
|
|
// 'autofocusEnable' => 0,
|
|
|
|
|
|
// 'fieldofview' => $taskCamera->fov,
|
|
|
|
|
|
// 'cliphither' => 0.1,
|
|
|
|
|
|
// ]
|
|
|
|
|
|
// );
|
|
|
$camera = new camera\Perspective( |
|
|
$camera = new camera\Perspective( |
|
|
[ |
|
|
[ |
|
|
'autovolumeEnable' => 0, |
|
|
'autovolumeEnable' => 0, |
|
|
'lookatOrig' => "{$position->x} {$position->y} {$position->z}", |
|
|
|
|
|
'lookatTarget' => "{$target->x} {$target->y} {$target->z}", |
|
|
|
|
|
'up' => "{$rotation->x} {$rotation->y} {$rotation->z}", |
|
|
|
|
|
'screenwindow' => "-1 1 -1 1", |
|
|
|
|
|
|
|
|
'lookatOrig' => "-2.35066 -2.836523 1.320677", |
|
|
|
|
|
'lookatTarget' => "-1.718711 -2.091566 1.106953", |
|
|
|
|
|
'up' => "0.1382576 0.1629814 0.976894", |
|
|
|
|
|
'screenwindow' => "-1 1 -0.5625 0.5625", |
|
|
'autofocusEnable' => 0, |
|
|
'autofocusEnable' => 0, |
|
|
'fieldofview' => $taskCamera->fov, |
|
|
|
|
|
|
|
|
'fieldofview' => 39.59776, |
|
|
'cliphither' => 0.1, |
|
|
'cliphither' => 0.1, |
|
|
] |
|
|
] |
|
|
); |
|
|
); |
|
|