Commit Graph

2136 Commits (move)

Author SHA1 Message Date
scrawl 86881bcf39 In first person mode, attach sound listener to the camera 9 years ago
scrawl f5f3d18b8e Add comment 9 years ago
scrawl 576d5111a5 Prefer Intersector::PROJECTION over Intersector::WINDOW 9 years ago
scrawl 0655abcd8b Fix some character preview raycasting issues (Bug #2769) 9 years ago
scrawl d2290a8183 Don't crash when Water_SurfaceFrameCount is 0 9 years ago
Marc Zinnschlag 6facce9d13 Merge remote-tracking branch 'origin/master' 9 years ago
scrawl a1fa1b2b2e Don't attempt to open an empty texture 9 years ago
scrawl 35fa1f5865 Not found Land Textures are no longer a fatal error (Bug #3037)
Log warning message and show the default texture when encountering invalid ESM::LandTexture references.
9 years ago
scrawl 5b8fd79b4b Fix crash when exception is thrown in startNewGame() 9 years ago
scrawl 62169a7039 Use a single-precision PositionAttitudeTransform in speed critical places 9 years ago
scrawl 61314e1db1 Fix bounding box of bullet debug drawer 9 years ago
scrawl 706b1d4c28 Disable culling of ClipNode 9 years ago
scrawl 8c268f239e Set the object node scale before inserting model
This fixes initWorldSpaceParticles not taking object scale into account. Still not taking into account object rotation or node animations. Ideally the initWorldSpaceParticles needs to run in an updateCallback.
9 years ago
scrawl eb2f16d682 Support for loading .osg mesh format 9 years ago
scrawl 0f347eccbf Flip the origin of global map texture
Now it's consistent with the overlay texture.
9 years ago
scrawl 8b7bdcd127 Fix the global map overlay viewport (Bug #3018) 9 years ago
scrawl a68fd791c8 Remove a stray method declaration 9 years ago
scrawl 79c44d0bfe Style fix 9 years ago
scrawl 02148a43f5 Node mask fix 9 years ago
scrawl 0a52ee17c3 Fix Drawable removal issues 9 years ago
scrawl afa590bddb Leak fix 9 years ago
scrawl c62c1693e9 Disable copy constructor and operator= in PartHolder 9 years ago
scrawl 2e9805fa0e Leak fix 9 years ago
scrawl b840c68f0c Do not create a depth buffer for the global map 2d rendering 9 years ago
scrawl 8e3bc981a2 Fix self-referencing camera 9 years ago
scrawl 0409e5a043 Use OSG_VERSION_GREATER_EQUAL / LESS_THAN rather than MIN_VERSION_REQUIRED (cosmetic change) 9 years ago
scrawl f1ac408f35 Place Drawables directly in the scene graph when built with OSG 3.4
OSG 3.4 adds the ability to place Drawables directly in the scene graph, without a Geode decorating them. Leveraging this should give a small performance boost, because the redundant Geodes increase culling overhead.

There is still an oustanding issue with the RemoveDrawableVisitor no longer working correctly, because Drawables can have multiple parents.
9 years ago
scrawl 35459f20d5 Refactor lighting mask 9 years ago
scrawl 91583fc027 Fix MWRender::Mask_ParticleSystem 9 years ago
scrawl 637cd3a628 Adjust the FirstPersonNeckController to follow the camera with a reduced factor (Fixes #1784) 9 years ago
scrawl 1b52749ae1 Adjust third person camera height based on character height 9 years ago
scrawl 055841e721 Improve cloud lighting 9 years ago
scrawl 2407f393ce Fix double update traversal in screenshot function 9 years ago
scrawl 6e69808129 Fix the frameNumber not being incremented in certain frames 9 years ago
scrawl c996702b56 Fix some uninitialised variables found by static analysis 9 years ago
scrawl 1cf1c944b7 Don't attempt to render weather particles on the refraction and reflection textures 9 years ago
scrawl 209fa52883 Hide weather particles underwater (Fixes #2701) 9 years ago
scrawl e3b30baff9 clipFudge fix 9 years ago
scrawl c0a81030bb Make use of INI settings for the simple water 9 years ago
scrawl 30c828dff0 Include cleanup 9 years ago
scrawl 8e8f72408d Use diffuse/ambient lighting for the simple water 9 years ago
scrawl 380256977b Fix another renderBin issue with the weather particles
Depth sorting w.r.t. the rest of the scene was broken
9 years ago
scrawl 9902dfc9ef Comment 9 years ago
scrawl ad016da31d Enable fog on weather particles 9 years ago
scrawl fd1ccd21ff Disable freezeOnCull for weather particles 9 years ago
scrawl 5ca0ae5232 Don't add the same AlphaFader to multiple nodes 9 years ago
scrawl d6f45c3390 Fix the renderbin for weather particles
Regression from commit 2ee6b41887
9 years ago
scrawl bd1f3493d7 Fix weather particles not being cleared when changing from one particle effect to another 9 years ago
scrawl 0348b8df1c Fix applying of plane height in ClipCullNode (Fixes #2985) 9 years ago
scrawl 3f988327c7 Destructor fix 9 years ago
scrawl 913bbe347b Don't check the extension string every frame 9 years ago
scrawl c60388afb6 Add fudge factor to move the water mesh away from camera when the camera gets too close 9 years ago
scrawl 4690ec12cc Render the water plane with GL_DEPTH_CLAMP if supported (Fixes #996) 9 years ago
scrawl 8da4530957 Use INI-imported underwater fog settings (Fixes #2907, Fixes #1511) 9 years ago
scrawl bd9dc58560 Use the correct scale for actor swim height (Fixes #2833) 9 years ago
scrawl 7b817ba010 Fix the node masks of water cameras being reset (Bug #2984)
Node mask needs to remain Mask_RenderToTexture so the raytesting visitor won't go through the reflection graph.
9 years ago
scrawl 93f4d31cf9 Raytest mask fix (Fixes #2984) 9 years ago
scrawl b9b154a015 Minor cleanup 9 years ago
scrawl d90fa977e8 GL_DEPTH_COMPONEN24 fix 9 years ago
scrawl 7692ae175a Disable sun rendering on the reflection camera
Not needed, we have specular highlights.
9 years ago
scrawl 9b8e45fc01 Fix ripple particles z-fighting with the water surface 9 years ago
scrawl d394b0793f waterLevel fix 9 years ago
scrawl c9d7078b4b Water: add texture quality setting to the settings window 9 years ago
scrawl 8433e0679f Water: connect to settings window 9 years ago
scrawl 9f8d36b573 Water code cleanup 9 years ago
scrawl 11c997d09d Water: move reflection code to a new class 9 years ago
scrawl ebdf25ccb9 Water: move refraction code to a new class 9 years ago
scrawl 7bbdb13138 Remove debug code 9 years ago
scrawl 6ba9f561ea Use simple water for the local map 9 years ago
scrawl 09631385c3 Use boost ifstream for water resources 9 years ago
scrawl d485dd0782 Water: fix world UV coords 9 years ago
scrawl 9f2f503d37 Water: pass the near and far planes 9 years ago
scrawl 37c9c12962 Water: clipping plane offset 9 years ago
scrawl 700a0099c3 Remove debug code 9 years ago
scrawl e13eb625d3 New water WIP
Changes compared to old (Ogre) water:
- Uses depth-texture readback to handle the underwater fog in the water shader, instead of handling it in the object shader
- Different clipping mechanism (glClipPlane instead of a skewed viewing frustum)
- Fixed bug where the reflection camera would look strange when the viewer was very close to the water surface
- Toned down light scattering, made the waterColor a bit darker at night
- Fixed flipped water normals and strange resulting logic in the shader

Still to do: see comments...
9 years ago
scrawl 515c52211e Disable mipmaps for temporary screenshot texture 9 years ago
scrawl ef5838df7e SunGlareCallback: Fix incorrect view matrix for RELATIVE_RF cameras 9 years ago
scrawl 6ef139e1d7 Implement a custom RenderBin for first person models (Fixes #1612) 9 years ago
scrawl ee450471fd Disable head controller for non-bipedal creatures (Fixes #2843, Fixes #2966) 9 years ago
scrawl a88d56148b Read the Sun Glare Fader ini settings 9 years ago
Alexander "Ace" Olofsson 7d4125d97f Fixes for building with unity build 9 years ago
scrawl 385f4f729c Implement SunDiscSunsetColor, fade the sun during sunrise & sunset 9 years ago
scrawl 1a1f1fae87 Minor cleanup 9 years ago
scrawl d812434fee Add a subtle fading effect to the sun flash texture 9 years ago
scrawl 854fd9fe05 Remove dead code 9 years ago
scrawl 9bb6c3f288 Improve accuracy of sun occlusion query (use circular shape) 9 years ago
scrawl 96b31d3bba Scale the sun flash texture depending on occlusion query 9 years ago
scrawl a2a4532e71 Add the full-screen sun glare effect 9 years ago
scrawl ac5d0bf405 Render the sun flash (not adjusted based on occlusion yet) 9 years ago
scrawl 89d9323c2b Document RenderBin numbers in a common header to keep them organised 9 years ago
scrawl d191a52847 Create occlusion query nodes for the sun flash 9 years ago
scrawl 6bafa564d4 Move sun texture setting out of the Updater class so we can reuse the Updater for fading the flash texture 9 years ago
scrawl a37dee09e2 Fix invisibility effect disappearing after a view mode switch 9 years ago
scrawl f8d4bc378f Move setAlpha from NpcAnimation to Animation (Fixes #2917) 9 years ago
scrawl 126960261f Keep playing IdleSneak on the lower body when casting spells / using weapons 9 years ago
scrawl 5692ef1eae Add convenience operator [] to AnimPriority 9 years ago
Marc Zinnschlag 2c37731494 Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3' 9 years ago
dteviot 8e2fe1985d Fixed errors pointed out by Zini.
1. Removed "Actor" from name of function  isActorNearInactiveCell().
2. Corrected case of CoordinateConverter member function names.
9 years ago
Marc Zinnschlag 0ff786bebd Merge remote-tracking branch 'origin/master' 9 years ago
Marc Zinnschlag a445683312 Merge branch 'mergetool'
Conflicts:
	apps/opencs/CMakeLists.txt
	apps/opencs/model/tools/tools.cpp
9 years ago
slothlife 29d74f0249 Improve thunderstorm support.
Reversed settings for thunderstorms. Added thunder support to all
weather types. Implemented a simple lightning flash effect similar to
MW.
9 years ago
Marc Zinnschlag 69b9eadb52 refactored loading of land data 9 years ago
Marc Zinnschlag febf611c82 made return type of ESMTerrain::Storage::getLand const 9 years ago
Marc Zinnschlag a52b947efe Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3' 10 years ago
Marc Zinnschlag 50ec8b10f5 Merge remote-tracking branch 'dteviot/Bug2871' 10 years ago
dteviot 3fa5c6a0e7 fixed travis build failure 10 years ago
dteviot 77a1d947cc extracted MWMechanics::getPlayer() 10 years ago
dteviot 85bc41dedb replaced FLT_MAX with numeric_limits. 10 years ago
scrawl af3b0cd883 Improve some error messages 10 years ago
scrawl 681183df31 Restore handling of fog depth == 0 values (Bug #1549) 10 years ago
Marc Zinnschlag 3992125b61 Merge remote-tracking branch 'scrawl/master' 10 years ago
dteviot 942a987d52 centralize the world/cell coordinate conversion logic. 10 years ago
scrawl 58cd2b1a84 Remove "Tri Bip*" nodes in creature meshes (meant for debugging)? (Fixes #2148) 10 years ago
scrawl 56b7196bea Remove incorrect implementation of "Clouds Maximum Percent" weather setting 10 years ago
slothlife 3235cecddf Use Glare View for visibility of celestial bodies
Fixed memory leak from Sun and Moon objects by pulling Updaters back out
into separate objects. Removed code related to
mCelestialBodyTransparency.
10 years ago
slothlife 238ae419a3 Fix use of incorrect material for Sun 10 years ago
slothlife f2e51b0579 Use diffuse alpha to fade Sun 10 years ago
slothlife ea2f88a355 Fix several sky rendering bugs, maybe also #639
Added code to hide the moons, sun, and stars for certain weather
effects. Lightly refactored CelestialBody and derived classes. Fixed
moons switching phase at 24:00.
10 years ago
scrawl 664ae079db Improve setting of culling mask for the savegame screenshot camera 10 years ago
scrawl 88c61ed2b6 Fix NotifyDrawCompletedCallback in single threaded mode 10 years ago
Marc Zinnschlag e73c115ff5 Merge remote-tracking branch 'origin/master' 10 years ago
Marc Zinnschlag 9ee3f1bfe7 Merge remote-tracking branch 'slothlife/moon-settings' into mergetool 10 years ago
slothlife 0244a9b329 Correct moon texture with respect to trajectory 10 years ago
Marc Zinnschlag 9392e426c0 Merge remote-tracking branch 'origin/master' into mergetool 10 years ago
scrawl 1f755a2bc0 Don't use a shared Material in AlphaFader 10 years ago
slothlife 24ba54f4fe Implement accurate moon settings (fixes #672) 10 years ago
scrawl 278076e609 Include cleanup 10 years ago
scrawl a33ca75742 Pass AnimPriority by const reference 10 years ago
scrawl f6f82d433c Fix bug with loop key assignment
Animations with time of "loop start" == time of "loop stop" were not getting their loop times assigned correctly.

This fixes incorrect playing of the jump animation, one aspect of Bug #2286.
10 years ago
scrawl 3656851750 Remove the now unused changeBlendMask 10 years ago
scrawl 50db6ed396 Use the extended animation priority for weapon animations 10 years ago
scrawl e93a578f23 Extend the animation priority system to one priority value per bone group / distinct blend mask 10 years ago
scrawl 335ef97cf5 Rename Animation::Group to Animation::BlendMask
The old naming is problematic, because the term group was being used for another feature (text key groups) already.
10 years ago
scrawl 24ae1d5ace Fix some issues found by coverity 10 years ago
scrawl 667c80fb2a Add brackets around a correct expression to fix coverity warning 10 years ago
scrawl ebdd5dc993 Fix code that I forgot to uncomment (thanks coverity) 10 years ago
scrawl 49c07de773 Merge pull request #643 from ace13/win-build-fix
Fix build error and a pair of warnings
10 years ago
Alexander "Ace" Olofsson aaaee74a4d Fix the comments 10 years ago
Marc Zinnschlag 432384d280 Merge remote-tracking branch 'scrawl/aicombat' 10 years ago
scrawl c90841d649 Fix head tracking for NPCs 10 years ago
scrawl 6724585777 Light magic effect
Notable change compared to the old (Ogre) effect: uses the ambient instead of diffuse term (Fixes #2364)
10 years ago
scrawl bf9c62fa42 Fix for some coverity scan defects 10 years ago
scrawl dcb8fbc69c Accurate handling of fog depth/density (Fixes #2752) 10 years ago
Alexander "Ace" Olofsson 5d24091364 Fix build error and a pair of warnings
The error was about casting between osg::Callback* and osg::NodeCallback*
The warnings are both about virtual classes with non-virtual destructors
10 years ago
scrawl 4b2391c60f Ignore effect meshes in getScreenBounds 10 years ago
scrawl d5a47cfafe Include cleanup 10 years ago
scrawl 017c9f7ac9 Fading for weather particle effects 10 years ago
scrawl 882e359008 Move attackStrength to the CharacterController, where it should have been to begin with
Only relevant for actors in active cells, so doesn't belong in CreatureStats. This change should slightly reduce the game's memory usage.
10 years ago
scrawl 4ef6aa6b7f Fix weather particles disappearing 10 years ago
scrawl 8a3889a81e Rain fading 10 years ago