From e747d7fee8414e1838c8d8ca8e7febd307a236d7 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sun, 13 Mar 2016 13:14:11 -0700 Subject: [PATCH] Added a simple example .psy file for testing purposes. --- example_scenes/cube.psy | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 example_scenes/cube.psy diff --git a/example_scenes/cube.psy b/example_scenes/cube.psy new file mode 100644 index 0000000..93a6ed0 --- /dev/null +++ b/example_scenes/cube.psy @@ -0,0 +1,46 @@ +Scene $Scene_fr1 { + Output { + Path ["cube.ppm"] + } + RenderSettings { + Resolution [960 540] + SamplesPerPixel [16] + Seed [1] + } + Camera { + Fov [49.134342] + FocalDistance [0.000000] + ApertureRadius [0.000000] + Transform [0.685881 0.727634 -0.010817 0.000000 -0.317370 0.312469 0.895343 0.000000 -0.654862 0.610666 -0.445245 0.000000 7.481132 -6.507640 5.343665 1.000000] + } + World { + BackgroundShader { + Type [Color] + Color [0.050876 0.050876 0.050876] + } + } + Assembly { + SurfaceShader $Material { + Type [Lambert] + Color [0.800000 0.800000 0.800000] + } + MeshSurface $__Cube_ { + Vertices [1.000000 1.000000 -1.000000 1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 0.999999 1.000000 0.999999 -1.000001 1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 ] + FaceVertCounts [4 4 4 4 4 4 ] + FaceVertIndices [0 1 2 3 4 7 6 5 0 4 5 1 1 5 6 2 2 6 7 3 4 0 3 7 ] + } + Instance { + Data [$__Cube_] + SurfaceShaderBind [$Material] + Transform [1.000000 -0.000000 0.000000 -0.000000 -0.000000 1.000000 -0.000000 0.000000 0.000000 -0.000000 1.000000 -0.000000 -0.000000 0.000000 -0.000000 1.000000] + } + SphereLight $__Lamp { + Color [100.000000 100.000000 100.000000] + Radius [0.100000] + } + Instance { + Data [$__Lamp] + Transform [-0.290865 -0.771101 0.566393 -0.000000 0.955171 -0.199883 0.218391 -0.000000 -0.055189 0.604525 0.794672 -0.000000 0.551084 -0.224861 -7.219975 1.000000] + } + } +}