|
|
@ -119,6 +119,17 @@ $scene->registerObjects($obj); //将模型添加到场景中 |
|
|
|
|
|
|
|
|
|
|
|
//添加第二个模型
|
|
|
|
$obj = new objects\Objects( [ 'ply' => 'mesh-119.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型,
|
|
|
|
$scene->registerObjects($obj); //将模型添加到场景中
|
|
|
|
|
|
|
|
|
|
|
|
$obj = new objects\Objects( [ 'ply' => 'mesh-119.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型,
|
|
|
|
$scene->registerObjects($obj); //将模型添加到场景中
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$obj = new objects\Objects( [ 'ply' => 'mesh-119.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型,
|
|
|
|
|
|
|
|
$ClearVol = new volumes\Clear(); //创建一个 Clear体积效果
|
|
|
@ -132,8 +143,6 @@ $obj->setMaterial($colorGlass); //将玻璃材质赋值到模型的材质属 |
|
|
|
$scene->registerObjects($obj); //将模型添加到场景中
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $scene; |
|
|
|
|
|
|
|
|
|
|
|