Blender渲染
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.

61 lines
1.4 KiB

  1. <?php
  2. namespace Blobt\Luxcore\scene;
  3. include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
  4. //设置打印 渲染引擎 的配置参数
  5. $renderEngine = new render\RenderEngine();
  6. echo $renderEngine;
  7. //设置打印GPU渲染设备的配置参数
  8. $openCL = new render\OpenCL();
  9. echo $openCL;
  10. //设置打印光线跟踪的配置参数
  11. $path = new render\Path();
  12. echo $path;
  13. //设置打印 采样器 配置参数
  14. $sampler = new render\Sampler();
  15. echo $sampler;
  16. //设置打印 灯光策略 配置参数
  17. $lightStrategy = new render\LightStrategy();
  18. echo $lightStrategy;
  19. //设置打印 文件储存格式 配置参数
  20. $filesaver = new render\FileSaver();
  21. echo $filesaver;
  22. //设置打印 渲染终止 配置参数
  23. $batch = new render\Batch();
  24. echo $batch;
  25. //设置打印 场景属性 配置参数
  26. $scene = new render\Scene();
  27. echo $scene;
  28. //设置打印 “胶片” 配置参数
  29. $film = new render\Film();//添加一个胶片,
  30. $img = new render\Image();
  31. $img->effect = [new render\effect\Pretreatment(),new render\effect\ToneMapLinear(),new render\effect\CammaCorrection()];
  32. $film->addImage($img);
  33. $film->addImage(new render\Image(['type' => 'ALBEDO']));
  34. $film->addImage(new render\Image(['type' => 'AVG_SHADING_NORMAL']));
  35. $img = new render\Image();
  36. $img->effect = [new render\effect\NoiseReducerOIDN(),new render\effect\Pretreatment(),new render\effect\ToneMapLinear(),new render\effect\CammaCorrection()];
  37. $film->addImage($img);
  38. echo $film;
  39. ?>