20 Commits

Author SHA1 Message Date
David Williams
d000616d3e Revert "Ambient occlusion test now uses RawVolume, as it need a fixed size volume to create a temporary array."
This reverts commit 396d1cfc599e6837cf38bc1a95e680e9721ea844.
2015-03-30 11:24:48 +02:00
David Williams
396d1cfc59 Ambient occlusion test now uses RawVolume, as it need a fixed size volume to create a temporary array. 2015-03-01 09:51:45 +01:00
David Williams
bfc7dfdc1b Removed the ability to specify a region in the PagedVolume's constructor, and updated the tests and examples where required. 2015-02-28 23:31:23 +01:00
David Williams
64d010527b Removed old getVoxelAt()/setVoxelAt() functions. they've been flagged as deprecated for a while now, and are replaced by just getVoxel()/setVoxel(). 2015-02-27 11:07:15 +01:00
David Williams
049a77cd0c Moved all headers from 'PolyVoxCore' to 'PolyVox', as we no longer have the core/util distinction. 2015-02-07 17:26:36 +01:00
David Williams
db2e62d2a8 Replaced LargeVolume and SimpleVolume with PagedVolume in tests and examples. 2014-09-21 17:57:42 +02:00
David Williams
d06dbdf054 Bit renaming. Old Array class is gone, and is replaced by the Array2D class which has also been renamed to Array. 2014-08-24 22:30:50 +02:00
Matt Williams
bb87e9e628 Fix Ambient Occlusion Calculator to accept functors, functions and lambdas
By changing the 'pass by value' to be a 'pass by const reference' (and
adding some const qualifiers) the calculator can take any of the three
types.

Performance could be improved further using C++11 perfect forwarding to
pass the function on without changing a thing. I added a comment to remind
us of this.

Also added a test for passing a function and a (commented out) test for
passing a lambda.
2012-10-28 15:41:53 +00:00
Matt Williams
d6640f64d0 Add benchmark annotations to the tests
This will affect total running times simce some tests will be run multiple
times but it allows precise becnhmarking.
2012-10-27 21:37:54 +01:00
David Williams
b86a3552e6 Tidying up unclassed ambient occlusion calculator. 2012-10-05 15:57:41 +02:00
David Williams
3b61adefaa Work unclassing ambientOcclusionCalculator 2012-10-05 15:42:16 +02:00
David Williams
419fa2e5d4 Work on unclassing the ambient occlusion calculation as it is currently making use of the old raycasts. 2012-10-02 21:05:09 +02:00
unknown
9db04f38bc Removed use of template template parameters from Raycast and AmbientOcclusionCalculator. 2012-05-31 13:31:42 +02:00
unknown
0e16b0d07e Raycast and ambient occlusion tests now use primitive types instead of Material/Density classes. 2012-03-27 14:32:33 +02:00
unknown
6d656ad173 Work on voxel refactoring... 2012-03-27 14:21:43 +02:00
David Williams
b3b22036c1 Updated ambient occlusion tests as a result of 'abs' fixes to raycast. 2012-01-11 18:21:20 +01:00
Matt Williams
71e9921b5f Fix test values to those on Linux 2011-06-19 13:07:57 +02:00
David Williams
bb51313939 Updated unit tests results to match CDash machine. 2011-06-18 23:07:35 +01:00
David Williams
c86a7f58e0 Updated the TestAmbientOcclusionCalculator reference values to match those from Linux/GCC, so that tests pass on CDash.
For some reason Windows/VS2010 gives slightly different results - this needs investigating.
2011-06-12 13:14:19 +01:00
David Williams
ffa4fcaade Added test for AmbientOcclusionCalculator. 2011-06-11 18:04:04 +01:00