Render Scale Fidelity Comparator - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: The Resources (https://www.vg-resource.com/forum-109.html) +--- Forum: The Models Resource (https://www.vg-resource.com/forum-111.html) +---- Forum: Project Organization (https://www.vg-resource.com/forum-119.html) +---- Thread: Render Scale Fidelity Comparator (/thread-36687.html) |
Render Scale Fidelity Comparator - Friedslick6 - 02-18-2020 Hey all, Recently I inspired myself to create a Windows batch script to help with deciding at which multiple scale to bake diffuse maps for model submissions, designed for the task of baking textures with vertex colours. (This script requires ImageMagick, located here.) The script makes each iterative pair of scaled textures comparative by temporarily downscaling the larger of the pair to match the dimensions of the smaller, then uses the RMSE metric to output the difference between that pair. The script requires at least 2 PNG textures in the script's directory, named as (2^n)+"x.png", up to "1024x.png". e.g. "1x.png", "2x.png", "4x.png", "8x.png", "16x.png"... Example script output: Code: Scale Render Resolution Comparator (lower is closer): From this output you can then easily determine the point of diminishing returns, at which the texture's fidelity is not worth the scale. In this example the difference in iterations between 4x and 8x is 5.24%, and between 16x and 32x is 0.99%, from which we can then assume the appropriate scale to be at least 4x, up to 16x. Save the below code insert as a batch file (.cmd extension): Code: @!! 2>NUL||CMD/Q/V/C%0&&EXIT/B&CD/D%~dp0 |