Odd behavior parsing certain directory paths with cmgen command line #5121
Unanswered
EnviralDesign
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I think you need to be consistent and escape all the ampersands, not just the last one in the output file name. Ampersands on Windows are used to separate commands. Not sure why the behavior is different between the multi-line and single line command though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This may very well be a windows command line quirk.. but I'm not sure.
If I run a bat file that looks like this, everything works fine:
however, if I simply remove the end of line carrot symbols, and reduce the command to one line like this:
A weird thing happens - cmgen creates the dfg.dds successfully, creates an sh.txt (but with all zeroes inside) and also creates the sub folder containing all the cubemap mip level tiles, but all the tiles are black when viewed.
I do believe my issue has something to do with the ampersand in the name of the folder (out&put) but I find it really odd that it sort of works, instead of totally breaks.
I have to escape the ampersand in the last argument otherwise I get a "file could not be found" type of error.
Any ideas on if this is a path parsing issue on my end, or if this is a bug in the way the command line stuff is parsed?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions