From 07cdb17e9e4d8cd20e892b3f2d0b2eff4bafba12 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Thu, 8 Jun 2023 08:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=B5=8B=E5=BC=8F=20?= =?UTF-8?q?=E6=A1=88=E4=BE=8B=20=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/renderTest.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/examples/renderTest.php b/examples/renderTest.php index bf1daee..1f6baea 100644 --- a/examples/renderTest.php +++ b/examples/renderTest.php @@ -256,15 +256,27 @@ $target->x = $target->x * UNIT_CONVERSION_MM_TO_M; $target->y = $target->y * UNIT_CONVERSION_MM_TO_M; $target->z = $target->z * UNIT_CONVERSION_MM_TO_M; $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( [ '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, - 'fieldofview' => $taskCamera->fov, + 'fieldofview' => 39.59776, 'cliphither' => 0.1, ] );