home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / clpl / clpl.txt < prev    next >
Encoding:
Text File  |  1994-05-14  |  3.3 KB  |  78 lines

  1. ------------------------------------------------------------
  2. Cloudy Planet PovRay 2.1 Script files, created by Mike Young.
  3. ------------------------------------------------------------
  4.  
  5. A bozo color mapped sphere which is rotated through 360 degrees one degree
  6. at a time right to left, with a slightly larger very Clear, White & Gray
  7. bozo sphere rotated left to right, also there are five orbiting spheres which
  8. were generated by whirl3d (not yet released into the public domain) tracking
  9. around the planet like five moons.
  10.  
  11. Mail me on CompuServe 100031,764 if you have any comments, ideas, a better
  12. way of achieving the same effect or problems.
  13.  
  14. Zip file contents, time, size and hardware considerations.
  15. ---------------------------------------------------------
  16.  
  17. WHIRLINC.ZIP - 360 INC files WHIRL???.INC
  18. CLPL.POV     - Script file
  19. CLPLGEN.BAT  - Batch file for concatenating the 
  20.                CLPL.POV and the WHIRL???.INC to generate CLPL???.POV
  21.  
  22. CLPL.BAT     - To drive the whole thing, example below.
  23. CLPL.GIF     - Sample image 320x240x256, with 10% of the moons to give an
  24.                idea of their orbits.
  25.  
  26. call runpov D320 CLPL001 +B16 +K1 +A -P -D -X +V
  27. call runpov D320 CLPL002 +B16 +K2 +A -P -D -X +V
  28. call runpov D320 CLPL003 +B16 +K3 +A -P -D -X +V
  29. .
  30. .
  31. .
  32. etc.
  33.  
  34. I had to tweak the RUNPOV batch file to zip up the TGA output and delete the
  35. TGA as below this was because of the size of the 360 TGA files would take
  36. 84 meg (which I didn't have). 
  37.  
  38. Below the file RUNPOV tweaked.
  39.  
  40. c:\povray\povray c:\povray\%1.def -i%2.pov -o%2.tga %3 %4 %5 %6 %7 %8 %9
  41. pkzip %2 %2.tga
  42. del %2.tga
  43.  
  44. I discovered that DTA.EXE will take ZIP files as input so I used the below
  45. command line to construct the FLI animation file.
  46.  
  47. DTA clpl???.ZIP /Oclpl.FLI
  48.  
  49. I have problems selecting the res. output from POVRAY for FLI generation
  50. you may have to experiment for your own requirments. I choose 320x240 by
  51. changing my D320.DEF file and a normal camera res. of right <0.0,0.0,0.0>,
  52. but while writing this text I discovered why I was getting the squashed
  53. 320x200 images when viewing the TGA's. I believe if you have the res. at
  54. 320x200 (correct for FLI's) and have a right <1.6,0.0,0.0> the aspect
  55. ratio is correct, but the camera or zoom may need to be changed for the
  56. correct view. (Hope all this is not to confusing).
  57.  
  58. The run time was 2 minutes 10 seconds on my 486DX266 for each frame times 
  59. 360 was a long time of 13 hours, with 15 or so minutes to create the FLI.
  60. I ran it when I went to bed, went to work, got back and then viewed it.
  61.  
  62. Disk space needed for the zipped TGA's is 11,143,591 bytes.
  63. (Which can be deleted if necessary after the FLI has been successfully
  64. created.)
  65.  
  66. Disk space needed for the CLPL.FLI is 3,932,996 bytes.
  67.  
  68. The FLI runs well on my machine which has 8 meg of total RAM but it did
  69. take a while to load.
  70.  
  71. I use my own FLI player which I wrote with Visual Basic (WIN) to play the 
  72. FLI's I generate under windows, I just wrote the front end part and utilised
  73. the VBPLAY.VBX & AAPLAY.DLL routines which came with another windows FLI viewer.
  74. I hate having a title bar or buttons around graphics, only the image with
  75. a speed control the file open in a pop-up form which can be hidden.
  76.  
  77. ------------------------------------------------------------ CLPL.TXT End
  78.