Raw Light Simulation (.rawls) reader and converter
Jérôme BUISINE 7dfe4aa8df rawls converter to ppm | il y a 5 ans | |
---|---|---|
.gitignore | il y a 5 ans | |
Makefile | il y a 5 ans | |
README.md | il y a 5 ans | |
rawls_h_flip.cpp | il y a 5 ans | |
rawls_reader.cpp | il y a 5 ans |
Read and convert .rawls
generated syntehsis image format into .ppm
.
.rawls
store all pixels values as float and keeps also information about generated image (renderer used).
.rawls
contains 3 blocks and specific lines information within each block:
{width}
{height}
{nbChannels}
Example of .rawls
file:
IHDR
12
� �
COMMENTS
#Samples 100
#Filter
#params
#Film image
#params "integer xresolution" [1000 ] "integer yresolution" [1000 ] "string filename" ["killeroo-simple.rawls_20" ]
#Sampler halton
#params "integer pixelsamples" [8 ]
#Accelerator
#params
#Integrator path
#params
#Camera perspective
#params "float fov" [39 ]
#LookAt 400 20 30 0 63 -110 0 0 1
DATA
12000000
BABBAB_��B
��YB��YBY�B
@=B@=B��B
��3B��3B��jB
....
+Z<BZ<B2\zB
��OB��OB���B
make compile
Convert the .rawls
image format into .ppm
./rawls_reader --image ../path/to/image.rawls_20 --outfile image.ppm