fixed prog_color visualization bugs#127
Conversation
|
Hi! Thanks for sharing these fixes. Some of them are things that I would like to merge like updating the paths to the new directory structure. Other things like baking in the background compositing and eliminating transparency I don't think I can merge as is. It's useful to have the background separate, for example in the video I need to do adjust the background separately from this layer. I used prores because it was the only format for which my video editing software supported transparency, but the files are huge and don't play on windows as you point out. A possible workaround for this could be to render h264 with a solid background color and key this out later. |
|
Hi PWhiddy, I agree with your concerns over some of the changes. If I can find the time, I will try to combine this file with the other visualization scripts and then tie them together with a set of commented config options. That should enable you to choose whether or not to bake in the background, among other things. In regards to prores and RGBA, I do have concerns about file size, particularly as the AI becomes able to explore further and further. I suspect that the full map will be roughly 8000x8000 pixels in size so reducing file size will likely become more important over time. Other than changing the background color, is there any other reason you want to keep using RGBA? If that's your only use case for the alpha channel, it should be pretty simple to set up an np.where() that replaces any pixel where alpha = 0 to a color of your choice. |
|
RGBA isn't strictly necessary as long as it can be replaced with a solid background color that can be removed cleanly. This will also be a win because prores files are quite cumbersome :) |
I couldn't get this file to run with the current version of the repository. I've made several changes to fix bugs that I encountered. Here's a rundown of the changes:
The script still isn't perfect, but you should be able to run it now with minimal hassle.