Commit Graph
90 Commits
Author SHA1 Message Date
Martin ad619de1dc Some ui stuff 2025-01-24 14:45:38 +01:00
Martin 4545be6c88 In file t-interp. 2025-01-24 14:35:07 +01:00
Martin f5e586263f Merge remote-tracking branch 'refs/remotes/origin/main' 2025-01-24 14:27:31 +01:00
Martin 049591ffca Made data slider not a real slider 2025-01-24 14:25:25 +01:00
Martin 82b9d2577c Fixed default camera coordinates 2025-01-24 14:15:55 +01:00
Martin a3b6aab0c7 Wrapping up 2025-01-15 21:25:52 +01:00
Martin d5df4ea188 Added silhoutte gui control 2025-01-15 20:31:40 +01:00
Martin b4c7d3a7a5 Removed debug code 2025-01-15 20:18:25 +01:00
Martin c26462165a Removed old debug code from back when the pause button was not a thing 2025-01-15 20:05:36 +01:00
Martin 98055642bd Commented out some debug code 2025-01-15 20:04:43 +01:00
Martin 2c6594244e Added samples per pixel gui param 2025-01-15 20:03:39 +01:00
Martin 91c9aa193c Made transfer function gui names shorter 2025-01-15 19:55:16 +01:00
Martin f11eff0e96 Added alpha accum gui param 2025-01-15 19:53:50 +01:00
Martin fca8ea3e84 Thought of a fair note after all 2025-01-15 19:46:27 +01:00
Martin acc1705081 Fixed curly braces for no particular reason 2025-01-15 19:45:06 +01:00
Martin 4b95bb728d Implemented picker for color map 2025-01-15 19:44:16 +01:00
Martin 33365a26a7 That note turned out to be wrong tho 2025-01-15 19:43:39 +01:00
Martin 08e3da320a Added notes for later 2025-01-15 19:43:23 +01:00
Martin 30182885f8 Added log slider for opacity const option 2025-01-15 18:46:43 +01:00
Martin edcde639da Renamed GUI elements 2025-01-15 18:33:47 +01:00
Martin 1b32469a69 Renamed sigmoid GUI params 2025-01-15 18:21:43 +01:00
Martin 6085a77c66 Added TODOs in comments 2025-01-15 15:59:07 +01:00
Martin db81b97264 Fixed max temp being wrong for some reason 2025-01-15 15:58:52 +01:00
Martin a1869aba02 Improved silhoutte detection 2025-01-15 15:33:09 +01:00
Martin 3a944138e9 Implemented gradient to actually interpolate the data 2025-01-15 15:22:01 +01:00
Martin 7fa2954e17 Moved and re-implemented gradient 2025-01-15 14:45:38 +01:00
Martin b700216186 Added (more) volume constants 2025-01-15 14:31:41 +01:00
Martin 340efd641d Made camera not upside down 2025-01-11 15:13:23 +01:00
Martin 079e0797e9 Removed debug picture exportanig 2025-01-11 15:11:27 +01:00
Martin 3313e8cf84 Played around with transfer function -> needs GUI 2025-01-11 15:09:42 +01:00
Martin 1aa33e8e14 Fixed rays not interacting with missing volume incorrectly when number of samples > 1 2025-01-11 14:59:27 +01:00
Martin 3714389803 Fixed gradient 2025-01-11 14:39:52 +01:00
Martin b151e70167 Fixed mismatch between coordinates indices (rather min/max values thereof) 2025-01-11 13:26:05 +01:00
Martin 4971d693fd Fixed some TODOs, removed old comments 2025-01-11 13:25:24 +01:00
Martin 9afd242121 Added background colour to consts.h 2025-01-11 13:05:18 +01:00
Martin a5c66fc6ca Removed some old comments 2025-01-11 13:00:43 +01:00
Martin 1711bcf756 Moved transfer function functions to their own file 2025-01-11 11:50:19 +01:00
Martin 417913af2b Determined volume coordinates direction 2025-01-11 10:59:08 +01:00
Martin 6f2ed9e4df It finally looks about right but the code urgently needs to be tidied up 2025-01-10 21:02:18 +01:00
Martin 7c046a099a Playing around with values to actually get something not fully opaque 2025-01-09 23:42:33 +01:00
Martin 09220ced25 Added func. for length of vec3 2025-01-09 20:36:43 +01:00
Martin 1f335dffc9 Added support for float multiplication of vec3 2025-01-09 20:36:14 +01:00
Martin fc2488c578 Improved transfer function business 2025-01-09 12:17:30 +01:00
Martin d978630f26 Analyzed data for transfer-function purposes 2025-01-09 12:17:16 +01:00
Martin 10324eb1ca Made image size bigger cause I am blind 2025-01-09 12:16:55 +01:00
Martin 52a47ed302 Fixed the newly defined math function to actually work with cuda 2025-01-09 12:16:18 +01:00
Martin ec31f3f897 Nevermind, main is not a host function so the new normalize function does not work there 2025-01-09 12:00:14 +01:00
Martin 7cf829a20a Used new normalize functions since we already have it 2025-01-09 11:54:46 +01:00
Martin b107a2a6de Added some more useful math functions 2025-01-09 11:53:28 +01:00
Martin cc8ef12508 Started doing basic silhoutte shading + changed background to gray 2025-01-09 11:43:58 +01:00
Martin c5b8b6cff0 Position the camera better so that the scaled volume is actually visible 2025-01-08 22:57:06 +01:00
Martin d3b88aed30 Forgot to do atomic commits so ... booyah 2025-01-08 22:43:30 +01:00
Martin 47e23dc12e Updated TODOs 2024-12-30 12:12:58 +01:00
Martin 3c7f4d22da Updated readme.md 2024-12-30 12:12:16 +01:00
Martin e983b3e3a8 Moved illumination into own files 2024-12-30 12:09:45 +01:00
Martin 479c450fef Re-implemented vec3 initializations based on new definition 2024-12-30 12:09:12 +01:00
Martin 32d0f3a0fb Added constants + exported external variables 2024-12-30 12:08:29 +01:00
Martin 8e4c5290d7 Re-implemented vec3 constructor to allow for uninitialized declaration (cuda does not allow dynamic intialization) 2024-12-30 12:08:08 +01:00
Martin 41cb852a29 Removed unnecessary -I tag from makefile 2024-12-30 10:51:34 +01:00
Martin 8dca8938ac Added illumination library 2024-12-30 10:48:15 +01:00
Martin be918c5898 Exported ray-caster into its own file 2024-12-30 10:47:51 +01:00
Martin af7e899880 Exported phong into its own file 2024-12-30 10:46:46 +01:00
Martin 77c0ac4933 Also added a Color3 alias 2024-12-30 10:45:44 +01:00
Martin 31514dd705 Renamed what are actually points to use Point3 instead of Vec3 2024-12-30 10:43:52 +01:00
Martin fa49f7eb71 Added a point alias to vec3 2024-12-30 10:42:31 +01:00
Martin 98935c34e4 Exported more constants and removed old code 2024-12-30 10:23:02 +01:00
Martin c7a871d9a4 Added a vec3 constructor from array 2024-12-30 10:17:32 +01:00
Martin 865cc4bcf0 Added += etc. operators to Vec3 2024-12-30 10:14:46 +01:00
Martin d04fade035 Knocked off a few TODOs 2024-12-30 10:11:46 +01:00
Martin 8f23b7edec Exported constants to their own file 2024-12-30 09:48:27 +01:00
Martin daf19578e7 Tried using DVR on actual data 2024-12-29 21:23:58 +01:00
Martin f0c6141f2c Merging branches 2024-12-28 11:36:23 +01:00
Martin ae599a3659 Basic exampe of phong + ray-casting dvr finally works ... though unfortunatelly, loooots of TODOs still 2024-12-23 22:31:36 +01:00
Martin 7fd6944f53 Again, renamed stuff for consistency's sake 2024-12-23 22:17:50 +01:00
Martin 79d0587d97 Renamed var. for consistency with sphere.h 2024-12-23 22:16:22 +01:00
Martin 3dc6c8e05f Added sampling to volume sampling (for the sphere - but technically general) 2024-12-23 22:14:36 +01:00
Martin dfeb8af49e Added (simple) gradient for (simple) phong illumination purposes 2024-12-23 22:04:43 +01:00
Martin a1c6ab16ab Added cross-product to vector implementation 2024-12-23 22:01:09 +01:00
Martin 94e82787e1 Renamed old main and moved to tests folder 2024-12-23 21:53:39 +01:00
Martin ea5f288665 Updated .gitignore 2024-12-23 21:51:28 +01:00
Martin 08b6131825 Added simple volume generation into sphere.h for debugging 2024-12-23 21:50:29 +01:00
Martin f68d6eb6a9 Updated cuda install guide 2024-12-23 19:10:34 +01:00
Martin 962a1c002b Updated cuda install guide 2024-12-23 19:10:26 +01:00
Martin eea25d0429 Added .gitignore 2024-12-23 19:06:33 +01:00
Martin ed3adbd4c4 Added makefile 2024-11-14 18:02:32 +01:00
Martin 1974d7bcc0 Refactored functionality into separate files 2024-11-14 17:54:43 +01:00
Martin efb58fba30 Moved tests 2024-11-14 17:37:14 +01:00
Martin 0bdb7195de Added a few clearing-up code tweaks 2024-11-14 12:17:09 +01:00
Martin c8e17dfe4f Merge branch 'master' 2024-11-14 12:12:12 +01:00
Martin 34971311cb Initiall commit 2024-11-14 12:05:54 +01:00