Commit Graph

232 Commits

Author SHA1 Message Date
f57ef1c141 Extract Decomp2 to mathx 2024-09-15 11:42:05 +03:00
43b0eb5836 Remove unused imports 2024-09-15 11:42:05 +03:00
b10d30c902 Extract iteration limiting into a function 2024-09-15 01:10:15 +03:00
1c283a6fbe Centralize subspace matching 2024-09-15 00:55:14 +03:00
8394e4108c Privatize methods 2024-09-15 00:52:57 +03:00
ef2be3fcc5 Check Traceable is the same as DebugTraceable 2024-09-15 00:52:32 +03:00
644530e312 Optimized implementation of <Space as Traceable>::trace 2024-09-15 00:21:42 +03:00
d8eed54c8b Extract camera→ray conversion 2024-09-15 00:04:14 +03:00
e9993182bf Split ray tracing and trace display 2024-09-14 23:24:37 +03:00
88da1aa582 Allow using Decomp2 like a matrix 2024-09-14 22:50:42 +03:00
529d4ac7db Merge float_fun into mathx 2024-09-14 22:41:03 +03:00
4dcc256127 Add the traits I *want* to be there. 2024-09-14 22:33:27 +03:00
5b09bb780e Add internal camera 2024-09-14 20:00:24 +03:00
dbd873a3ad Reorder cameras, for better look 2024-09-14 19:59:39 +03:00
d12e6a06cf Remove a questionable method 2024-09-14 19:54:20 +03:00
a4e2573a7c Use put_object for objects as well 2024-09-14 19:50:49 +03:00
f06e502e26 Simplify put_object 2024-09-14 19:24:27 +03:00
0efa513130 Use put_object! 2024-09-14 19:24:13 +03:00
2a08b6c379 Orthonormalize! 2024-09-14 19:07:56 +03:00
871d2d822b Document ScaledMetric 2024-09-14 18:28:07 +03:00
f5f94d3c1c Add put_object 2024-09-14 18:27:57 +03:00
0c0e22423d Remove unused code 2024-09-14 17:31:10 +03:00
45e446ae3e Extract projections into functions 2024-09-14 17:25:25 +03:00
3a357553e4 Print usage on misusage 2024-09-14 17:00:40 +03:00
97286085ab Allow getting all ray-mesh intersections (useful for translucent objects) 2024-09-14 15:55:01 +03:00
3b4338b033 Early “return” 2024-09-14 15:18:35 +03:00
fca01e05f4 Extract mesh tracing into the lib crate 2024-09-14 15:14:15 +03:00
0d212cb59c Oops, that made no sense 2024-09-14 15:13:59 +03:00
8e4cc86340 Move mesh_loader to the lib crate 2024-09-14 15:07:56 +03:00
2a41743fe5 fmt! 2024-09-14 15:02:10 +03:00
e58f3c5a17 Reduce useless debug lines 2024-09-14 14:52:46 +03:00
d2d4dcdbca Simplify riemann::trace_iter 2024-09-14 14:23:47 +03:00
d90f473bd6 Test riemann::trace_iter 2024-09-14 14:21:24 +03:00
4b12fcf045 Extract boundary tracing into a function 2024-09-14 13:35:39 +03:00
241f070769 Suppress a stupid warning 2024-09-14 13:27:31 +03:00
5f866737a8 Replace a diverging match with an if let 2024-09-14 13:13:22 +03:00
ee2d7d1b67 Merge two subspace matchings 2024-09-14 13:10:26 +03:00
5835549503 Merge branch 'mesh' 2024-07-02 12:08:09 +03:00
97c089a7bc Port to GLAM 2024-07-02 12:06:21 +03:00
09299b05a4 Move to subdirs 2024-07-02 12:06:21 +03:00
11d2022544 WIP 2024-07-02 12:06:21 +03:00
83b41f4a65 Simplify 2024-07-02 12:06:21 +03:00
5be9b616f2 Move color conversion out of color calculation 2024-07-02 12:06:21 +03:00
ea68369012 More concern separation 2024-07-02 12:06:21 +03:00
a59f217b2b Cleanup 2024-07-02 12:06:21 +03:00
8a5bce290c Animate! 2024-07-02 12:06:21 +03:00
afc4970023 Extract rendering into a function 2024-07-02 12:06:21 +03:00
be6f8888e0 Small Fixes™ 2024-07-02 12:06:21 +03:00
354135949f Show the image in a window 2024-07-02 12:06:21 +03:00
abf6a857a4 Everything for the tests! 2024-07-01 12:00:55 +03:00
a9685c81fd Extract CS management into a file 2024-06-30 15:38:27 +03:00
54aa1369ab Clean the imports up 2024-06-30 15:37:11 +03:00
fce3203859 Reduce MetricCS API 2024-06-30 15:37:09 +03:00
e3d068579c Unify Ray and Location transforms 2024-06-30 15:35:52 +03:00
150f81f03b Bugfix! 2024-06-30 12:34:00 +03:00
ffc74ef09b Drop useless default implementations 2024-06-30 12:33:55 +03:00
d515054281 Unify FCS<Ray> 2024-06-30 12:33:46 +03:00
1c96c87173 Unify FCS<Location> 2024-06-30 12:24:27 +03:00
b58dcbd4a9 Bugfix! 2024-06-30 12:13:57 +03:00
dff3f94f68 Implement missing OuterCS APIs, and test them 2024-06-30 12:07:09 +03:00
95d46b24c8 Implement missing InnerCS APIs, and test them 2024-06-30 11:52:50 +03:00
382ce16822 Remove the linear limiter as not smooth enough 2024-06-29 00:39:11 +03:00
88bfae9608 Unify limiters 2024-06-29 00:38:50 +03:00
75a6da9cae Use smoothsteper to smoothen the metric even more
Apparently it wants more derivatives than are explicitly used
2024-06-29 00:00:33 +03:00
3fb8bf42b7 Use smmothstep to smoothen the metric 2024-06-28 23:50:01 +03:00
acb4bb75fa Add tests for the metric itself
That wasn’t all that hard like I expected as I actually know what I *want* the metric to do so, can test just that.
2024-06-28 23:14:35 +03:00
0a27fc1f9b Moddy the Tube test 2024-06-28 22:34:16 +03:00
e8551f5d02 Unify tracing in different CSes 2024-06-28 15:32:35 +03:00
08dba8e1dd Use unified coordinate handling as unified 2024-06-28 15:19:24 +03:00
b9cf26701c Drop unused code 2024-06-28 15:19:02 +03:00
41448d2226 Unify flat coordinate system handling 2024-06-28 15:10:53 +03:00
64344659e3 Remove a useless wrapper 2024-06-28 14:59:28 +03:00
0cf6b5b1fb Remove redundant code 2024-06-28 14:54:30 +03:00
c49a3ea241 Test for the bugfix 2024-06-28 14:54:00 +03:00
15a28df2ed Bugfix! 2024-06-27 12:58:45 +03:00
c2922d5fe1 Keep limit as an Option one level deeper 2024-06-27 12:53:28 +03:00
b5c57babb4 Extract flat coordinate system handling 2024-06-25 20:28:09 +03:00
7f560a2b49 Rename “outer” to “global” as that’s what it is 2024-06-25 20:11:25 +03:00
a31a950eca Unify coordinate mapping 2024-06-25 19:56:29 +03:00
2515c0a0da Simplify code 2024-06-25 13:31:39 +03:00
4caa260a34 Remove single-implementation traits 2024-06-25 13:20:52 +03:00
0cddb8798d Move basic types to a module 2024-06-25 13:14:48 +03:00
13da06b294 Publish structs 2024-06-25 13:07:03 +03:00
455b69d447 Extract the implementation to a module 2024-06-25 13:04:36 +03:00
84068a5a13 Move Tube to a file 2024-06-25 12:16:31 +03:00
ad107a6910 Have fun! 2024-06-25 12:06:56 +03:00
dd054e9016 Move stuff around 2024-06-25 11:29:33 +03:00
0ae05fd730 Rename stuff to what it is, not how it’s used 2024-06-13 15:53:20 +03:00
844c974ed4 Use Rust formatting 2024-06-13 15:32:44 +03:00
5cdc97951b Test TubeX as well 2024-06-13 13:26:02 +03:00
b4f7a3045b Move fns:: test to a submodule 2024-06-11 14:21:52 +03:00
f2e2767156 Test tube length 2024-06-11 14:21:52 +03:00
8ad9f04ece Test code cleanup 2024-06-11 14:21:52 +03:00
22339fb331 Remove an obsolete test 2024-06-11 14:21:52 +03:00
ededa1be50 Extend the tube-Y test 2024-06-11 13:56:11 +03:00
4feaf2428e Another rename 2024-06-11 13:52:29 +03:00
6c7c936ead Oops... I had that function already... 2024-06-11 13:50:02 +03:00
53075e0906 The Big Rename 2024-06-11 13:43:59 +03:00
ae152f6d7d Better test failure message 2024-06-11 00:42:47 +03:00
ce86e2a95c Minor cleanup 2024-06-11 00:37:25 +03:00