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.

50 lines
1.2 KiB

  1. <?php
  2. namespace Blobt\Luxcore\scene;
  3. include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
  4. /*
  5. //设置打印渲染引擎的配置参数
  6. $renderEngine = new RenderEngine();
  7. echo $renderEngine;
  8. //设置打印GPU渲染设备的配置参数
  9. $openCL = new OpenCL();
  10. echo $openCL;
  11. //设置打印GPU渲染设备的配置参数
  12. $native = new Native(['threadsCount' => 64]);
  13. echo $native;
  14. //设置打印光线跟踪的配置参数
  15. $path = new Path(['glossinessthreshold' => 0.999]);
  16. echo $path;
  17. //设置打印 采样器 配置参数
  18. $sampler = new Sampler(['imagemutationrate' => 0.888]);
  19. $sampler->random->overlapping = 32;
  20. echo $sampler;
  21. //设置打印 灯光策略 配置参数
  22. $lightStrategy = new LightStrategy();
  23. echo $lightStrategy;
  24. //设置打印 文件储存格式 配置参数
  25. $filesaver = new FileSaver();
  26. echo $filesaver;
  27. */
  28. //设置打印 “胶片” 配置参数
  29. $film = new Film();
  30. $film->outputs[] = new ImageSaverBase(['type' => ImageSaverBase::TYPE_RGBA ]);
  31. $film->outputs[] = new ImageSaverBase(['type' => ImageSaverBase::TYPE_MATERIAL_ID ]);
  32. $film->outputs[] = new ImageSaverNumber(['index' => 2 ]);
  33. $film->imagepipelines['002'] = [new NoiseReducerOIDN(),new Pretreatment(),new ToneMapCamera(),new CammaCorrection()];
  34. echo $film;
  35. ?>