-
Notifications
You must be signed in to change notification settings - Fork 0
/
How to compile and run.txt
12 lines (10 loc) · 1.33 KB
/
How to compile and run.txt
1
2
3
4
5
6
7
8
9
10
11
12
The program generates ALL the required ppm files CORRECTLY.
HOW TO RUN:
1. Turn on command line on windows 10 (type "cmd" in start menu) and go to the directory you extracted this zip file (type "cd pathname" on command line).
2. Go to "raytracer executable" folder ("cd raytracer executable"), then type like "raytracer.exe testAmbient.txt" then press enter.
3. It will generate ppm file per each command you run with txt file in same directory.
EXTRA INFO:
Since professor said us to use Visual Studio, I have coded the program on Visual Studio 2017 Community version available at "https://visualstudio.microsoft.com", on Windows 10.
If you just run the program by typing "raytracer.exe testCase1.txt" in command line without Visual Studio 2017 installed on your machine, normally it will give you errors if you do not have Visual Studio 2017 installed on your machine.
So you will need to have 2 DLL files to run this program, 32bit version of both "msvcp140.dll" and "vcruntime140.dll". Fortunately, I have put them all in "raytracer executable" directory along with "raytracer.exe" file.
Thus, you should not have a problem to run this program if you are on same WINDOWS 10. Otherwise, please install Visual Studio 2017 Community version on above website and open sln file in "raytracer source" directory, compile in release mode and run manually.