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

How to assemble a cubemap from pre-generated images per mipmap level #73

Open
ziriax opened this issue Jan 15, 2018 · 7 comments
Open
Labels
tools Applies to texconv, texdiag, texassemble, etc.

Comments

@ziriax
Copy link

ziriax commented Jan 15, 2018

Hello,

If I understand it correctly, one uses Texassemble to combine multiple images into a DDS file, and Texconv to generate mipmap levels.

But how can we assemble a DDS when we already have custom pre-generated images for each mipmap level? It seems Texconv can only generate the mipmap levels, not copy from existing images?

In the DirectX June 2010 SDK a GUI tool for this existed, the DirectX Texture Tool (DXTEX.EXE), that allowed manually loading images into each mipmap level. We want to automate this process.

Any help is appreciated :-)

Thanks a lot,
Peter

@walbourn walbourn added the tools Applies to texconv, texdiag, texassemble, etc. label Jan 15, 2018
@walbourn
Copy link
Member

It shouldn't be difficult to extend texassemble to let you provide miplevels explicitly. I didn't see the value in having it do mipmap generation when you can just do that with texconv on the resulting DDS. It is a little tricky in terms of usability for the tool (should it just resize to the target mip level size or should it fail out?), but it's certainly doable.

@ziriax
Copy link
Author

ziriax commented Jan 15, 2018

Thanks. We tried to use your tools to generate a Prefiltered Mipmap Radiance Environment Map from separate mipmap images for each, but it seems we better use a tool that directly generates these PMREM DDS files. What tool is not yet clear. You are not planning to add such a tool? :-)

@walbourn
Copy link
Member

For the SimplePBR12 sample, we initially used this to create the IBL cubemaps which a number of folks reference as a starting point.

@ziriax
Copy link
Author

ziriax commented Jan 16, 2018

Thanks for the feedback. I was hoping to find a tool for the technique described in this paper from Activision, as it seems it is so fast that it can actually be done at loading-time. But the modified cubemap gen tool will certainly do for now.

@walbourn
Copy link
Member

walbourn commented Jan 18, 2018

There are two other tools to consider:

cmft which is an open source utility. It has both a command-line and a GUI interface.

Lys is a commercial tool for generating the cubemaps, and supports writing BC6 DDS files.

@walbourn
Copy link
Member

walbourn commented Feb 1, 2018

Another project to consider is IBLBaker,

@ziriax
Copy link
Author

ziriax commented Feb 1, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Applies to texconv, texdiag, texassemble, etc.
Projects
None yet
Development

No branches or pull requests

2 participants