home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1996 #6 / AmigaPlus-eXtra-6-96.iso.7z / AmigaPlus-eXtra-6-96.iso / programme / a-render / doc / more_define.doc < prev    next >
Text File  |  1987-03-22  |  7KB  |  257 lines

  1.  
  2. More Define Instructions:
  3. -------------------------
  4.  
  5. Type 'define heart'
  6.   The view pyramid and light source will be displayed upon entry to define.
  7.   The current view and light filenames are retrieved from the .world file.
  8.  
  9.  
  10.  
  11. First we start just like we did before:
  12. -----------------------------------------------
  13. Loading our previously designed heart:
  14.  
  15. Click in a window with your left mouse button, then pick LOAD AN OBJ up
  16.   in the Define DB's menu.  When the screen flips, click the left button
  17.   again and type in the file name of our heart, 'digi.obj', then <RETURN>.
  18.   When asked for the object number, type 1, then <RETURN>.
  19.   You can pull down the screen by grabbing the top line and pulling down.
  20.   Check that digi.obj loaded correctly.  (Digi always saves its file as
  21.   digi.obj .  Refer to the CLI commands rename and copy if you need them.)
  22.  
  23.  
  24. Now add the new objects to memory:
  25. ----------------------------------
  26.  
  27. Load the objects shaft.obj, head.obj and feather.obj to objects 2, 3, and
  28.   4, respectively.  These are the objects we created with the lathe.
  29.   Just follow the steps as for loading digi.obj .
  30.  
  31.  
  32. To make it easier to load these four objects later, do this:
  33. Click in a window.
  34. Pick SAVE OBJECTS in the Define DB's menu.
  35. Click in the window.
  36. Type 'heart.objs <RETURN>'
  37. Now, next time you enter, just LOAD AN OBJ, typing in heart.objs for the
  38.   filename.  Type 1 for the object number to start loading at object 1.
  39.  
  40.  
  41.  
  42.  
  43. Click in a window.
  44. Pick LOAD ENTITYS in the Define DB's menu.
  45. Click in the window.
  46. Type 'heart.ent <RETURN>'       This retrieves our present heart entity.
  47.  
  48. Now to define the location and other attributes of the 3 new entitys in 
  49. our world:
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. Click in a window with your left mouse button.
  72. Pick 'Edit Entitys' in a menu.
  73.   Click in the console window and enter the following values
  74.   in response to the prompts.
  75. Edit Frame Number -        1
  76. Edit Entity Number -       2
  77. Parent Object -            2
  78. X Location -              50
  79. Y Location -              48
  80. Z Location -              62
  81. X Scale -                  2
  82. Y Scale -                  2
  83. Z Scale -                  2
  84. X Rotation -               0
  85. Y Rotation -               0
  86. Z Rotation -             157
  87. Red Content -             .7
  88. Green Content -           .7
  89. Blue Content -            .7
  90. Randomize -                0
  91. Diffuse Coefficient -     .8
  92. Specular Coefficient -    .8
  93. Specular Power -          90
  94. Parent Object -            0    non-functional, still type them in as zero.
  95. Child Count -              0          "
  96.  
  97. Click in a window with your left mouse button.
  98. Pick 'Edit Entitys' in a menu.
  99.   Click in the console window and enter the following values
  100.   in response to the prompts.
  101. Edit Frame Number -        1
  102. Edit Entity Number -       3
  103. Parent Object -            3
  104. X Location -              50
  105. Y Location -              48
  106. Z Location -              62
  107. X Scale -                  2
  108. Y Scale -                  2
  109. Z Scale -                  2
  110. X Rotation -               0
  111. Y Rotation -               0
  112. Z Rotation -             157
  113. Red Content -             .2
  114. Green Content -           .2
  115. Blue Content -            .9
  116. Randomize -                0
  117. Diffuse Coefficient -     .6
  118. Specular Coefficient -     2
  119. Specular Power -         100
  120. Parent Object -            0    non-functional, still type them in as zero.
  121. Child Count -              0          "
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. Click in a window with your left mouse button.
  137. Pick 'Edit Entitys' in a menu.
  138.   Click in the console window and enter the following values
  139.   in response to the prompts.
  140. Edit Frame Number -        1
  141. Edit Entity Number -       4
  142. Parent Object -            4
  143. X Location -              50
  144. Y Location -              48
  145. Z Location -              62
  146. X Scale -                  2
  147. Y Scale -                  2
  148. Z Scale -                  2
  149. X Rotation -               0
  150. Y Rotation -               0
  151. Z Rotation -             157
  152. Red Content -             .9
  153. Green Content -           .7
  154. Blue Content -            .2
  155. Randomize -                0
  156. Diffuse Coefficient -     .8
  157. Specular Coefficient -    .4
  158. Specular Power -          50
  159. Parent Object -            0    non-functional, still type them in as zero.
  160. Child Count -              0          "
  161.  
  162.  
  163. Click in a window.  
  164. Pick 'SAVE ENTITY' in the OPTION menu.
  165. Click in a window.  
  166. Type in a entity filename (use heart.ent again) as the save file.
  167.  
  168.  
  169.  
  170. Click in a window.
  171. Now pick 'MAKE PHYS DB' in a menu to create the physical database.  Type 
  172. in a physical filename (use heart.phys), this is the same name we typed in
  173. the world file for the physical file.  Type in '1' for the frame number.
  174. Make Phys will take a minute.  The physical database is the result of 
  175. processing the object-shape specs, and the entity specs such as location,
  176. scale, rotation, surface properties into a single file in a real space 
  177. coordinate system.  The new object will be drawn in wire-frame in the 
  178. three views.
  179.  
  180.  
  181. Click in a window.
  182. Pick quit in a menu to exit Define.
  183.  
  184.  
  185. This is a good place to take a break if you like.  If you come back to
  186. A-Render later, type:
  187. 'cd HEART'
  188. to get back to the HEART subdirectory, where you left off.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201. Adding light sources -
  202.  
  203.   To add a light source, click in a window and pick EDIT LIGHT in a menu.
  204.   If you have 1 light source, type in 2 for the new light number. 
  205.   You will get the same light prompts as before, try these numbers:
  206.     Light X Location         -  40 
  207.     Light Y Location         -  75
  208.     Light Z Location         -  45
  209.     Light Red Intensity      -  .7
  210.     Light Green Intensity    -  1
  211.     Light Blue Intensity     -  1
  212.     Light Distance Falloff   -  1
  213.  
  214. You should now see two light sources (displayed as dots) in the 3 views.
  215. Use SAVE LIGHTS to save them again as heart.lights.
  216.  
  217.  
  218.  
  219. Editing the view -
  220.  
  221. Click in a window.
  222. Pick EDIT VIEW in the Define DB's menu.
  223. Click in the window.
  224. Type in these values at the prompts:
  225.  
  226.   Location X                    -   50
  227.   Location Y                    -  100
  228.   Location Z                    -   60
  229.   Rotation X                    -   90
  230.   Rotation Y                    -    0
  231.   Rotation Z                    -    0
  232.   Distance to image plane       -   20
  233.   Real image plane size in X    -   10
  234.   Real image plane size in Y    - 7.25 
  235.   Image plane pixels in X       -  320
  236.   Image plane pixels in Y       -  399
  237.  
  238.  
  239. Click in a window.
  240. Pick SAVE VIEW in a menu.
  241. Click in the window.
  242. Type '/VIEWS/top <RETURN>' .
  243.  
  244.  
  245. Click in a window.
  246. Pick QUIT.
  247.  
  248.  
  249. Before your image will render with the top view, remember you must use
  250. the program Edworld to change the view filename in the world file !!!!
  251.  
  252. This is the conclusion of the tutorial, and the creation of the heart
  253. picture.  Use edworld to set the RESOLUTION MULTIPLIER to 1 for the
  254. highest quality image.  Rendering of the HEART at this resolution
  255. will take about 20 hours.
  256.  
  257.