karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

Only three .ppm files are ever produced #45

Closed madirewolf closed 1 year ago

madirewolf commented 1 year ago

Whenever I compile I only get these three .ppm files

image

is this normal? Where can I find the triangle-id file?

panuelosj commented 1 year ago

Yes, it should be id.ppm

FarzanehCS commented 1 year ago

For the triangle and bunny images, you need to use their own data files. In the main file, change the read_json function call to this for the triangle: read_json(argc <= 1 ? "../data/triangle.json" : argv[1], camera, objects);

and use "../data/bunny.json" for the bunny.