Commit Graph

43 Commits (520e65f82205480a6286d6c51129c0715ec13149)

Author SHA1 Message Date
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 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 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 6d3528af70 Port global map exploration 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
dteviot 407cd50890 fixed warning C4099:
type name first seen using 'class' now seen using 'struct'
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 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 c62d53ae84 Remove no longer needed comments about coordinate system 11 years ago
scrawl 4ec51b386a Add ManualResourceLoader for fog of war textures (Fixes #1675) 11 years ago
scrawl 2bc2684a66 Fixes #275: force updating exterior cell maps even if already in cache 11 years ago
scrawl c39a0368cf Bug #618: Make local map textures static in an attempt to fix the disappearing maps with D3D.
Also removed problematic DISCARDABLE flag for fog of war textures.
11 years ago
scrawl a4a9794417 Savegame: store fog of war (Closes #1177) 11 years ago
scrawl c004fb778f Get rid of underscore defines. They are reserved by the standard. 11 years ago
scrawl e27437f8ed New terrain renderer - improvements:
- Consistent triangle alignment, fixes a noticable crack near the census and excise office. Note that alignment is still not the same as vanilla. Vanilla uses a weird diagonal pattern. I hope there aren't more trouble spots that will force us to replicate vanilla, but at least we can do that now.
 - Fixes several blending issues and cell border seams
 - Fix map render to use the terrain bounding box instead of an arbitrary height
 - Different LODs are now properly connected instead of using skirts
 - Support self shadowing
 - Normals and colors are stored in the vertices instead of a texture, this enables per-vertex lighting which should improve performance, fix compatibility issues due to the PS getting too large and mimic vanilla better
 - Support a fixed function fallback (though the splatting shader usually performs better)
 - Designed for distant land support - test: https://www.youtube.com/watch?v=2wnd9EuPJIY - we can't really enable this yet due to depth precision issues when using a large view distance
12 years ago
scrawl f1d35b73b8 Cleanup 12 years ago
scrawl a29919d02d restored global map 12 years ago
scrawl fa07288b15 tweaked map light color 12 years ago
scrawl 5cc8af0f14 fix map positions 12 years ago
scrawl 15e51b76de Experimental: Directional shading on local map, separated out refraction render, no longer uses screen depth 12 years ago
scrawl f5355e3e92 512x512 map, slightly faster 12 years ago
scrawl 38828acac9 transparent overlay 12 years ago
scrawl 5834b4baa5 door markers on the local map 13 years ago
Marc Zinnschlag 87667ab57e Issue #107: Ptr related include cleanup 13 years ago
Marc Zinnschlag 35f478071e Issue #255: deleted the old environment class and using the new one instead 13 years ago
scrawl 342464530d rotated map working 13 years ago
scrawl fc5cd703bb maps are now rendered with correct rotation, however for interiors the arrow is wrong 13 years ago
scrawl 01ecf3e0be attempt at rotation (BROKEN) 13 years ago
scrawl bf421d2873 use vector instead of array 13 years ago
scrawl 06fa310e29 player arrow rotated correctly 13 years ago
scrawl 1907e21207 removed preprocessor constants 13 years ago
scrawl 5e939e4818 map window now works for interiors 13 years ago
scrawl 2edd7e59f4 some fixes and facilities for saving the fog of war to disk 13 years ago
scrawl 5a46d58da5 fully working fog of war 13 years ago
scrawl 583a25f634 fog of war rendering (incomplete) 13 years ago
scrawl 5b38b17baf local map rendering (nothing to see yet, as it is not displayed in GUI) 13 years ago