Fix radiance filer on win

This commit is contained in:
Lubos Lenco 2017-01-13 10:55:59 +01:00
parent b07fecee66
commit 8f03e7679f
2 changed files with 5 additions and 5 deletions

View file

@ -122,8 +122,8 @@ def write_probes(image_filepath, disable_hdr, cached_num_mips, generate_radiance
if armutils.get_os() == 'win':
subprocess.call([ \
cmft_path,
'--input', input_file,
'--filter radiance',
'--input', input_file.replace(' ', '\ '),
'--filter', 'radiance',
'--dstFaceSize', str(face_size),
'--srcFaceSize', str(face_size),
'--excludeBase', 'false',
@ -143,12 +143,12 @@ def write_probes(image_filepath, disable_hdr, cached_num_mips, generate_radiance
'--outputGammaNumerator', '1.0',
'--outputGammaDenominator', output_gama_numerator,
'--outputNum', '1',
'--output0', output_file_rad,
'--output0', output_file_rad.replace(' ', '\ '),
'--output0params', 'hdr,rgbe,latlong'])
else:
subprocess.call([ \
cmft_path + \
' --input ' + input_file + \
' --input "' + input_file + '"' + \
' --filter radiance' + \
' --dstFaceSize ' + str(face_size) + \
' --srcFaceSize ' + str(face_size) + \
@ -169,7 +169,7 @@ def write_probes(image_filepath, disable_hdr, cached_num_mips, generate_radiance
' --outputGammaNumerator 1.0' + \
' --outputGammaDenominator ' + output_gama_numerator + \
' --outputNum 1' + \
' --output0 ' + output_file_rad + \
' --output0 "' + output_file_rad + '"' + \
' --output0params hdr,rgbe,latlong'], shell=True)
# Remove size extensions in file name

BIN
tools/cmft/cmft_new.exe Normal file

Binary file not shown.