|
@ -11,7 +11,7 @@ include dirname(dirname(__FILE__)) . "/vendor/autoload.php"; |
|
|
echo '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>渲染配置参数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'; |
|
|
echo '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>渲染配置参数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'; |
|
|
echo "\n\n\n\n"; |
|
|
echo "\n\n\n\n"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
//设置打印 渲染引擎 的配置参数
|
|
|
//设置打印 渲染引擎 的配置参数
|
|
|
$renderEngine = new render\RenderEngine(); |
|
|
$renderEngine = new render\RenderEngine(); |
|
|
echo $renderEngine; |
|
|
echo $renderEngine; |
|
@ -63,7 +63,7 @@ $film->addImage($img); |
|
|
|
|
|
|
|
|
echo $film; |
|
|
echo $film; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -75,11 +75,11 @@ echo "\n\n\n\n"; |
|
|
|
|
|
|
|
|
$scene = new Scene();//创建一个场景,
|
|
|
$scene = new Scene();//创建一个场景,
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
//添加第一个模型
|
|
|
|
|
|
|
|
|
|
|
|
$obj = new objects\Objects( null,[ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//添加第一个模型
|
|
|
|
|
|
$obj = new objects\Objects( [ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$cloudsMap = new texture\map\Clouds(); //创建一个 Clouds类的贴图对象
|
|
|
$cloudsMap = new texture\map\Clouds(); //创建一个 Clouds类的贴图对象
|
|
@ -116,15 +116,15 @@ $obj->setMaterial($mix) ; //为模型的指定一个混合材质 |
|
|
$scene->registerObjects($obj); //将模型添加到场景中
|
|
|
$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' ] ); //创建一个的模型,
|
|
|
|
|
|
$obj->material = new materials\Metal( ['fresnel' => "2517393611944Fresnel"] ); //为模型创建一个 金属 类型的材质
|
|
|
|
|
|
$scene->addObject($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' ] ); //创建一个的模型,
|
|
|
|
|
|
// $obj->material = new materials\Metal( ['fresnel' => "2517393611944Fresnel"] ); //为模型创建一个 金属 类型的材质
|
|
|
|
|
|
// $scene->addObject($obj); //将模型添加到场景中
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
echo $scene; |
|
|
echo $scene; |
|
|
|
|
|
|
|
|