bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
344 stars 33 forks source link

The DDS property editor need some changing #35

Closed ClangPan closed 2 years ago

ClangPan commented 2 years ago

Only the option to display layers one-by-one would be needed here. image image

Maybe also move the 'Display Mipmaps' and 'Display Cubemap' buttons to the DDS property editor window since it's the only image type that uses these options and add an option to enable them by default.

Orig intended for editing properties. Need to think about this one a bit. Point taken that only DDS files support mipmaps and cubemaps so why clutter the toolbar. As for the frame duration, agreed it should not be there for, say, DDS files... not sure for other 'non-animated' image types. Tiff, for example, can store multiple 'pages' (images)... and they could be used for flipbook anim. In fact, that frame duration field does actually set the value -- so you can adjust, for example, how long each frame takes and if you save as a gif, apng, etc, it will write that duration out. For tiff files it uses a custom (user) field for the duration, so if you reopen in tacentview, you will see it play with the saved duration for each frame.

Hmm, I wasn't aware tiff files could be used like this, it's interesting. I'll let you see how to handle this dialog, and I'll be happy to provide more feedback if needed!

bluescan commented 2 years ago

Moved cubemap and mipmap toolbar buttons over to prop editor window for dds files. Commit 42291a108983c4e70544db67d521018f1ed59e5f