我目前正在完成 iphone 3d programming book
这本书说将以下 python 代码添加到 xcode 的构建阶段,以运行提供的 texturetool。
书名
a. Leave the shell as /bin/sh.
b. Enter this directly into the script box:
BIN=${PLATFORM_DIR}/../iPhoneOS.platform/Developer/usr/bin INFILE=${SRCROOT}/Textures/Grid16.png OUTFILE=${SRCROOT}/Textures/Grid16.pvr ${BIN}/texturetool -m -f PVR -e PVRTC $INFILE -o $OUTFILE
c. Add this to Input Files:
$(SRCROOT)/Textures/Grid16.png
Add this to Output Files:
$(SRCROOT)/Textures/Grid16.pvr
但是在执行此操作时我收到以下消息。
Failed to load image
Failed to perform Encode
Command /bin/sh failed with exit code 1
任何人都可以阐明这一点吗?
最佳答案
您的目录中有空格!
关于iphone - PVR 纹理工具构建阶段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6671680/