home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / bonus / terragen / tginstall0919.exe / DISK1 / _SETUP.1 / Example.tgs < prev    next >
Encoding:
Text File  |  2003-07-03  |  3.1 KB  |  96 lines

  1. ; Example Terragen Script
  2. ; ~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. ; A line beginning with ';' is ignored by Terragen.
  5. ; Each command must start on a separate line.
  6. ; Commands are not case sensitive, so Hello = hello = HELLO.
  7. ; A command must be followed by the correct number of parameters.
  8. ; Parameters can be separated by spaces and/or a single comma.
  9. ; The decimal separator must be a period, eg one tenth is 0.1 not 0,1
  10.  
  11.  
  12. ; Animation setup commands (v0.6.26)
  13. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. ; InitAnim  BaseImageFileName,StartFrameNumber
  15. ; CloudPos  x,y            ;the cloud position at frame 0
  16. ; CloudVel  speed, heading    ;cloud scroll speed per frame
  17. ;                    (for entire animation)
  18.  
  19. ; Per-frame commands (v0.9.01 / DDv1.0.19)
  20. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. ; CamState      xpos,ypos,zpos,head,pitch,bank,zoom,exposure
  22. ;               (set zoom or exposure to a negative value to ignore)
  23. ; CamPos        x,y,z
  24. ; TarPos        x,y,z
  25. ; CamOri        head,pitch,bank
  26. ; CamH          head
  27. ; CamP          pitch
  28. ; CamB          bank
  29. ; Zoom          zoom
  30. ; Exp           exposure
  31. ; ShadowLight   lightness (must be in the range 0 to 100)
  32. ; WaterLevel    z
  33. ; SunDir        head,alt
  34. ;
  35. ; FRend ;(frame render, only works after using InitAnim)
  36.  
  37.  
  38. ; Some notes about Animation Setup commands:
  39. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. ; The InitAnim command tells Terragen that an animation is to be
  41. ; rendered, and initialises the appropriate variables. It is
  42. ; necessary to have this command before any calls to FRend.
  43. ; CloudVel is used to automatically scroll the clouds across the
  44. ; sky. It will position the clouds correctly for each frame, no
  45. ; matter what frame number the script starts at. CloudPos tells
  46. ; Terragen where the clouds would be if it were rendering frame 0.
  47.  
  48. ; If you want to break up a script into smaller parts, you must
  49. ; make sure that each script begins with the same setup commands
  50. ; such as CloudVel and CloudPos. You can then use a different
  51. ; frame number with InitAnim, and provided that CloudVel etc.
  52. ; are identical in each script, all animation should be seamless.
  53. ;
  54. ; The folder specified in InitAnim must already exist.
  55. ;
  56. ; Warning: in Windows 95 and 98, the root directory (eg "C:\")
  57. ; cannot hold more than 256 files. It is recommended that you use
  58. ; a subdirectory with InitAnim, such as "C:\Anim\" or
  59. ; "C:\Anim\pic"
  60.  
  61.  
  62. ; Some notes about Per-frame commands:
  63. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. ; Per-frame commands can be used at the start of the script.
  65. ; There is no restriction on this. Likewise, CloudPos and
  66. ; CloudVel can be used for each frame, but changing CloudVel
  67. ; in the middle of an animation has weird results. If you want
  68. ; non-linear cloud motion, use CloudPos to specify exact
  69. ; positions, and set CloudVel to 0,0.
  70.  
  71.  
  72.  
  73.  
  74.  
  75. ; The following script requires Terragen v0.6.26 or above,
  76. ; and the folder specified in InitAnim must already exist.
  77.  
  78.  
  79. initanim "C:\temp\tganim", 1
  80. ;  (necessary before using FRend)
  81.  
  82. cloudvel 10, 45
  83.  
  84. sundir 120,50
  85.  
  86. frend ;render frame and save
  87. frend
  88. frend
  89. frend
  90. frend
  91. frend
  92. frend
  93. frend
  94. frend
  95. frend
  96.