Commit Graph

67 Commits

Author SHA1 Message Date
9036a26743 scratch: add forgotten header
sigh..
2016-03-15 13:57:19 +11:00
8ea827aab0 tools/scratch: remove inadvertantly committed code
scratch should always be a noop. It's only here to simplify testing of
new code.
2016-03-15 12:30:23 +11:00
a59844be98 don't pull in namespace std 2016-03-11 13:28:56 +11:00
3993e561f8 unify licences 2016-02-26 13:36:01 +11:00
c31082716a netpbm: move netpbm into image library 2016-02-24 13:51:26 +11:00
817eb50efc image: move buffer into image directory 2016-02-19 13:56:12 +11:00
e85ffe5160 scratch-tool: add main arguments for convenience 2016-02-03 13:15:19 +11:00
9cb25456a4 scratch-tool: add simple debug skeleton
simplifies writing quick test commands linking against the library
2016-02-02 12:11:38 +11:00
003685ce2b image: templatise on component count 2015-10-20 16:54:15 +11:00
f0f1522307 n/basis: extract gradient generators 2015-10-07 14:36:55 +11:00
8b458ad452 noise: reduce repetition in template params 2015-10-07 00:22:05 +11:00
b464f089a5 noise: use permutation random generator
much faster for common operations
2015-10-06 21:19:17 +11:00
e80e445645 noise: support n-dimensional noise 2015-10-06 15:45:26 +11:00
0f0e3a8c93 noise/basis: add exp weighted perlin gradient basis
useful for terrain generation
2015-09-29 17:42:20 +10:00
91a01c2742 noise-tool: give a random offset per-image
prevents gridpoint artefacts being so obvious
2015-09-25 15:16:15 +10:00
ee401e4409 noise-tool: don't check tty until after options
options may include a help request which we'll want to respond to
before checking the output stream.
2015-09-11 19:55:52 +10:00
e829e95791 noise-tool: use windows accessible isnan 2015-09-09 19:44:51 +10:00
13ef16e183 noise-tool: expose more parameters via commandline 2015-08-28 21:09:21 +10:00
3d35874f58 noise-tool: remove dead code 2015-08-28 21:04:55 +10:00
48d6a007a2 n/b/patch: add blur width parameter 2015-07-28 18:14:10 +10:00
33dece611a n/basis: add patch basis function 2015-07-24 01:37:36 +10:00
b6ce75aca6 build: windows fixes 2015-07-23 13:53:48 +10:00
6b712e2f57 n/midpoint: extract midpoint displacement funcs 2015-07-01 01:03:34 +10:00
ddf9f0a22a n/midpoint: add jitter to edge midpoints 2015-07-01 00:15:49 +10:00
1211ee0876 noise-tool: stub midpoint/diamond noise functions 2015-06-30 22:23:57 +10:00
de710c2082 noise-tool: remove unnecessary debug output 2015-06-17 03:10:08 +10:00
eeeb8977ec noise-tool: correct single octave difference 2015-06-17 03:09:22 +10:00
d9d7cd6f5b noise-tool: allow single octave output 2015-06-15 17:48:49 +10:00
544d4d9624 noise-tool: add command arguments 2015-06-11 19:35:45 +10:00
b752e78036 noise-tool: remove noisy debug messages 2015-06-10 21:30:43 +10:00
250b8d21ec cmdopt: add simple reimplementation of libcmdopt 2015-06-10 21:30:43 +10:00
9db4dd5b08 image: remove unneeded area query 2015-06-09 15:37:35 +10:00
6926c95d4d noise-tool: add simple hydraulic erosion 2015-06-04 20:20:03 +10:00
86d51f182f noise-tool: add simple thermal erosion 2015-06-04 17:16:46 +10:00
851f7b9351 noise-tool: offset heights to ensure landmass 2015-06-04 15:13:58 +10:00
53917404b4 noise-tool: extract map writing function 2015-06-04 14:40:47 +10:00
c82f3aad2e netpbm: extract ppm/pgm into distinct unit 2015-06-03 23:24:26 +10:00
c826822a43 noise-tool: lower output resolution for debug
debugging can be slow with all runtime checks enabled
2015-06-03 17:37:42 +10:00
cbe6f68c4b noise-tool: decrease default frequency
gives a more representative game map
2015-06-03 17:36:33 +10:00
effecbf117 noise-tool: interpolate the gradient colour 2015-06-03 17:35:58 +10:00
34406dc244 noise-tool: add simple gradient heightmap colours 2015-06-02 23:00:12 +10:00
7dcba618c0 noise: add turbulence (displacement) combiner 2015-06-02 20:33:00 +10:00
be2317b605 n/basis: add seed accessor method 2015-06-02 17:07:42 +10:00
6278902e3e n/fractal: use a common base class
some working variables need to be precomputed. it makes sense to do this
in a base class.
2015-06-02 16:13:12 +10:00
e98709bfc6 noise-tool: instantiate noise gens for testing
explicitly instantiate various combinations of noise generators for
link-time testing.
2015-06-01 18:57:00 +10:00
f6e2e6a409 n/fractal: use inline headers for fractals 2015-06-01 17:30:18 +10:00
00195c54d0 noise-tool: set higher octaves for perf testing 2015-06-01 16:22:11 +10:00
2d002c9dce n/fractal: extract each type into seperate units 2015-06-01 16:21:26 +10:00
2e9698f53b noise-tool: add offset to positions for testing
allows us to peek at the negative quandrants for rounding and other
issues.
2015-05-29 15:55:55 +10:00
78f61af84c noise/basis: extract basis into seperate units 2015-05-28 10:56:06 +10:00