Added perterb() to DemoVolumeB, which allows one to do realtime modifications to... master
authorrealazthat <realazthat@gmail.com>
Wed, 28 Mar 2012 00:02:01 +0000 (19:02 -0500)
committerrealazthat <realazthat@gmail.com>
Wed, 28 Mar 2012 00:02:01 +0000 (19:02 -0500)
commit84e56f335599e604e7ecf5dec9918789aabe44c8
tree8e44022e1b0a5a1489340966bd942ae83b7d4ef3
parent3fedc2d5c6b6a2e07fa1f2ad9d3604dc43b88d47
Added perterb() to DemoVolumeB, which allows one to do realtime modifications to the volume, and takes care of updating the tree as necessary.
DemoB now perterbs a spherical shape upon mouse click.
Added OGRE_LIB_LINK_DIR to allow non-verbose to Ogre in non-system directory.
Added. some CMakeLists.txt scaffolding for nacl (commented out).
Separated DemoBVolume out to demobvolume.cpp/h, and kept the entry point in demob.cpp/h, and made a separate "library" target for demobvolume for the entry point TU to link to.
Put asserts in cube's set iterator functions, since they are bugged/broken.
Added clear() to cube's set base.
Changed an assert in data.inl to use boost::array::size() instead of static_size, to avoid compile-time warning of "always true".
Added zero_vector() to polyvox_utils.h, and forward declared some other functions in that file, since they are dependent on eachother.
Changed region_size() to reuse get_component().
Added some assers to shrunk().
Added volume_regions_equal(), contains(), vector_closes(), to polyvox_utils.h.
Added Region/Vector (de)serialization to volume_serializer, in polyvox_utils.h.
Changed polyvox_volume_deck_row_cell_range_t to take a const volume reference.
Fixed major typo bug in region_iterator.
test_normals_match_trimesh() now tests with vector_closes(), instead of operator== (broke when running with optimizations turned on).
Fixed up triplanarmaterial.cg to blend macro/mciro texture, and take lighting into account.
Removed any mention of tray-manager or camera-manager from BaseApplication.cpp/h, and generally made the class more modular.
Added toPolyVox() to polyvox_ogre_utils.h.
Made some assert(s) much more succinct by using the test-functions in volume_renderer.cpp (DemoA).
23 files changed:
CMakeLists.txt
README
include/cube/cube.h
include/cube/cube.inl.h
include/tva/common.inl.h
include/tva/data.inl.h
include/tva/polyvox_utils.h
include/tva/polyvox_utils.inl.h
include/tva/region_iterator.h
include/tva/test_utils.h
media/materials/programs/triplanarmaterial.cg
media/materials/scripts/polyvox.material
src/BaseApplication.cpp
src/BaseApplication.h
src/TutorialApplication.cpp
src/TutorialApplication.h
src/demob.cpp
src/demob.h
src/demobvolume.cpp [new file with mode: 0755]
src/demobvolume.h [new file with mode: 0755]
src/polyvox_ogre_utils.h
src/tva/tvatest.cpp
src/volume_renderer.cpp