Hi,
I’m currently trying to automate the creation of texture arrays using the PVRTexToolCLI, but for some reason, only the first input file gets used, all other files get ignored.
My command looks like this:
PVRTexToolCLI -i Image1.png Image2.png Image3.png Image4.png -array -f R16G16B16A16,UF,lRGB -o Test.dds
And the output is this:
Orphaned parameters found: “Image2.png” (Ignored)
Orphaned parameters found: “Image3.png” (Ignored)
Orphaned parameters found: “Image4.png” (Ignored)
Warning: Texture Array specified, but only one input file (or set of input files for a Cube Map) has been specified.Compressing…
Saved texture to Test.dds
Is there a difference between specifying multiple files and a set of files?
Thank you for any help!
The help states that you need commas in between multiple inputs. Otherwise the command line parser can’t tell single vs. multiple inputs.
-i Image1.png, Image2.png, Image3.png, Image4.png
Oh, I forgot to mention that, I actually tried it with commas between the inputs first, but this gave the same error, only with commas in the parameters in the error message:
Orphaned parameters found: “Image2.png,” (Ignored)
Orphaned parameters found: “Image3.png,” (Ignored)
Orphaned parameters found: “Image4.png” (Ignored)
It seems wrong to me that the commas belong to the parameters, so I removed them.
It works for me with -i image0.png,image1.png,… Note that you might want to use -i ‘dir with spaces/image0.png’,’… The usage message has spaces in between the names, but that just breaks the command line parser.
That was it! Thank you, I can’t believe I never tried it without the spaces.