StrataSource / vtex2

A VTF converter and editor
MIT License
42 stars 8 forks source link

mipmaps cause texture offset in resulting vtf #33

Open rsedxcftvgyhbujnkiqwe opened 1 year ago

rsedxcftvgyhbujnkiqwe commented 1 year ago

When using convert on any file (tga, png, jpg, etc), if you do NOT enable the --no-mips flag, the 3 leftmost columns of pixels are shifted down by one, and it wraps around.

This issue is present in all rgb/gbr/dxt formats

An image with pixels like this:

XXXXXXXX
XXXXXXXX
OOOOOOOO
OOOOOOOO

Would turn into this:

OOOXXXXX
XXXXXXXX
XXXOOOOO
OOOOOOOO