home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / person / run.inc < prev    next >
Text File  |  1994-12-31  |  2KB  |  52 lines

  1. // Include file to make the Polyray person run
  2. // Created by David Mason
  3. // The transforms that are commented out can be added in to give
  4. // the body a little smoother-looking run.
  5.  
  6. total_frames 25
  7. start_frame 0
  8. end_frame 24
  9. outfile run
  10.  
  11. include "colors.inc"
  12. define personcolor shiny_red
  13.  
  14. // Steps is the number of cycles that will be rendered
  15. // 2 actual steps is a "step"
  16. define steps 1
  17.  
  18. define stepsize total_frames/steps
  19. define time fmod(frame,stepsize)/stepsize
  20.  
  21. if (time<0.5) { define percent (time*2) }
  22.           else { define percent (1-((time-0.5)*2)) }
  23.  
  24. define head_rotation transform { rotate <0,0,0> }
  25. define neck_rotation transform { rotate <0,0,0> }
  26. //define neck_rotation transform { rotate <-15,20-(40*percent),0> }
  27. define torso_rotation transform { rotate <0,0,0> }
  28. //define torso_rotation transform { rotate <0,-20+(40*percent),0> }
  29. define abdomen_rotation transform { rotate <0,0,0> }
  30. //define abdomen_rotation transform { rotate <0,0,-10+(20*percent)> }
  31.  
  32. define left_upper_rotation transform { rotate <-60+(105*percent),0,0> }
  33. //define left_upper_rotation
  34. //transform { rotate <-60+(105*percent),20-(40*percent),10-(20*percent)> }
  35. define left_lower_rotation transform { rotate <-75+(60*percent),0,0> }
  36. define left_hand_rotation transform { rotate <0,0,0> }
  37. define left_finger_rotation transform { rotate <0,0,0> }
  38.  
  39. define right_upper_rotation transform { rotate <45+(-105*percent),0,0> }
  40. //define right_upper_rotation
  41. //transform { rotate <45+(-105*percent),20-(40*percent),10-(20*percent)> }
  42. define right_lower_rotation transform { rotate <-15+(-60*percent),0,0> }
  43. define right_hand_rotation transform { rotate <0,0,0> }
  44. define right_finger_rotation transform { rotate <0,0,0> }
  45.  
  46. define left_thigh_rotation transform { rotate <15+(-95*percent),0,0> }
  47. define left_calf_rotation transform { rotate <120+(-120*percent),0,0> }
  48. define left_foot_rotation transform { rotate <0,0,0> }
  49.  
  50. define right_thigh_rotation transform { rotate <-80+(95*percent),0,0> }
  51. define right_calf_rotation transform { rotate <120*percent,0,0> }
  52. define right_foot_rotation transform { rotate <0,0,0> }