Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save texture to file #184

Open
ghost opened this issue Feb 23, 2021 · 2 comments
Open

Save texture to file #184

ghost opened this issue Feb 23, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2021

Ideally, there'd also be an "Save texture to file" button as part of the sidebar / image preview, to make it easier to view these textures in external tools.
Right click to "Save image as" does work to some degree (does spector.js try to undo alpha-premultiply or something? I seem to get weird pixel colors), but is very cumbersome.

@sebavan
Copy link
Member

sebavan commented Sep 28, 2021

From #210

We need a technical support for printing DepthStencilTexture which dataType is DEPTH24_STENCIL8.
Now this tool can only print RGBA UNSIGNED_BYTE texture(color Texture) as uniform sampler2D source.
Can this tool support printing depthStencilTexture which dataType is DEPTH24_STENCIL8 ?

@barabanus
Copy link

Also, please store FLOAT texture as TIFF or PFM with exact float values. In its current state you convert float pixels like this:
Math.min(Math.max(<<<FLOAT-PIXEL>>>, 0), 1) * 255
..which would not work for textures which store bone matrices for skeleton animation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants