When generating multiple camera trajectories with the same scene, I noticed that the average intensity was different for each of them. When I tried generating different rendererings of the same trajectory, I still got different average intensities, therefore showing that it's set when running ./scenenet_render. I assumed the scene generator would take care of the lighting, but apparently not. I'm trying to generate multiple camera trajectories in the same scene with the same lighting, but this prevents me from doing it. Unfortunately, the render component has a lot of code and although I've started combing through it, does anyone already know a way to keep a constant lighting for a given scene and not have it change with every render?
Thanks in advance!
Update: I read the README and it does say the the lights are generated in the rendering process so that was my mistake.
So now I found out where the random lighting is instantiated - in renderer/src/Scene/SceneNet.cpp
However, I am having issues trying to keep it constant for the scene. I was thinking of adding a lights.txt file that stores the lights file; if it exists, the renderer uses the info stored in it, otherwise it would create the text file and store the new lighting in it. The lights.txt file would be deleted when the scene_generator is run. If anyone comes up with a better idea to allow me to keep the lighting constant, I'd love to hear it!
When generating multiple camera trajectories with the same scene, I noticed that the average intensity was different for each of them. When I tried generating different rendererings of the same trajectory, I still got different average intensities, therefore showing that it's set when running ./scenenet_render. I assumed the scene generator would take care of the lighting, but apparently not. I'm trying to generate multiple camera trajectories in the same scene with the same lighting, but this prevents me from doing it. Unfortunately, the render component has a lot of code and although I've started combing through it, does anyone already know a way to keep a constant lighting for a given scene and not have it change with every render? Thanks in advance!
Update: I read the README and it does say the the lights are generated in the rendering process so that was my mistake. So now I found out where the random lighting is instantiated - in renderer/src/Scene/SceneNet.cpp However, I am having issues trying to keep it constant for the scene. I was thinking of adding a lights.txt file that stores the lights file; if it exists, the renderer uses the info stored in it, otherwise it would create the text file and store the new lighting in it. The lights.txt file would be deleted when the scene_generator is run. If anyone comes up with a better idea to allow me to keep the lighting constant, I'd love to hear it!