Commit Graph

16 Commits (e72fc1500725cd5c93f51ec75a0634404533cb38)

Author SHA1 Message Date
Brett 2ea273a4a3 BVH appears to be working now
Added multi-hit intersection.
A ray will now return all objects which it intersects with. It's slower then optimal but based on the console output
it appears to be still much faster than without a BVH. More testing is required.
2022-11-16 14:56:50 -05:00
Brett e0569f4f29 BVH now works as first hit 2022-11-16 14:17:41 -05:00
Brett 84b5f4f57b Correct issue in AABB algorithm 2022-11-16 13:46:07 -05:00
Brett 711ddeef17 BVH is not fixed 2022-11-15 21:51:49 -05:00
Brett d7ef170256 BVH works now?
AABB intersect equation was wrong. That's been fixed
Intersection algorithm has been overhauled.
TODO: Code review and cleanup
2022-11-15 20:08:31 -05:00
Brett c881b780ff Raytracer and Debug views now align 2022-11-15 16:23:37 -05:00
Brett 17c7942405 Fixed AABB Sizing issue.
Fixed is a strong word. TODO: I have solved the problem by using isEmpty to tell when it's a fresh AABB
and just returing the passed AABB as the new expanded AABB. This feels lazy and I expect it'll cause issues in the future.
Plus it isn't truely correct and the context which uses it could just use the first obj AABB since there is only 1 object
2022-11-15 00:53:21 -05:00
Brett a28d49b132 Raytracing camera now losely follows the debug camera
Differences in Viewport size change how the scene is rendered but the position and rotation of the camera is close enough.
2022-11-14 20:44:49 -05:00
Brett 7a09800c40 BVH Cleanup / Changes.
Working on fixing issues with the BVH implementation.
Commiting a working changes version. Code has been cleaned up considerably.
A proper code review is nessacary in the near future.
2022-11-13 13:03:48 -05:00
Brett d829b54cc0 Fixed View Matrix. Added input management. Debug view is now viewable.
Input management is not setup for X11, only GLFW.
Debug view still needs normals for basic lighting
GLM will be removed in the next commit
2022-11-13 02:00:27 -05:00
Brett 5e520e3849 Trying to fix the BVH. Investigate the depth check, seems like something is wrong with it. 2022-11-10 10:49:59 -05:00
Brett 1c11a1f9d9 Fixed issue with the projection matrix. View matrix is still a little iffy
Currently it appears that the view matrix is rotating the world
and look at pos view matrix is producing incorrect results. appears as if the height is inverted.
2022-11-07 00:29:12 -05:00
Brett d8bade25a2 Trying to fix issue with project / view matrix 2022-10-31 00:51:51 -04:00
Brett 1e8914b4a5 added ability to pause / stop / restart raytracing. 2022-10-28 15:05:08 -04:00
Brett 7b379f722d Live renderings is now working. 2022-10-28 12:46:32 -04:00
Brett 2597a160f8 Working on fixing GL 2022-10-28 01:44:23 -04:00