Replies: 2 comments 4 replies
-
It may help to check out branch |
Beta Was this translation helpful? Give feedback.
3 replies
-
All good now |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i' ve so far implemented the raytracer as explained in the books. When testing the BVH i' ve seen the performance boost with a large image as expected. When trying it with a small test image not only using BVH takes significantly longer (which i think is expected since i' ve put the 3 sphere in line so no well separable) but the 2 images are different in both appearance of the materials and position of the blue sphere:
BVH off:
![bvh_off](https://private-user-images.githubusercontent.com/111637024/378408093-3241571b-7712-4c4c-b469-c1e9356d4f66.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDk1MzMsIm5iZiI6MTczOTYwOTIzMywicGF0aCI6Ii8xMTE2MzcwMjQvMzc4NDA4MDkzLTMyNDE1NzFiLTc3MTItNGM0Yy1iNDY5LWMxZTkzNTZkNGY2Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwODQ3MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMjJjMzhjMDhhNmQ2ZTEzMjllNjc1ZDU3NzNiZWM1MGVmMDJjOWUzZGM1MTU5MGUxYjdmMWFkNzBkODhkMTEzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.G5GPYbBpCjiQ2BB_s4btCg9VQVhxsnEGkH6nx23SMNE)
BVH on:
![bvh_on](https://private-user-images.githubusercontent.com/111637024/378408173-fa52a083-ae22-45c2-9cdc-a7aea66f7c6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDk1MzMsIm5iZiI6MTczOTYwOTIzMywicGF0aCI6Ii8xMTE2MzcwMjQvMzc4NDA4MTczLWZhNTJhMDgzLWFlMjItNDVjMi05Y2RjLWE3YWVhNjZmN2M2Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwODQ3MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lOTYyMjU3MzNkOGJmYjZmNDcxOTg2Zjg5YWI3ZDNkNWFmN2VkMmVkY2Q3ODdhY2M4ZjI2NDJlMTE4YjJkYWNjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZnrZx5XUDDzsdmEV_h_jL_P_O-UQoLwDkHwWJvfwTXM)
The inciminated main is
Everything is reproducible by just running the build.sh script in my repo and commenting/uncommenting the BVH line
Beta Was this translation helpful? Give feedback.
All reactions