Commit Graph
77 Commits
Author SHA1 Message Date
adamf 4e67bbef8d Fixed primitives and working towards view matrix 2023-11-25 21:15:46 -05:00
adamf 5bd8981270 Nicer scene 2023-11-25 21:15:27 -05:00
adamf 4721a3cc09 Changed to f64 floating point 2023-11-25 14:35:11 -05:00
adamf 348be665c9 Drawing optimisations 2023-11-25 13:22:54 -05:00
adamf 055f3b6a71 Wacky primitives 2023-11-25 13:22:36 -05:00
adamf 045c3a8beb Scripting in gui 2023-11-25 13:22:13 -05:00
adamf b737e35de8 Added dimensionless camera 2023-11-25 13:21:24 -05:00
adamf 137fb9f6d7 Changed UI and integrated rays into camera 2023-11-25 03:15:59 -05:00
adamf ab284e8e98 Fixed camera 2023-11-25 00:04:41 -05:00
adamf ccac1f414d Added torus 2023-11-24 22:35:20 -05:00
adamf 1fbcb8f79b gitignore 2023-11-24 22:34:00 -05:00
adamf c642572b9f Added Torus and Steiner Surface 2023-11-24 22:33:55 -05:00
adamf 230a28691c Changed name for scene 2023-11-24 22:33:33 -05:00
adamf 525fbaaef6 Added safter error handling 2023-11-20 23:37:55 -05:00
adamf 91bda4a56f Added cylinder primitive 2023-11-20 21:15:57 -05:00
adamf 6d332199e1 Moved ray intersection code into ray class 2023-11-20 20:19:38 -05:00
adamf 512f81031b Massive cleanup for state.rs 2023-11-20 20:11:34 -05:00
adamf 5e86bc2df3 Cleaned up imports 2023-11-20 20:04:47 -05:00
adamf fe24f207f8 Removed compiler flags 2023-11-20 20:04:36 -05:00
adamf fcb6695a0d Removed Intersection::new as it was never used 2023-11-20 20:04:22 -05:00
adamf 47276e1bdc Fixed rendering test.rhai 2023-11-20 00:14:00 -05:00
adamf 1afb1a8e19 Adding test files 2023-11-19 21:39:24 -05:00
adamf 3dbbb67536 Adding scripting language 2023-11-19 21:39:03 -05:00
adamf f31ebb06bd Working scripting 2023-11-19 15:33:04 -05:00
adamf 7d04822b1f Readme 2023-11-19 12:24:00 -05:00
adamf f0843c8869 added clone to light 2023-11-19 12:23:48 -05:00
adamf 4d097844ca added rhai 2023-11-19 12:22:16 -05:00
adamf 53b1fa5d2d Added clone 2023-11-19 12:22:00 -05:00
adamf edb9ff8c53 Added gui controls for camera dbugging 2023-11-18 14:31:47 -05:00
adamf 9d6becb851 Rust uses degrees? 2023-11-18 13:47:15 -05:00
adamf ddb4603d07 Fixing aspect ratio and fov 2023-11-18 13:14:56 -05:00
adamf 9866679dc7 Fixed out of bounds error 2023-11-17 21:22:04 -05:00
adamf 93621f36ed Fixed out of bounds error 2023-11-17 21:21:34 -05:00
adamf 0c1313a913 Added multi-threading, but doesn't seem to be as fast? 2023-11-17 21:16:27 -05:00
adamf 079dfac48f Added multi-threading, but doesn't seem to be as fast? 2023-11-17 21:15:20 -05:00
adamf f36fec488d Bounding volume heirarchy to be implemented 2023-11-17 21:05:30 -05:00
adamf 0a0e5cc55a Working mutex on pixels 2023-11-17 21:04:27 -05:00
adamf 87e82e4eea Changed Box to be Cube as it was interfering with Box 2023-11-17 18:37:40 -05:00
adamf ab3705d575 Changed to unit vectors 2023-11-17 15:11:08 -05:00
adamf 7d3426254b Refactored event handling 2023-11-17 15:07:22 -05:00
adamf cba39b1b53 Added background pixels 2023-11-17 14:25:59 -05:00
adamf 09f613f59f Changed colour ray to an optional return 2023-11-17 14:15:50 -05:00
adamf 054a3d459f Added epsilon to t to ensure rayremains within box 2023-11-17 14:11:22 -05:00
adamf cf56edace6 Added Unit wrapper for normals
A
2023-11-17 14:02:18 -05:00
adamf 9383ef5bbf Working realtime tracing 2023-11-16 17:14:24 -05:00
adamf a80da71455 Added inverse matrix to camera 2023-11-16 01:30:35 -05:00
adamf 94aea2678c Working imgui 2023-11-16 01:21:34 -05:00
adamf 362c5160f4 wgpu now working 2023-11-15 19:50:13 -05:00
adamf 4762edbe03 Added windowing system and eventloop 2023-11-15 16:57:02 -05:00
adamf 80fcc6c8bc Removed pixels
Finished raytracer
Reimplementing imgui
2023-11-15 16:56:19 -05:00
adamf 2e69164dde Added phong shading 2023-11-13 01:26:59 -05:00
adamf 2c65a48cb2 Added scene, raytracer, pixel display and lights 2023-11-13 00:42:23 -05:00
adamf 29e22a0afa implementing shaders 2023-11-13 00:41:49 -05:00
adamf 15c39e3c05 used pixels instead of state 2023-11-12 20:21:47 -05:00
adamf 83e45b6860 Implemented mesh 2023-11-12 15:11:37 -05:00
adamf 0daa6defb9 Added box primitive 2023-11-12 13:48:25 -05:00
adamf 1b708049a9 fixed lifetimes 2023-11-12 05:11:11 -05:00
adamf 04bc278f4a Added sphere, circle, cone 2023-11-12 03:47:19 -05:00
adamf 9c863dc8bf Added sphere, circle, cone 2023-11-12 03:47:03 -05:00
adamf dfc5d1ad23 Added primitives 2023-11-12 02:06:46 -05:00
adamf eab69336a1 first working triangel 2023-11-11 20:32:44 -05:00
adamf b4bc726fee fuck what I wanted to do 2023-11-11 19:34:51 -05:00
adamf 5492d63ff6 Added display.rs 2023-11-11 18:13:57 -05:00
adamf 214cc1de40 Added program class for generic programs 2023-11-11 18:13:37 -05:00
adamf dbbf4bf110 Completed challange 2 2023-11-11 12:02:15 -05:00
adamf 6ff33649b1 Added rendering pipeline and window 2023-11-11 11:34:08 -05:00
adamf 943f54a4b8 Added ray module 2023-11-11 00:41:03 -05:00
adamf ae9f35d116 added all modules to be used 2023-11-11 00:40:50 -05:00
adamf 24c7e719b0 added winit 2023-11-11 00:32:03 -05:00
adamf a19448e92b Revert "Added"
This reverts commit 40c04c875f.
2023-11-11 00:30:23 -05:00
adamf 40c04c875f Added 2023-11-11 00:28:55 -05:00
adamf fefa7830d1 Started using lin alg library 2023-11-11 00:27:26 -05:00
adamf bd458d4922 Added copy and clone 2023-11-10 23:49:41 -05:00
adamf 246bc697ba creating startup environment 2023-11-10 23:33:33 -05:00
adamf 643d53dd87 Implemented Vec4 2023-11-10 23:33:05 -05:00
adamf eb5d866ade webgl 2023-11-10 10:23:11 -05:00
adamf 2f2ebb3824 Switched to beryllium 2023-11-10 09:53:53 -05:00