dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

Wrong corner for triangle.json #3

Closed Mincelot closed 5 years ago

Mincelot commented 5 years ago

I noticed that the file triangle.json has one of it's corner set to a huge number [-0.5,0,0], [0.5,0,0], [0,8660254038,0] <- This one I'm pretty sure it should have a decimal point and should be [0,0.8660254038,0], otherwise it will look like a rectangle in the final image.

dilevin commented 5 years ago

Yes, the decimal point is missing (it should be the same as triangle.json in A2).

dilevin commented 5 years ago

I've fixed this in the .json file. It should work properly now.