Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. ###
  2. # Use all scene modifiers
  3.  
  4. imagesize 800
  5. background 0.3 0.3 0.3
  6. ambient 0.6 0.6 0.6
  7.  
  8.  
  9. ###
  10. # lights in the scene
  11. # random positions and colours
  12.  
  13. light 10.0 0.0 -10.0 0.4 0.4 0.4
  14. #light 0.0 10.0 -10.0 0.8 0.8 0.8
  15. #light -10.0 10.0 -10.0 0.4 0.4 0.4
  16. #light 15.0 10.0 -5.0 0.4 0.4 0.4
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. ###
  24. # sphere 1: red - top left (rotated ==> left ??)
  25. sphere 1.0 0.0 1.0 1.0
  26. material 1.0 0.0 0.0 0.0 0.0 0.0 0.5 0.5 0.5 100
  27.  
  28. ###
  29. # sphere 2: green - top right (rotated ==> top ??)
  30. sphere 4.0 0.0 4.0 3.0
  31. material 0.0 1.0 0.0 0.0 0.0 0.0 0.5 0.5 0.5 100
  32.  
  33. ###
  34. # sphere 3: blue mirrored - centre
  35. sphere -1.5 1.0 3.0 1.0
  36. material 0.0 0.0 1.0 0.0 0.0 0.0 0.5 0.5 0.5 100
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. endview
  44. ######
  45.  
  46. This scene is an example of specifying all scene information
  47. (image size, background colour, ambient light, and camera rotation)
  48.  
  49. some lights
  50. (placed in random positions, with random colours)
  51.  
  52. and some spheres
  53. (with different material properties
  54. -- diffuse, specular, mirror
  55. )
  56.  
  57. ######
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement