Skip to content

[textconv bug report] DDS export produces invalid BCn textures for non-multiple-of-4 PNGs (Unity “invalid parameters”); request pre-check/skip or auto-resize options #193

@Kotori05

Description

@Kotori05

When using RimPy’s built-in DDS export (Microsoft texconv / bc7enc), PNGs whose width/height are not multiples of 4 are still converted to DDS. Unity then fails to load those DDS files at game start, spamming the log with errors and sometimes breaking UI atlases/masks.

This happens for both content textures and display/preview thumbnails (ssuch as storyteller avatar which may shouldn’t be converted).

Suggested Improvements (UI&behavior)
New checkbox: “Convert only images with 4× dimensions (skip others).” (Default: ON)
Implementation detail: read the PNG to get W/H; if (W%4!=0 || H%4!=0) → skip and log.
New checkbox: “Auto-resize none 4x png to power-of-two (texconv -pow2).” (Default: OFF)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions