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
329 stars 32 forks source link

Add a 'raw data' viewer like PVRTexTool #166

Closed applecuckoo closed 1 month ago

applecuckoo commented 6 months ago

Basically something like this: raw

bluescan commented 6 months ago

This pvrtextool dialog is for wrapping existing raw data with the pvr header... tacentview does not yet support saving pvr files. However, it may be reasonable to allow display of 'raw' pixel data if you happen to know the pixel-format, dimensions, mipmaps etc. Will leave this request open but may not get to it for a while. Thx for the suggestion.

bluescan commented 2 months ago

Tentative plan here is to make a 'raw import' dialog. The dialog would allow specification of the filetype to create (only lossless filetypes much like the paste filetypes).

Fields of the raw-import dialog would include:

Note: Updating display 'live' would be needed so different dimensions / offsets could be experimented with on the fly. Note: Care would have to be taken that we don't ever overrun the available data by pre-computing the needed buffer size given the width/height/mips/pixel-format. This would then be compared to the actual size of the data being imported (filesize - offset) and if too little data not performing an import. Would need a warning message of some kind.

bluescan commented 2 months ago
image

Still ToDo:

bluescan commented 1 month ago

This is the final version of the import dialog. Will close this issue after testing a few more raw files.

image
bluescan commented 1 month ago

Commit ee73529ed9d1bad6e72c18b0143dac7e9dc4c0fd includes various raw test images.