You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.5 KiB
107 lines
2.5 KiB
<?php
|
|
|
|
|
|
|
|
namespace Blobt\Luxcore\scene;
|
|
|
|
|
|
include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
|
|
|
|
// //设置打印 渲染引擎 的配置参数
|
|
// $renderEngine = new render\RenderEngine();
|
|
// echo $renderEngine;
|
|
|
|
// //设置打印GPU渲染设备的配置参数
|
|
// $openCL = new render\OpenCL();
|
|
// echo $openCL;
|
|
|
|
// //设置打印光线跟踪的配置参数
|
|
// $path = new render\Path();
|
|
// echo $path;
|
|
|
|
// //设置打印 采样器 配置参数
|
|
// $sampler = new render\Sampler();
|
|
// echo $sampler;
|
|
|
|
// //设置打印 灯光策略 配置参数
|
|
// $lightStrategy = new render\LightStrategy();
|
|
// echo $lightStrategy;
|
|
|
|
// //设置打印 文件储存格式 配置参数
|
|
// $filesaver = new render\FileSaver();
|
|
// echo $filesaver;
|
|
|
|
// //设置打印 渲染终止 配置参数
|
|
// $batch = new render\Batch();
|
|
// echo $batch;
|
|
|
|
// //设置打印 场景属性 配置参数
|
|
// $scene = new render\Scene();
|
|
// echo $scene;
|
|
|
|
|
|
|
|
// //设置打印 “胶片” 配置参数
|
|
// $film = new render\Film();//添加一个胶片,
|
|
|
|
// $img = new render\Image();
|
|
// $img->effect = [new render\effect\Pretreatment(),new render\effect\ToneMapLinear(),new render\effect\CammaCorrection()];
|
|
// $film->addImage($img);
|
|
|
|
// $film->addImage(new render\Image(['type' => 'ALBEDO']));
|
|
// $film->addImage(new render\Image(['type' => 'AVG_SHADING_NORMAL']));
|
|
|
|
// $film->addImage(new render\Image(['type' => 'OBJECT_ID']));
|
|
|
|
|
|
// $img = new render\Image();
|
|
// $img->effect = [new render\effect\NoiseReducerOIDN(),new render\effect\Pretreatment(),new render\effect\ToneMapLinear(),new render\effect\CammaCorrection()];
|
|
// $film->addImage($img);
|
|
|
|
|
|
// echo $film;
|
|
|
|
// class vector implements \JsonSerializable
|
|
// {
|
|
// public function __construct( $arr )
|
|
// {
|
|
// $this->array = $arr;
|
|
// }
|
|
|
|
// public function jsonSerialize()
|
|
// {
|
|
// return $this->array;
|
|
// }
|
|
// }
|
|
|
|
|
|
// $test = [
|
|
// "x" => "geeks",
|
|
// "y" => "for",
|
|
// "z" => "geeks"
|
|
// ];
|
|
|
|
// $test = new Gltf();
|
|
|
|
// echo json_encode($test, JSON_PRETTY_PRINT);
|
|
|
|
$rr = 'AACAPwAAgD8AAIA/AACAPwAAgD8AAIC/AACAvwAAgD8AAIC/AACAvwAAgD8AAIA/AAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAgPwAAgD4AACA/AAAAPwAAYD8AAAA/AABgPwAAgD4AAAEAAgAAAAIAAwA=';
|
|
|
|
// echo base64_decode($rr);
|
|
|
|
// $fileType = base64_decode($rr);
|
|
$fileType = "\x04\x00\xa0\x00";
|
|
|
|
echo $fileType;
|
|
echo "\n\n";
|
|
|
|
$rr = unpack("cchars/nint",$fileType);
|
|
|
|
var_dump($rr);
|
|
|
|
|
|
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
|
|
echo base64_decode($str);
|
|
|
|
|
|
?>
|