aboutsummaryrefslogtreecommitdiff
path: root/dep/src/g3dlite/BumpMapPreprocess.cpp
diff options
context:
space:
mode:
authorclick <none@none>2010-06-05 00:59:25 +0200
committerclick <none@none>2010-06-05 00:59:25 +0200
commite77716188861d4aa83b227a90e04a66b63baeb1f (patch)
treece72764181a760314ec851f7535052dcf75649db /dep/src/g3dlite/BumpMapPreprocess.cpp
parent1426c2970f42a2d065198806f750bf5dd28d580b (diff)
HIGHLY EXPERIMENTAL - USE AT YOUR OWN RISK
Implement the use of the new vmap3-format by Lynx3d (mad props to you for this, and thanks for the talks earlier) + reduced Vmap size to less than one third, and improve precision + indoor/outdoor check which allows automatic unmounting of players + additional area information from WMOAreaTable.dbc, removed existing "hacks" + WMO liquid information for swimming and fishing correctly in buildings/cities/caves/instances (lava and slime WILL hurt from now on!) - buildfiles for windows are not properly done, and will need to be sorted out NOTE: Do NOT annoy Lynx3d about this, any issues with this "port" is entirely our fault ! THIS REVISION IS CONSIDERED UNSTABLE AND CONTAINS WORK IN PROGRESS - USE AT YOUR OWN RISK! --HG-- branch : trunk
Diffstat (limited to 'dep/src/g3dlite/BumpMapPreprocess.cpp')
-rw-r--r--dep/src/g3dlite/BumpMapPreprocess.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/dep/src/g3dlite/BumpMapPreprocess.cpp b/dep/src/g3dlite/BumpMapPreprocess.cpp
new file mode 100644
index 00000000000..20281caf8cb
--- /dev/null
+++ b/dep/src/g3dlite/BumpMapPreprocess.cpp
@@ -0,0 +1,43 @@
+/**
+ \file BumpMapPreprocess.cpp
+
+ \maintainer Morgan McGuire, http://graphics.cs.williams.edu
+
+ \created 2010-01-28
+ \edited 2010-01-28
+
+ Copyright 2000-2010, Morgan McGuire.
+ All rights reserved.
+ */
+#include "G3D/BumpMapPreprocess.h"
+#include "G3D/Any.h"
+#include "G3D/stringutils.h"
+
+namespace G3D {
+
+BumpMapPreprocess::BumpMapPreprocess(const Any& any) {
+ *this = BumpMapPreprocess();
+ for (Any::AnyTable::Iterator it = any.table().begin(); it.hasMore(); ++it) {
+ const std::string& key = toLower(it->key);
+ if (key == "lowpassfilter") {
+ lowPassFilter = it->value;
+ } else if (key == "zextentpixels") {
+ zExtentPixels = it->value;
+ } else if (key == "scalezbynz") {
+ scaleZByNz = it->value;
+ } else {
+ any.verify(false, "Illegal key: " + it->key);
+ }
+ }
+}
+
+
+BumpMapPreprocess::operator Any() const {
+ Any any(Any::TABLE, "BumpMapPreprocess");
+ any["lowPassFilter"] = lowPassFilter;
+ any["zExtentPixels"] = zExtentPixels;
+ any["scaleZByNz"] = scaleZByNz;
+ return any;
+}
+
+}