IRRADIANCE & GetOutputFloat
Posted: Wed May 23, 2018 4:27 pm
Hi,
I follow the suggestion to output type IRRADIANCE.
But image2 is just a white on black mask of my irradiated objects, and image1 is just white. Maybe I need to parametrize the plugin for the right scale???
Also I wanted to check the output actual values.
But from where can I import e.g. Buffer? Do I need to install bgl? Is the this Boost GL or Blender something?
Where can I find a good description of pipeline output system to fully understand it. ATM I just guessing how it might work.
Thanks,
Mick
I follow the suggestion to output type IRRADIANCE.
Code: Select all
renderengine.seed = 11
renderengine.type = PATHCPU
sampler.type = SOBOL
film.width = 800
film.height = 600
# The first plugin: the linear tonemapper multiplies the pixel colors with the scale
film.imagepipelines.0.0.type = TONEMAP_LINEAR
film.imagepipelines.0.0.scale = 5e-5
# The second plugin: gamma correction
film.imagepipelines.0.1.type = GAMMA_CORRECTION
film.imagepipelines.0.1.value = 2.2
film.imagepipeline.2.type = CONTOUR_LINES
film.imagepipeline.2.range = 20
film.imagepipeline.2.steps = 10
film.imagepipeline.2.zerogridsize = 8
film.outputs.0.type = RGB_IMAGEPIPELINE
film.outputs.0.filename = image0.png
film.outputs.1.type = RGB
film.outputs.1.filename = image1.hdr
film.outputs.2.type = IRRADIANCE
film.outputs.2.filename = image2.hdr
film.outputs.3.type = RAYCOUNT
film.outputs.3.filename = image3.png
Also I wanted to check the output actual values.
Code: Select all
buffer = bgl.Buffer(bgl.GL_FLOAT, [800 * 600 * 3])
print(session.GetFilm().GetOutputFloat(pyluxcore.OUTPUT_IRRADIANCE, buffer, 0))
Where can I find a good description of pipeline output system to fully understand it. ATM I just guessing how it might work.
Thanks,
Mick