Evalglare Tutorial#
A quick and dirty tutorial to run a simple evalglare analysis.
Make sure you have a running setup of Ignis. Have a look at Setup to understand how to compile the Ignis framework.
Build your own scene using one of the available tools.
We will use the
scene/radiance/office/office_scene.jsonexample.
Apply
source source.shor runsource.batorsource.ps1depending on your operating system to make sure the tools are available in the current shell environment.Run
igview SCENE_FILE --camera fishlensto check out your scene. TheSCENE_FILEparameter is the path to your preferred scene file.Look around and find a good spot. In the best case, it is an interesting spot for the analysis of the glare probability.
Note down the
Cam Eye,Cam DirandCam Upsomewhere. These observables are located on theStatspanel.You can create a new view file
output.vfbased on the following templatervu -vta -vp Px Py Pz -vd Dx Dy Dz -vu Ux Uy Uz -vh 180 -vv 180 -vo 0 -va 0 -vs 0 -vl 0with P, D and U being the previously noted coordinates.
Run
igcli SCENE_FILE --spp SPP --camera fishlens -o output.exr. Setting SPP to a high value will make the image less noisy, but will also take longer to finish. The higher the SPP the greater the coffee you may consume. For example,igcli scene/radiance/office/office_scene.json --spp 512 --camera fishlens -o output.exrRun
igutil convert output.exr output.hdrto convert the modern OpenEXR file to Radiance hdr file. This will create a newoutput.hdrfile.Finally, run
evalglare -vf output.vf -dfrom the Radiance tools.This will output the DGP and many other measures. Have a look at the
evalglaremanual to understand them.
Note
You can use the python script scripts/ExtractRadView.py to generate a radiance view file for you directly from the settings inside the scene description.