Advertisement
Guest User

Convert a sequence of images into a cubemap. Needs IrfanVie

a guest
Oct 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.70 KB | None | 0 0
  1. @echo off
  2. set iview=D:\Applications\IrfanView\i_view64.exe
  3. set ddstool="C:\Program Files (x86)\NVIDIA Corporation\DDS Utilities\nvdxt.exe"
  4.  
  5. %iview% %1_LF.png /rotate_l /convert tmp_1.png
  6. %iview% %1_RT.png /rotate_r /convert tmp_2.png
  7. %iview% %1_BK.png /rotate_r /rotate_r /convert tmp_3.png
  8. %iview% %1_FR.png /convert tmp_4.png
  9. %iview% %1_UP.png /hflip /convert tmp_5.png
  10. %iview% %1_DN.png /convert tmp_6.png
  11. %iview% /panorama=(1,tmp_1.png,tmp_2.png,tmp_3.png,tmp_4.png,tmp_5.png,tmp_6.png) /convert tmp_cubemap.png
  12.  
  13. %ddstool% -u8888 -cubeMap -file tmp_cubemap.png -output %1-cubemap.dds
  14.  
  15. del tmp_1.png
  16. del tmp_2.png
  17. del tmp_3.png
  18. del tmp_4.png
  19. del tmp_5.png
  20. del tmp_6.png
  21. del tmp_cubemap.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement