home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / povq / pov.btm next >
Text File  |  1993-10-11  |  1KB  |  49 lines

  1. @echo off
  2. rem
  3. rem POV.BTM
  4. rem
  5. rem A Queueing program for POV-ray.
  6. rem
  7. rem Written by Dragon Cotterill. If you like this program please send e-mail
  8. rem to CIS:100014,3230 or draconis@cix.compulink.co.uk
  9. rem
  10. if exist %@name[%1].pov goto process
  11. if not exist d:\povray\povq.dat goto no_files
  12. set total=%@lines[d:\povray\povq.dat]
  13. echo There are %total files in the render list.
  14. set job=%@line[d:\povray\povq.dat,1]
  15. echo.
  16. echo Processing %job  -  Removing from Queue
  17. if %total==1 goto zap_file
  18. set file=%@unique[c:\]
  19. set count=%total
  20. echo ``>>%file
  21. :loop
  22. if %count==1 goto finish
  23. echo %@line[d:\povray\povq.dat,%@eval[%total-%count+2]]>>%file
  24. set count=%@eval[%count-1]
  25. goto loop
  26. :zap_file
  27. del d:\povray\povq.dat >NUL
  28. goto okay
  29. :finish
  30. set total=
  31. set count=
  32. del d:\povray\povq.dat >NUL
  33. move %file d:\povray\povq.dat >NUL
  34. set file=
  35. :okay
  36. pov %job
  37. :process
  38. povray +i%@name[%1].pov +o%@name[%1].tga +v +l\povray\include +l\povray\include2 +b50 %2 %3 %4 %5 %6 %7
  39. rem include contains all the standard stuff. You know colors, textures etc.
  40. rem include2 contains all my specific stuff like image maps etc.
  41. tga2gif %@name[%1]
  42. goto end
  43. :no_files
  44. echo.
  45. echo There are no files to process.
  46. quit
  47. :end
  48. pov
  49.