|
@ -49,6 +49,7 @@ $result = json_decode($resContents,false); |
|
|
$taskData = $result->data; |
|
|
$taskData = $result->data; |
|
|
$taskScene = $taskData->scene; |
|
|
$taskScene = $taskData->scene; |
|
|
$taskModel = $taskScene->model; |
|
|
$taskModel = $taskScene->model; |
|
|
|
|
|
$taskCamera = $taskScene->camera; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -248,13 +249,13 @@ foreach($taskModel->childsParams as $childParams){ |
|
|
$camera = new camera\Perspective( |
|
|
$camera = new camera\Perspective( |
|
|
[ |
|
|
[ |
|
|
'autovolumeEnable' => 0, |
|
|
'autovolumeEnable' => 0, |
|
|
'lookatOrig' => "-3.197486 -4.560584 0.8914337", |
|
|
|
|
|
'lookatTarget' => "-2.632151 -3.747173 0.7544713", |
|
|
|
|
|
'up' => "0.0781663 0.1124666 0.9905763", |
|
|
|
|
|
|
|
|
'lookatOrig' => "{$taskCamera->position->x} {$taskCamera->position->y} {$taskCamera->position->z}", |
|
|
|
|
|
'lookatTarget' => "{$taskCamera->target->x} {$taskCamera->target->y} {$taskCamera->target->z}", |
|
|
|
|
|
'up' => "{$taskCamera->rotation->x} {$taskCamera->rotation->y} {$taskCamera->rotation->z}", |
|
|
'screenwindow' => "-1 1 -1 1", |
|
|
'screenwindow' => "-1 1 -1 1", |
|
|
'autofocusEnable' => 0, |
|
|
'autofocusEnable' => 0, |
|
|
'fieldofview' => 3.40608, |
|
|
|
|
|
'cliphither' => 0.1 |
|
|
|
|
|
|
|
|
'fieldofview' => $taskCamera->fov, |
|
|
|
|
|
'cliphither' => 0.1, |
|
|
] |
|
|
] |
|
|
); |
|
|
); |
|
|
$camera->bokeh->blades = 0; |
|
|
$camera->bokeh->blades = 0; |
|
|