scrawl
ccab8b1a92
Fix bug in TerrainGrid::getWorldBoundingBox ( Fixes #2075 )
10 years ago
scrawl
eda296f1e3
Remove workaround for Ogre 1.8 (no longer supported)
10 years ago
scrawl
7252cb63a6
Fix cppcheck issues
10 years ago
scrawl
8c26f802e6
Move terrain grid implementation to a component so the editor can use it (Feature #1597 )
11 years ago
scrawl
2a510573b8
Remove unused implementation file
11 years ago
scrawl
e25fa6c157
Refactor non-distant land terrain path to a grid based implementation ( Fixes #1562 )
11 years ago
slothlife
9ea22324f7
Fix some MSVC warnings.
...
Several fixes are warnings about truncations on 64-bit, while others are
complaints about mixed signed / unsigned integer operations.
11 years ago
scrawl
c018319940
Addition to 7c9c0830a96: don't create useless BaseWhite clones
11 years ago
scrawl
7c9c0830a9
Fix errors due to BaseWhite material being removed
11 years ago
cc9cii
11ce093a9e
Fix crashes caused when terrain materials don't get created (e.g. due to cg shader bug on Windows/D3D9). Should resolve Bug #1284 .
11 years ago
slothlife
f33559fead
Fixes for MSVC warnings, less overall changes
...
Kept some fixes from the first round of review. Found out that several
targets weren't being built with the same basic warnings disabled.
Disabled a few warnings for external libraries specifically, rather than
applying them to all targets.
11 years ago
slothlife
c160a04ede
Revert "Fixes for warnings when building with MSVC"
...
This reverts commit 46eb20b98c
.
11 years ago
slothlife
46eb20b98c
Fixes for warnings when building with MSVC
...
Most warnings are innocuous (wrong type-specifier for forward
declarations, conversion of literals into unsigned integers, warnings
about methods optimized out), but I believe actual bugs were revealed in
vartypedelegate.cpp and combat.cpp.
11 years ago
scrawl
6f7fbc867f
Fix several leaks
11 years ago
scrawl
b0a1e1198a
Yet another terrain fix
11 years ago
scrawl
a9dcc90970
Another terrain fix
11 years ago
scrawl
b8ca067730
Small fix for terrain
11 years ago
scrawl
d0f98103e4
Terrain: re-added "distant land=off" path
...
Still a hack, but the overhead of building and traversing the quad tree appears negligible.
11 years ago
scrawl
1d926816b5
Terrain: background load blendmaps & layer textures. Refactor QuadTree update.
11 years ago
scrawl
4328e08162
Terrain: get rid of unneeded members
11 years ago
scrawl
6a002d19b3
Terrain: destroy no longer used materials
11 years ago
scrawl
97c3efb3ba
Terrain: decoupled Chunk from QuadTreeNode.
11 years ago
scrawl
edb5a54092
Include some more required Ogre headers explicitely.
11 years ago
scrawl
195071efc7
Terrain: geometry is now loaded in background threads.
...
TODO: background load layer textures and blendmaps.
"Distant land" setting has been removed for now (i.e. always enabled).
11 years ago
scrawl
b3fed853ae
Terrain: take cell world size into account for LOD selection
11 years ago
scrawl
6c863486e1
Terrain: fix an embarrassing copy&paste mistake.
11 years ago
scrawl
64c9932597
Terrain: remove hard dependency on shiny - can now be compiled without it (fixed function)
11 years ago
scrawl
c9e349f60f
Terrain: support alternate coordinate systems. Get rid of LoadingListener for now
11 years ago
scrawl
1fba5d1bb9
Terrain: change world bounds from AABB to 4 floats
11 years ago
scrawl
90f6cda4cc
Moved includes to appropriate place
11 years ago
scrawl
d4a755d1aa
Fix some hardcoded literals
11 years ago
scrawl
c6fb0f2d9b
Removed terrain component's dependency on ESM
11 years ago
scrawl
a1ac99463f
Fix an uninitialized value
11 years ago
scrawl
ce6aab89cf
Fix a possible permutation issue
11 years ago
scrawl
c64dc2c831
Terrain specular mapping: use a "_diffusespec" postfix to indicate specular information is present in the alpha channel. Use alpha directly instead of 1-alpha.
11 years ago
Lukasz Gromanowski
60fb75b03a
Fixed valgrind warning about uninitialized variable:
...
==16814== Conditional jump or move depends on uninitialised value(s)
==16814== at 0xA945B8: Terrain::QuadTreeNode::update(Ogre::Vector3 const&, Loading::Listener*) (quadtreenode.cpp:269)
==16814== by 0xA94A77: Terrain::QuadTreeNode::update(Ogre::Vector3 const&, Loading::Listener*) (quadtreenode.cpp:354)
==16814== by 0xA77541: Terrain::World::update(Ogre::Vector3 const&) (world.cpp:159)
==16814== by 0x6EBA17: MWRender::RenderingManager::requestMap(MWWorld::CellStore*) (renderingmanager.cpp:649)
==16814== by 0x8A25C4: MWWorld::Scene::loadCell(MWWorld::CellStore*, Loading::Listener*) (scene.cpp:157)
==16814== by 0x8A2CEA: MWWorld::Scene::changeCell(int, int, ESM::Position const&, bool) (scene.cpp:296)
==16814== by 0x8A2DE0: MWWorld::Scene::changeToExteriorCell(ESM::Position const&) (scene.cpp:440)
==16814== by 0x85AC17: MWWorld::World::changeToExteriorCell(ESM::Position const&) (worldimp.cpp:761)
==16814== by 0x927E38: OMW::Engine::prepareEngine(Settings::Manager&) (engine.cpp:436)
==16814== by 0x92843D: OMW::Engine::go() (engine.cpp:483)
==16814== by 0x6C6B3F: main (main.cpp:279)
==16814== Uninitialised value was created by a heap allocation
==16814== at 0x4C27CC2: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==16814== by 0xA93E60: Terrain::QuadTreeNode::createChild(Terrain::ChildDirection, float, Ogre::Vector2 const&) (quadtreenode.cpp:178)
==16814== by 0xA7733E: Terrain::World::buildQuadTree(Terrain::QuadTreeNode*) (world.cpp:139)
==16814== by 0xA76B18: Terrain::World::World(Loading::Listener*, Ogre::SceneManager*, Terrain::Storage*, int, bool, bool) (world.cpp:94)
==16814== by 0x6EC6EB: MWRender::RenderingManager::enableTerrain(bool) (renderingmanager.cpp:1013)
==16814== by 0x8A2A00: MWWorld::Scene::changeCell(int, int, ESM::Position const&, bool) (scene.cpp:206)
==16814== by 0x8A2DE0: MWWorld::Scene::changeToExteriorCell(ESM::Position const&) (scene.cpp:440)
==16814== by 0x85AC17: MWWorld::World::changeToExteriorCell(ESM::Position const&) (worldimp.cpp:761)
==16814== by 0x927E38: OMW::Engine::prepareEngine(Settings::Manager&) (engine.cpp:436)
==16814== by 0x92843D: OMW::Engine::go() (engine.cpp:483)
==16814== by 0x6C6B3F: main (main.cpp:279)
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl
5fd98d7c3a
Add an assertion
11 years ago
scrawl
18c002a21d
Fix an awful typo.
11 years ago
scrawl
69c0bb1723
Add normal, specular & parallax mapping for terrain
11 years ago
scrawl
188df341c3
Replaced log2 to make VC happy
12 years ago
scrawl
839d251cc5
Renamed Terrain::Terrain to Terrain::World to make VC happy
12 years ago
scrawl
d3d6dfbde8
Refactored loading screen
...
- Add loading progress for data files, global map, terrain
- Refactored and improved cell loading progress
12 years ago
Nikolay Kasyanov
dc6e15f38e
Replaced std::pow with shift since clang doesn't like int as a first argument
...
(reports that call is ambiguous)
12 years ago
scrawl
5f7e6f7b10
Fix a material issue, layers per pass wasn't entirely correct
12 years ago
scrawl
43313437dc
Fix composite map for cells without land data
12 years ago
scrawl
ce5ea6d7d2
Use a proper node hierarchy; disconnect the root when entering interior
12 years ago
scrawl
fa76d1631b
Some terrain fixes
12 years ago
scrawl
8c8653160d
Crash fix, material fix
12 years ago
scrawl
b92da9ae93
Neighbour fix
12 years ago
scrawl
ebf9debb80
Enabled terrain self shadows, implemented getHeightAt, some optimizations
12 years ago