First, I used texassemble to convert the attached 1,2,3 into a 2DArray texture.
texassemble array -y -o number_array.dds 1.png 2.png 3.png
However, this does not add a mipmap, so I tried to add a mipmap on the command line from nvtt_export, but the image is vertically aligned.
nvtt_export -f bc7 -o number_array_mips.dds number_array.dds
If you start the nvtt_export exe, load number_array.dds and save it, 2DArray will create the correct image with mipmaps.
What is the correct option to create it from the command line?



Hi @kouta.satoh, thank you for the question! In NVTTE 2023.3.2, the solution is to add the --extract-from-atlas
--atlas-elements 3
arguments to the command line, like this:
nvtt_export -f bc7 --extract-from-atlas --atlas-elements 3 -o number_array_mips.dds number_array.dds
number_array_mips-2023-3-2-0.dds (256.2 KB)
(I hope to have an improvement here in the future and will update this thread when I do.)
Thanks again!
It’s done! Thank you very much!
Hi @kouta.satoh!
I’m happy to say that the improvement I mentioned in my last comment has made it into NVTT Exporter 2024.1.0. Now, the command line to generate mips for an input DDS texture and output a DDS texture is much simpler – no need for the extra atlas options!
This should work now:
nvtt_export.exe -f bc7 -o number_array_mips.dds number_array.dds
Hope this helps, and thanks again for the issue report!
1 Like