PVRTexToolCL.exe -square + not rounding up.

This topic contains 4 replies, has 2 voices, and was last updated by  nhyeung 4 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31329

    nhyeung
    Member

    I’m using Version 3.40 of PVRTexToolCL, and trying to round my texture size up when using the -square option. There seems to be a bug, and it always rounds it down.

    My command is:
    pvrtextoolcl -i input.png -o output.pvr -legacypvr -square + -flip y,flag -q pvrtcbest -f PVRTC1_4

    #37596

    Hi Nhyeung,

    The square operation is performing correctly as far as I can tell – it’s worth noting that this does option NOT cause the texture to become POT; that is now a separate option: “-pot”. If you want to make your texture a square power of two, you should use the following amended command:

    pvrtextoolcl -i input.png -o output.pvr -legacypvr -square + -pot + -flip y,flag -q pvrtcbest -f PVRTC1_4

    Regards,
    Tobias

    #37597

    nhyeung
    Member

    Thanks for the reply.

    I did a little more testing, and I found the case where it fails. If the png is 512×128, using the -square + option will produce a pvr of size 512×512.

    If the png is 128×512, using the same command will give a texture of size 128×128.

    #37598

    Hi Nhyeung,

    Yep ok, you’ve definitely found a bug there! Curse my not testing in both directions 🙂 I usually do as well… Anyway, figured out the bug – apparently I was checking the maximum against the depth of the texture instead of the height. Whoops. Min works as expected at least. I’ll check in this fix and it will be in the next release. If this is a blocking issue for you, feel free to email DevTech@imgtec.com, and we can send you an engineering drop ahead of time.

    Regards,
    Tobias

    #37599

    nhyeung
    Member

    Thanks, but I already implemented a work around this. Glad to be of service.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.