ROUGHNESS-PREFILTER(1)

โœจ NAME โœจ

roughness-prefilter โ€” filament material tools ๐ŸŽ€ (yes bestie, that's literally the whole name line, and it's giving toolkit energy)


๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so roughness-prefilter generates pre-filtered roughness maps from normal maps, and the whole point of that is to help mitigate specular aliasing. like, it takes your crunchy sparkly normal map situation and smooths it out so your renders don't look like they're vibrating. we love that for us. โœจ

Usage, fr fr:

roughness-prefilter [options] <normal-map> <output-roughness-map>

๐Ÿฆ‹ Output note:

One file will be generated per mip-level. The size of the first level will be the greater of the input normal map and input roughness map. (so it's not just one lil file, it's a whole mip cascade, periodt)

๐ŸŒธ Supported input formats:

  • PNG
  • 8 and 16 bits Radiance (.hdr)
  • Photoshop (.psd)
  • 16 and 32 bits OpenEXR (.exr)

๐Ÿ”ฅ OPTIONS ๐Ÿ”ฅ

  • --help, -h โ€” print this message. that's it, that's the option. your little helper ๐Ÿซถ
  • --license โ€” Print copyright and license information. legal girlies stay winning
  • --roughness=[0..1], -r [0..1] โ€” desired constant roughness, ignored if --roughness-map is specified. so like, you can just pick a vibe number from 0 to 1, but the second you pass a roughness map this one gets ghosted ๐Ÿ’€
  • --roughness-map=<input-roughness-map>, -m <input-roughness-map> โ€” input roughness map. give it your actual texture instead of one flat number. main character energy ๐ŸŽ€
  • --format=[exr|hdr|psd|png|dds|ktx], -f [exr|hdr|psd|png|dds|ktx] โ€” specify output file format, inferred from file name if omitted. so if you don't say, it just reads your filename and figures it out. psychic behavior honestly ๐Ÿ”ฎ
  • --compression=COMPRESSION, -c COMPRESSION โ€” format specific compression:
    • PNG: Ignored
    • Radiance: Ignored
    • Photoshop: 16 (default), 32
    • OpenEXR: RAW, RLE, ZIPS, ZIP, PIZ (default)
    • DDS: 8, 16 (default), 32

note how each format has its own whole personality, and the defaults are marked (default) โ€” don't skip that part bestie, it matters

  • --linear, -l โ€” force linear output when the PNG format is selected. PNG ONLY, no cap, it does not care about your other formats ๐Ÿ™ˆ

โš ๏ธ heads up: --roughness gets completely ignored the moment you specify --roughness-map. it's not a merge situation, it's a replacement situation. choose wisely ๐Ÿ’–
โš ๏ธ also: --linear only does anything when the PNG format is selected. any other format and it's just sitting there being decorative ๐ŸŽ€

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

nothing listed, bestie โ€” this page is a solo act and honestly? respect ๐Ÿ‘‘</purgle>


okay that's the whole page!! and for the cute sign-off: this one's from the roughness-prefilter user commands, footer says roughness-prefilter generates ... with the date October 2021 โ€” so yeah, vintage but still iconic, and you now know literally everything it says. slay ๐Ÿ’…โœจ๐Ÿฆ‹