diff --git a/examples/print.php b/examples/print.php index 69f4bd7..1d49bc9 100644 --- a/examples/print.php +++ b/examples/print.php @@ -11,7 +11,7 @@ include dirname(dirname(__FILE__)) . "/vendor/autoload.php"; echo '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>渲染配置参数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'; echo "\n\n\n\n"; - +/* //设置打印 渲染引擎 的配置参数 $renderEngine = new render\RenderEngine(); echo $renderEngine; @@ -63,7 +63,7 @@ $film->addImage($img); echo $film; - +*/ @@ -75,11 +75,11 @@ echo "\n\n\n\n"; $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类的贴图对象 @@ -116,15 +116,15 @@ $obj->setMaterial($mix) ; //为模型的指定一个混合材质 $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; diff --git a/src/scene/materials/MaterialsBase.php b/src/scene/materials/MaterialsBase.php index 3ba43a0..3fb73e6 100644 --- a/src/scene/materials/MaterialsBase.php +++ b/src/scene/materials/MaterialsBase.php @@ -26,7 +26,7 @@ class MaterialsBase extends BaseCfg public $id; /** - * @var bool 储存个由Scene类颁发的注册信息 + * @var bool TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出 */ public $cards; diff --git a/src/scene/objects/Objects.php b/src/scene/objects/Objects.php index b84118b..1c5a04c 100644 --- a/src/scene/objects/Objects.php +++ b/src/scene/objects/Objects.php @@ -29,7 +29,7 @@ class Objects extends BaseCfg public $id; /** - * @var string 储存个由Scene类颁发的注册信息 + * @var string TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出 */ public $cards; diff --git a/src/scene/texture/TextureBase.php b/src/scene/texture/TextureBase.php index 003d055..7de2fb0 100644 --- a/src/scene/texture/TextureBase.php +++ b/src/scene/texture/TextureBase.php @@ -18,7 +18,7 @@ class TextureBase extends BaseCfg public $id; /** - * @var string 储存个由Scene类颁发的注册信息 + * @var string TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出 */ public $cards;