Commit Graph

119 Commits (d3b623b5d32e8eba6c135ba62acfe049840040a4)

Author SHA1 Message Date
scrawl 839196e4fa
Force normal polygon mode for the map camera (Fixes #4235) 7 years ago
Ewan Higgs 38a2de3c51 convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis 8 years ago
scrawl d055dc25bf Add custom traversal for local map camera to avoid loading terrain nodes that are exactly outside the border to another cell 8 years ago
scrawl 28fd492711 Don't use terrain LOD for the map camera 8 years ago
scrawl ec0b743123 Revert "Change ordering of LocalMap nodes to make sure they are traversed before the CompositeMapRenderer."
This reverts commit 7d72c70c93ee3c0cc3d00d37b22c339d0103cd19.
8 years ago
scrawl c684860e3b Change ordering of LocalMap nodes to make sure they are traversed before the CompositeMapRenderer. 8 years ago
scrawl 37c71c15f2 Remove redundant state 8 years ago
scrawl 29556a1802 More consistent wording of errors/warnings
A Warning indicates a potential problem in the content file(s) that the user told OpenMW to load. E.g. this might cause an object to not display at all or as intended, however the rest of the game will run fine.

An Error, however, is more likely to be a bug with the engine itself - it means that basic assumptions have been violated and the engine might not run correctly anymore.

The above mostly applies to errors/warnings during game-play; startup issues are handled differently: when a file is completely invalid/corrupted to the point that the engine can not start, that might cause messages that are worded as Error due to the severity of the issue but are not necessarily the engine's fault.

Hopefully, being a little more consistent here will alleviate confusion among users as to when a log message should be reported and to whom.
8 years ago
scrawl d1e86d22ca Check which local map textures actually need to be updated
On a typical exterior cell transition, we'll save 3 of 9 map renders. When moving back and forth between 2 cells, we can even reuse 6 of 9.
8 years ago
scrawl 8bfcf259a3 LocalMap no longer depends on osgViewer 8 years ago
scrawl b2ae45f0eb Remove unneeded setGraphicsContext() calls 9 years ago
scrawl 641005b317 Remove Camera's children before removing the Camera
Should work around OSG race condition ( http://forum.openscenegraph.org/viewtopic.php?t=16077 )
9 years ago
scrawl 90a99991d1 Use empty() instead of !size() 9 years ago
scrawl 044e0a829a Add fog 9 years ago
scrawl 7d647088ab Make the local map cell distance configurable 9 years ago
scrawl bd655c20fd Refactor local map updates
We don't need the delay any more because the rendering itself is part of the normal rendering traversal - so it's delayed anyway.

Don't request maps that we're not actually using (i.e. with cell grid sizes higher than the default 3, we were rendering more maps than the map window could show).
9 years ago
scrawl ca4e859f61 Remove unused argument 9 years ago
scrawl 4690fd3f22 Change the local map exploration radius to better match the original engine 9 years ago
Paul Cercueil 0765ff3ba2 mwrender: Add missing includes
Those missing includes were causing the build to fail when compiled with
USE_GLES set.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
9 years ago
scrawl 8e3bc981a2 Fix self-referencing camera 9 years ago
scrawl 6ba9f561ea Use simple water for the local map 9 years ago
Alexander "Ace" Olofsson 7d4125d97f Fixes for building with unity build 9 years ago
scrawl af3b0cd883 Improve some error messages 10 years ago
scrawl 278076e609 Include cleanup 10 years ago
scrawl ce0d93caed Fix for "GlobalMap trying to erase an inactive camera" spam in main menu 10 years ago
scrawl 24551c7bab Fix for savegame incompatibility with master branch 10 years ago
scrawl cdd0623009 Terrain rendering 10 years ago
scrawl 01944c33f5 Basic water rendering 10 years ago
scrawl 6d3528af70 Port global map exploration 10 years ago
scrawl 5f7a82e0da Fog of war fix 10 years ago
scrawl c811ac6afe Port fog of war
Not optimized yet, need to work on fog texture's DataVariance.
10 years ago
scrawl c4951d1e73 Map rotation fix 10 years ago
scrawl 3dcb167066 Map rendering 10 years ago
scrawl 152d690a7a Minor cleanup 10 years ago
Rohit Nirmal 997347b01e Silence -Wreorder warnings. 10 years ago
dteviot e197f5318b fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl 08d8dd287c I think this was committed by accident 10 years ago
scrawl de23ad5c8d Change dynamic_cast to static_cast to make coverity happy 10 years ago
scrawl a47de06492 Make local map resolution configurable and use lower default value
This seems to be the resolution the original engine is using. The change also significantly reduces cell loading time.
10 years ago
scrawl f931ba2efc Fix some static analysis issues (coverity) 10 years ago
scrawl 7d36a202a8 Implement cell loading threshold (Fixes #1874)
The cell loading threshold (default: 1024 units) prevents exterior cell loading until the player has travelled part-way into the next cell. This gets rid of excessive cell loadings when walking along an exterior cell border.

Lower the maximum allowed view distance in options menu to accomodate. Change setting name so that old settings files are upgraded.
10 years ago
scrawl 4f92044d71 Allow user-created markers on local map (Fixes #1571) 11 years ago
scrawl c065a4b203 Add ManualResourceLoader for global map overlay (Fixes #1736) 11 years ago
scrawl cd8287da16 Make sure fog texture is loaded before trying to convertToImage 11 years ago
scrawl 89af49f669 Make sure fog of war texture is loaded before accessing its buffer 11 years ago
scrawl 4ec51b386a Add ManualResourceLoader for fog of war textures (Fixes #1675) 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 1d8da95756 Warning fix 11 years ago
scrawl 6cc691115b Savegame: store most of CreatureStats 11 years ago
scrawl 2bc2684a66 Fixes #275: force updating exterior cell maps even if already in cache 11 years ago