211 Commits

Author SHA1 Message Date
051482e7fe Plumb --adaptive flag for adaptive subsampling. 2019-10-12 20:41:07 -07:00
7b5571344e Add Default implementation for Scene.
Some checks failed
continuous-integration/drone/push Build is failing
This makes it so adding new fields doesn't require changing all the
Scene's at once.
2019-10-12 20:27:57 -07:00
Bill Thiede
d796896f26 Remove unnecessary human_format package.
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-12 19:32:01 -07:00
Bill Thiede
2b1112d39e Print human friendly rays / second.
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-12 17:47:19 -07:00
Bill Thiede
c440c518d2 Remove debug prints. 2019-10-12 17:45:19 -07:00
Bill Thiede
fa168966eb Import from upstream.
https://raw.githubusercontent.com/BobGneu/human-format-rs/master/src/lib.rs
2019-10-12 17:45:05 -07:00
Bill Thiede
7cc4dec3a6 Make prometheus monitoring optional and remove stdout logging.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 17:18:39 -07:00
b51b94e0b6 Better progress output
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 16:22:26 -07:00
fa02334c78 Merge branch 'master' of https://git.z.xinu.tv/wathiede/raytracers
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-12 16:16:38 -07:00
ccffa690ba Add pixel counting. 2019-10-12 16:16:26 -07:00
Bill Thiede
8f73d5a25a Release lock while rendering.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 15:46:35 -07:00
7f28a321e3 Use std lib primitives for cross thread messaging.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 15:22:43 -07:00
ddb0bd893d Merge branch 'master' of https://git.z.xinu.tv/wathiede/raytracers 2019-10-12 15:11:33 -07:00
Bill Thiede
235a9d1204 Add flag to set number of threads.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 14:29:36 -07:00
83515c60bf Fix 'dyn' lint on trait objects. 2019-10-12 08:38:19 -07:00
Bill Thiede
1687077f4a Render whole lines at a time. 2019-10-11 11:14:52 -07:00
Bill Thiede
b0dafe4739 Actually disable push metrics when disabled.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-11 08:05:27 -07:00
Bill Thiede
8b99a1f487 Make render req/response enums.
All checks were successful
continuous-integration/drone/push Build is passing
First step in some optimizations to limit overhead of locking between
threads.
2019-10-11 08:03:32 -07:00
bcf6b6d5d0 Remove unnecessary crates.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-10 21:37:21 -07:00
9a45ba6d72 Async send the pixels to the workers, and bound queue to 2xthreads.
All checks were successful
continuous-integration/drone/push Build is passing
This should allow the program to start recieving rendered pixels before
all of the x,y's have been sent to the workers.  Reducing the time to
first pixel.
2019-10-10 21:20:48 -07:00
2a0460f2cb Version bump crossbeam-channel.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-10 21:08:56 -07:00
c929f5c967 Error if profiling disabled and -pprof specifed.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-10 19:55:25 -07:00
53e0230852 Updated Cargo.lock 2019-10-10 19:40:39 -07:00
b73444beaf Make cpu profiling an optional build time configuration.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-10 13:49:13 -07:00
6f3e29a648 Add benches/ directory referenced in Cargo.toml.
Some checks failed
continuous-integration/drone/push Build is failing
2019-06-22 07:42:33 -07:00
0ec6f46be0 Finish up clippy lint. 2019-02-26 19:00:58 -08:00
e64e6af085 Fix clippy lint. 2019-02-26 18:50:35 -08:00
cdbaa928c2 Basic prometheus support, with push_gateway integration. 2019-02-25 20:41:53 -08:00
3256feab1b Update ray constructor to take anything that Into<Vec3> 2019-02-25 20:35:32 -08:00
b7002df00e Remove unused vars and use statements. 2019-02-25 20:35:06 -08:00
27c1534273 Add Mandelbrot texture and test scene. 2019-02-19 21:18:37 -08:00
c8f5bf9e19 cargo fix --edition and add edition="2018" to Cargo.toml. 2019-02-07 16:36:55 -08:00
1be9c800a7 Wider field of view for book scene. 2019-02-07 16:34:13 -08:00
23ac418dcb Remove vestigal option and extraneous use statements. 2019-02-05 19:55:31 -08:00
bf9e226899 Perform per-pixel parallelism instead of per frame.
This sets up the renderer to have other sampling algorithms.
Progress bar is now percentage based.
2019-02-03 21:21:06 -08:00
bc8b79a3da Remove done TODO. 2019-02-03 19:38:40 -08:00
ce2d22b0b5 Add environment mapping for background. 2019-01-29 10:20:31 -08:00
815e647ad5 Dockerfile and config.dbuild for building noise_explorer. 2018-10-15 16:49:57 -07:00
ea0532fd6e Finalize marble parameters for scene/final.
Add pixel_scale parameter to noise_explorer to allow scaling of p vector
passed to value function.
2018-10-15 12:42:22 -07:00
5faba9cf26 Moved lode/perlin code to noise module.
Changed how NoiseTexture is created to allow noise function and
parameters to be passed in as options.
Allowed setting of noise source from URL parameters.
2018-10-14 15:09:57 -07:00
accfd09ce4 Drop logging level for perlin start-up stats. 2018-10-14 10:53:12 -07:00
f483f2905b Break texture module into multiple files. 2018-10-11 20:00:44 -07:00
66d599b50d Fix all clippy warnings or block them. 2018-10-11 19:53:07 -07:00
fa7d79b112 Show parameters for thumbnail as table. 2018-10-11 19:01:48 -07:00
67ba66bdf7 Dynamic render images when visiting webpage at /. 2018-10-09 20:01:43 -07:00
639c50a3de More noise debugging.
Added another reference implementation in lode.rs.
Build CLI to generate noise with various parameters.
2018-10-07 07:43:42 -07:00
2d6accbc58 Misc cleanup.
Correct aperture on final scene.
Change default to perlin_debug for further investigation.
Correct progress output in render.
2018-10-06 08:45:50 -07:00
d40cb0418f Make intermediate image saving a flag, print progress. 2018-10-06 07:52:07 -07:00
bf633756f6 Add scene representing the final image in raytracingthenextweek. 2018-10-06 07:26:49 -07:00
7898e7022c Add perlin debugging. Still not right. 2018-10-05 21:10:40 -07:00