////////////////////////////////////////////////////////// /////////////HOW TO MAKE VAPORY WORK ON OSX/////////////// ////////////////////////////////////////////////////////// #1 if you have pip installed, then you can install vapory like this : pip install vapory (in my case I created a virtualenv "mkvirtualenv newEnv" and installed the library inside) #2 Now you need POV Ray first download the whole library to your computer from : https://github.com/POV-Ray/povray/ #3 now try to run this but you are still missing some things so you will get some errors: --------------COMAND LINE----------------- -(3.1) change directory to the folder called "unix". That folder is one of the folders contained in the library you just downloaded from github. cd unix/ -(3.2) inside of the directory run the following command: ./prebuild.sh -(3.3) now change directory, go up one level cd ../ -(3.4) run the following command, you may change the "your name" and email ./configure COMPILED_BY="your name " ( after running the command you might get an error in the last lines, because you were not able to create a "make" file, but you will see how to fix it in step #4) #4 you might get different errors so, the things you might have to do are the following: - (maybe) you are missing numpy library pip install numpy - also it will ask for autoconf (http://brewformulas.org/Autoconf) brew install autoconf - also you will need to install boost brew install boost - maybe also automake brew install automake #5 after all your problems have been fixed and you can run step 3.4 without geting any error, you can run the following command on the command line make (yes, just write "make" and hit enter) #6 if everything is going well until now you should be able to install it so , just type this make install #7 DONE! now you copy and paste this code to a .py file and run it. if everyhing is working fine you should see a file called "purple_sphere.png" saved in the same folder where your code is # LET'S DRAW A PURPLE SPHERE ! from vapory import * camera = Camera( 'location', [0, 2, -3], 'look_at', [0, 1, 2] ) light = LightSource( [2, 4, -3], 'color', [1, 1, 1] ) sphere = Sphere( [0, 1, 2], 2, Texture( Pigment( 'color', [1, 0, 1] ))) scene = Scene( camera, objects= [light, sphere] ) scene.render("purple_sphere.png", width=400, height=300 )