home *** CD-ROM | disk | FTP | other *** search
/ 3D Madness! Companion CD / 3DMADNESS.iso / dosdemos / 3dwkshop / newpov.doc < prev    next >
Text File  |  1993-04-19  |  8KB  |  155 lines

  1. 3D WorkShop Version 2.0
  2. POV Rendering of 3DWS Animations
  3.  
  4. 3D WorkShop version 2.0, release "B", has been re-worked to make it
  5. much easier to render your 3DWS animations with the POVRAY ray tracer.
  6. This produces outstanding true-to-life animations.  The new process
  7. is considerably streamlined, and rendering ray-traced animations is
  8. now as simple as running a batch file.
  9.  
  10. To render 3DWS animations with POVRAY, you will need the following
  11. programs:
  12.         3D WorkShop 2.0, release "B" from Presidio Software
  13.         ANIM3D.EXE - 3DWS file converter by Mike Miller (freeware)
  14.                 available in the PRES Presidio forum on CompuServe,
  15.                 in the POV section of the GRAPHDEV forum on
  16.                 CompuServe, and many BBS's (see list at the end of
  17.                 this document)
  18.         POVRAY - the POV ray tracer (freeware)
  19.                 available in the POV section of the GRAPHDEV forum
  20.                 on CompuServe, and many BBS's (see list at the end
  21.                 of this document)
  22.         (optionally)
  23.         3D_RAW.EXE - additional 3DWS to POV converter, by Mike
  24.                 Miller (available with ANIM3D.EXE above)
  25.         RAW2POV.EXE - RAW data to POV converter, available in
  26.                 the same places as POVRAY, see above
  27.         DECLARE.EXE - POV declaration utility, available in the
  28.                 same places as POVRAY, see above
  29.  
  30. Once you have obtained all of the necessary programs, follow the steps
  31. outlined below to render your 3DWS animations through POVRAY.
  32.  
  33. 1. Create your models, cameras, lights, and animation motion in 3DWS
  34.    in the normal way.  Be sure to save your animation as a 3DW file
  35.    (File/Save in 3DWS) before continuing.
  36.  
  37. 2. In the Render/Config dialog box in 3DWS, use the All/Single/Segment
  38.    selection to indicate the frames you wish to be rendered in POVRAY.
  39.  
  40. 3. Select File/Save POV from the 3DWS menu.  A File Select dialog box
  41.    will appear, with a default name of FRAME001.INC.  Use the default
  42.    name, or one of your own.  Use, if possible, 5 characters for the
  43.    filename - the last 3 characters will contain numbers indicating
  44.    the frame number each file. 
  45.    
  46. 4. The POV File Options dialog box will appear. There are two options
  47.    you can set:
  48.         a. Flat triangle output or smoothed triangle output
  49.                 If you have 3D_RAW.EXE and RAW2POV.EXE and are
  50.                 going to use them, select Flat output.  Smoothed output
  51.                 uses the break angle setting in the Render/Config dialog,
  52.                 and takes MUCH longer to save the POV files.
  53.         b. Clones as objects or Clones as clones
  54.                 "Clone" objects in 3DWS share geometry and surface
  55.                 definitions with the objects they are cloned from.  If
  56.                 you wish your clones to be rendered in POV with the
  57.                 same surface textures as their master objects, select
  58.                 "Clones as Clones" and you will save considerable space
  59.                 in the geometry files, since only the geometry of the
  60.                 master objects is written out.
  61.                 If you want your clones to have different surfaces from
  62.                 their master objects in POV, you MUST select "Clones as
  63.                 Objects".  This writes a separate geometry definition for
  64.                 each clone to the POV file, taking up more space but
  65.                 allowing you to define clone surface textures differently
  66.                 from their master objects.
  67.    Click on "OK" in the dialog box, and your POV files will be written out.
  68.    Note that it is probably a good idea to save your files into their
  69.    own subdirectory, so they can be easily worked with later on (perhaps
  70.    keep a subdirectory called POVSCENE just for this purpose).
  71.  
  72.    3DWS will write the following files:
  73.         XXXXX000.INC - the "frame 0" file, this contains ONLY the
  74.         geometry (the triangles) of the objects in their frame 0
  75.         positions. XXXXX is replaced with the name you chose in
  76.         the file select dialog box.
  77.  
  78.         XXXXXnnn.INC - nnn is replaced with a frame number for the frame
  79.         that this file represents.  These "frame" files contain no
  80.         geometry, only transforms to move, scale, and rotate objects to
  81.         their correct positions for that frame.
  82.  
  83. For the following operations, assume you used the default "FRAME001.INC"
  84. filename for the POV files output from 3DWS, and that the programs listed
  85. above are in your DOS PATH.  We'll also assume you made a 50 frame
  86. animation in 3DWS.
  87.  
  88. 5. The "frame 0" file will be called "FRAME000.INC".  Run the ANIM3D.EXE
  89.    program (just type "anim3d" at the command line).  Anim3d will prompt
  90.    you for:
  91.         a. The name of the frame 0 file (FRAME000.INC)
  92.         b. The number of the starting file (normally 001, be sure to
  93.            put in 3 digits, lead with zeros)
  94.         c. The number of the last frame (in this case, 050)
  95.         d. A name for your POV anim files (we'll use TEST, enter up
  96.            to 5 letters, no extension).
  97.  
  98.    Anim3d will "gather" the transforms in each frame file into proper
  99.    POV declarations, add include statements, and write a POV file
  100.    called TESTnnn.POV for each frame, with nnn replaced by a number
  101.    for that frame.  It also writes a MESH.TEX file with texture
  102.    information, and a batch file called ANIM.BAT which can be used
  103.    to render your animation.
  104.  
  105. 6. If you used the Flat triangles option when saving the POV files from
  106.    3DWS, you should also do the following steps (you can also use these
  107.    steps if you saved smooth triangles from 3DWS, to speed up POV
  108.    rendering):
  109.         a. rename the frame 0 file saved by 3DWS from XXXXX000.INC to
  110.            XXXXX000.dat (where XXXXX are the first five characters
  111.            of the filename).
  112.         b. run 3D_RAW.EXE, passing it the name of the frame 0 file.
  113.                 example: 3D_RAW TEST1000.DAT
  114.         c. run RAW2POV.EXE as shown on the screen when 3D_RAW.EXE
  115.            completes on the RAW file produced by 3D_RAW.exe
  116.                 example: RAW2POV TEST1000.RAW TEST1000.PV -s80
  117.                 the -sXX parameter is the "break angle", just
  118.                 like in 3DWS, for smoothing triangles
  119.         d. run DECLARE.EXE on RAW2POV's output file, now named
  120.            with a .INC extension again
  121.                 example: DECLARE TEST1000.INC
  122.            This will produce a TEST1000.DEC file. Rename this file
  123.            back to the original TEST1000.INC name, which is 
  124.            included by ANIM3D produced files.
  125. 7. Copy the following files to your POV directory for rendering with
  126.    POV (this assumes you saved your files as TEST1XXX.INC originally,
  127.    and gave the name TEST2 for the anim file name when prompted in
  128.    ANIM3D.EXE):
  129.         TEST1000.INC - the frame 0 geometry (either straight from
  130.                 3DWS or run through 3D_RAW,RAW2POV,DECLARE)
  131.         ANIM.BAT - the batch file for rendering the animation
  132.         MESH.TEX - the editable file containing texture declares
  133.                    for all of the objects in the scene
  134.         TEST2*.POV - the individual frame POV files, one for each
  135.                    frame of the animation
  136.         POVRAY.DEF - definition file for POV.
  137.  
  138. 8. Edit POVRAY.DEF, to set up POV to your liking, i.e. antialiasing on
  139.    or off, resolution, buffer sizes, etc. (see POVRAY documentation for
  140.    setting POVRAY command line switches in this file).
  141.  
  142. 9. Edit MESH.TEX, if you want to change the textures assigned to the
  143.    objects.  There will be one declared texture name for each object
  144.    in this file - do not change the declared texture names, only
  145.    the texture definitions (see POVRAY documentation for details on
  146.    defining textures).
  147.  
  148. 10. Run the ANIM.BAT file - this will render all of the scenes in your
  149.     animation one-by-one, saving all of the individual frames with
  150.     the same name as the .POV file for that frame, but with a .TGA
  151.     extension (the files are TARGA files).
  152.  
  153.  
  154.  
  155.