Commit Graph

8308 Commits (5f26da01f18f8073c27bd3ce461af3803069192b)

Author SHA1 Message Date
Dave Corley 80360ca5eb downgrade clang-format pls 7 months ago
Dave Corley 3066695630 FIX(loadland.cpp): Minor rebase fail 7 months ago
Dave Corley 145f9c1154 CLEANUP(CS): Do heightData check in actual implementation, revert
accidental change to land condition order
7 months ago
Dave Corley bdf99c701b Fix(CS): Use ESM flags and not internal ones for verifying presence of a subrecord 7 months ago
Dave Corley 89bce6f678 Fix(CS): Enum name in accordance with current standards 7 months ago
Dave Corley 6f2ae4a33b Cleanup(CS): Improve readability and clean up some implementations 7 months ago
Dave Corley 51df924d37 Fix(Land): Restore vanilla behavior of ignoring LAND subrecords which
are not flagged to actually exist
7 months ago
Dave Corley b111d28ede Fix(CS): Generate blank lands at default height, not water level 7 months ago
Dave Corley 014e5118e9 Fix(CS): Fix crash when loading cell without VHGT 7 months ago
Dave Corley 18d6598565 Feat(CS): Add enum for actual LAND flags 7 months ago
Kindi 22d685eca3 ensure fitness 7 months ago
psi29a 9087de1596 Merge branch 'esm3_land' into 'master'
Add unit tests for saving and loading ESM3 Land

See merge request OpenMW/openmw!4159
7 months ago
Alexei Kotov 89eccffbf6 Complain if a function or an integer is used as a local variable name 7 months ago
psi29a 176e6490c5 Merge branch 'stufftheminasack' into 'master'
Drop 360-degree screenshot support (#7720)

Closes #7720

See merge request OpenMW/openmw!4158
7 months ago
psi29a a80f5c109c Merge branch 'ltexerasure' into 'master'
Fix LTEX overriding and allow deletion

See merge request OpenMW/openmw!4152
7 months ago
elsid 044748725c
Add unit tests for saving and loading ESM3 Land 7 months ago
Alexei Kotov 93d1c6d7e0 Drop 360-degree screenshot support (#7720) 7 months ago
psi29a 8a6d3ea447 Merge branch 'hircinevsprimealmalexiawhowouldwin' into 'master'
Don't force Tribunal to be enabled to load Bloodmoon (#7993)

Closes #7993

See merge request OpenMW/openmw!4153
7 months ago
psi29a 32dd4a4a68 Merge branch 'windows11_qss' into 'master'
Improve dark mode stylesheets

See merge request OpenMW/openmw!4148
7 months ago
Alexei Kotov eca30f7921 Don't force Tribunal to be enabled to load Bloodmoon (#7993)
Sort Bloodmoon to be after Tribunal and warn the user if Bloodmoon is loaded before enabled Tribunal
7 months ago
Evil Eye ca6baed366 Fix LTEX overriding and allow deletion 7 months ago
Andrei Kortunov 937101d580 Add a dark style sheet tweaked for Windows 11 7 months ago
Alexei Kotov 71c1b536b4 Discard culled lights specifically for post-processing light buffer 7 months ago
Alexei Kotov cbe61e2c93 In TextureType, use osg::Object's name field 7 months ago
psi29a a2e83d9a21 Merge branch 'dayofviewindependence' into 'master'
Make object light lists (mostly) view-independent

See merge request OpenMW/openmw!4128
7 months ago
psi29a e7c9574d31 Merge branch 'savetheslot' into 'master'
Convert constant effect equipment slots to refnums

Closes #7998

See merge request OpenMW/openmw!4130
7 months ago
psi29a 8cf6fde8b6 Merge branch 'fix_debug_render' into 'master'
Fix debug render for recast mesh and navmesh

See merge request OpenMW/openmw!4127
7 months ago
elsid 71369be796
Log caught exceptions 7 months ago
Alexei Kotov c92d016e43 Don't sort scene light list by camera distance if the limit isn't reached and PP doesn't need it
Also don't clip it to the single UBO scene light limit if the lighting method isn't actually single UBO
7 months ago
Alexei Kotov 916706c6c1 Make object light lists (mostly) view-independent
Remove frustum culling
Sort lights by object proximity
Restore multiple camera rendering optimization
7 months ago
psi29a 16572109fc Merge branch 'restoringthelightfacingthedark' into 'master'
Lighting fixes, non-exciting part

See merge request OpenMW/openmw!4126
7 months ago
Evil Eye cdfd305ac3 Convert constant effect equipment slots to refnums 7 months ago
elsid 10e14a3c21
Replace release by assigning nullptr
release does not call a destructor if it's the last reference. This is not a
right choice here. Even though the functions accept raw pointers they convert
them into osg::ref_ptr. So it's ok to share the ownership.
7 months ago
elsid 4b8897e33e
Use state sets without transparency support for recast mesh and agents paths 7 months ago
elsid 98d530d8cb
Share state sets for recast mesh tiles and actors paths 7 months ago
Alexei Kotov fd9361f62c Some attenuation setup fool-proofing 7 months ago
Alexei Kotov e0e4b84e40 Disable specularity for negative lights 7 months ago
Alexei Kotov debc37d93a Fade out specularity according to light fade settings as well 7 months ago
Evil Eye 6a10311ae5 Use more appropriate types in terrain storage 7 months ago
psi29a db27543ea1 Merge branch 'uniform_choice' into 'master'
Add choice widget type to postprocessing uniforms

See merge request OpenMW/openmw!3969
7 months ago
psi29a 2be6116ef6 Merge branch 'fix_recastmesh' into 'master'
Limit number of cached tiles with recast meshes

See merge request OpenMW/openmw!4112
7 months ago
Dave Corley c87eaefd17 Merge branch 'theeditorisjustanotherengine' into 'master'
Use ESM::ReadersCache in the editor

Closes #7896

See merge request OpenMW/openmw!4111
8 months ago
Andrei Kortunov bf682d51a6 Support dark mode on Windows (feature 7985) 8 months ago
psi29a f34994e4c8 Merge branch 'notexturetypeconfusion' into 'master'
Support defining the texture type with a state attribute (#6240)

Closes #6240

See merge request OpenMW/openmw!4079
8 months ago
Alexei Kotov 03652104fe Merge branch 'cleanup_preloading' into 'master'
Cleanup preloading code

See merge request OpenMW/openmw!4104
8 months ago
Evil Eye 77d554594f Add ReadersCache::clear 8 months ago
elsid 45d62ee59f
Limit RecastMeshManager range by active cell grid 8 months ago
elsid 49db37ee29
Merge setWorldspace and updateBounds 8 months ago
elsid 9854d42d56
Use ESM::RefId for worldspace type 8 months ago
elsid 5d28164416
Remove recast mesh tiles outside active range 8 months ago
elsid 9e2f3fd0b4
Report stats for TileCachedRecastMeshManager 8 months ago
Alexei Kotov 908f3891fb Add helper method for texture type recovery 8 months ago
Alexei Kotov 84f4ba4ca1 Support defining the texture type with a state attribute (#6240)
Named textures are still supported for easier native format compatibility (and so that I don't have to edit the documentation)
8 months ago
psi29a 9b31ecc10e Merge branch 'bufferer_log' into 'master'
Write to log file records captured before configs are loaded

See merge request OpenMW/openmw!4095
8 months ago
elsid 491a59b035
Remove unused getActiveGrid function 8 months ago
elsid 38f0533bcf
Write to log file records captured before configs are loaded 8 months ago
elsid 4ab5871dc4
Split Tee logic into different types 8 months ago
Alexei Kotov 1d96c0adbf Read BSTreadTransfInterpolator 8 months ago
Alexei Kotov 5f4a0c3bf1 Read BSAnimNote/BSAnimNotes 8 months ago
Alexei Kotov c5a11f0c9f Read BSRotAccumTransfInterpolator 8 months ago
Alexei Kotov c647374c0d Add compact B-Spline interpolators 8 months ago
Alexei Kotov d458c07b36 Add base typed B-Spline interpolators 8 months ago
Alexei Kotov 5c6fca14c1 Read NiBSplineData/NiBSplineBasisData 8 months ago
psi29a 919d1e366e Merge branch 'staticcollections' into 'master'
Place static collections to the scene and fix item modification record loading

See merge request OpenMW/openmw!4085
8 months ago
psi29a 1cde82201e Merge branch 'optimize_merge_geometry' into 'master'
Optimize geometry merging

See merge request OpenMW/openmw!4086
8 months ago
psi29a 2f8e3611fb Merge branch 'issue-7924-envvar-crashdump' into 'master'
components/crashcatcher: if OPENMW_FULL_MEMDUMP is set, generate a full memory crashdump

See merge request OpenMW/openmw!4078
8 months ago
elsid 020b31395b
Reserve arrays before merging 8 months ago
Alexei Kotov 7d979a2dfc Place ESM4 static collections to the scene 8 months ago
Austin English 50b2edc121 components/crashcatcher: if OPENMW_FULL_MEMDUMP is set, generate a full memory crashdump
[Bug #7924](https://gitlab.com/OpenMW/openmw/issues/#7924)
8 months ago
jvoisin 93aa887868 Merge branch 'itsemissivenotglow' into 'master'
Unbork glow maps

See merge request OpenMW/openmw!4077
8 months ago
Alexei Kotov c95bb4ce59 Merge branch 'split_esm_headers' into 'master'
Split ESM headers

See merge request OpenMW/openmw!4071
8 months ago
Alexei Kotov c29ceb7f7f Unbork glow maps 8 months ago
elsid a920ca9070
Report loading screens to osg stats 8 months ago
elsid 01166b1f26
Split ESM headers 8 months ago
AnyOldName3 b55a0fd32a || and && have different binding precedence 8 months ago
AnyOldName3 d148bd1cde Add bounds check 8 months ago
psi29a a57c350c08 Merge branch 'paint_svg' into 'master'
Change SVG icons color in the editor

See merge request OpenMW/openmw!4060
8 months ago
AnyOldName3 ee3d012a6a Use CLAMP_TO_EDGE for shadows
Partially mitigates https://gitlab.com/OpenMW/openmw/-/issues/7944

The border was necessary in the olden days when the FFP might have shadows, but they require shaders now.
8 months ago
psi29a e4fd852df6 Merge branch 'ba2' into 'master'
BA2 support fixes

See merge request OpenMW/openmw!4055
8 months ago
psi29a 1eb6b322a7 Merge branch 'morefunfallout4discoveries' into 'master'
Fix reading BSLightingShaderProperty backlight power in NIF Bethesda stream version 132

See merge request OpenMW/openmw!4058
8 months ago
Alexei Kotov a5d936993f Clarify Fallout 4 next gen update BA2 version naming 8 months ago
Andrei Kortunov 98abfcfe00 Use grayscale images for disabled icons 8 months ago
Andrei Kortunov 070327a259 Change SVG color in the editor 8 months ago
Alexei Kotov 52bc744642 Fix reading backlight power in NIF stream version 132 8 months ago
Alexei Kotov 52d77e3a45 Version 8 texture BA2s found 8 months ago
Alexei Kotov f0e4793321 Remove allow shadow map overlap setting (#7939) 8 months ago
Alexei Kotov 61b6150c01 Properly detect the version for post-FO4 BA2 formats 8 months ago
Alexei Kotov f796e051cb Support zlib-compressed version 3 DDS BA2s 8 months ago
Alexei Kotov b32385a0af Fix BA2 signature check 8 months ago
Alexei Kotov 22fb3d7f83 Add support for Fallout 4 next-gen update BA2s 8 months ago
psi29a 26f0e6b22c Merge branch 'nifmisc' into 'master'
Miscellaneous NIF loader corrections

See merge request OpenMW/openmw!4052
8 months ago
Alexei Kotov 7f13f6a4e9 Use osg::Fog::compare in NifOsg::Fog::compare 8 months ago
psi29a a628c658a9 Merge branch 'lessgoofymaterialptr' into 'master'
Simplify material file pointer acrobatics

See merge request OpenMW/openmw!4049
8 months ago
psi29a 99a0755094 Merge branch 'remove_natural_sort' into 'master'
Remove dead code

See merge request OpenMW/openmw!4047
8 months ago
Alexei Kotov 745be2e91b Implement NifOsg::Fog::compare() 8 months ago
Alexei Kotov a513049129 Adjust drawable property state changes
Reset shininess and specular strength when specular lighting is supposed to be disabled
Don't add the material redundantly if a sorter is pushed
Don't discard non-default emissive and specular multipliers if there's no sorter or material
8 months ago
Alexei Kotov 713e741f9c Share fog state attributes 8 months ago
Alexei Kotov d7bd5e76ca Move wrapping flag handling to relevant properties 8 months ago
psi29a 02cdeb6252 Merge branch 'scalable_editor' into 'master'
Treat editor icons as scalable

See merge request OpenMW/openmw!4042
8 months ago
Alexei Kotov 78eda530ac Simplify material file pointer acrobatics 8 months ago
Andrei Kortunov 6390fdee7a Remove dead code 8 months ago
psi29a 023c0f7a46 Merge branch 'vfs_normalized_path_6' into 'master'
Use normalized path for music related functions

See merge request OpenMW/openmw!4038
8 months ago
Andrei Kortunov 1bb48bcef7 Treat editor icons as scalable 8 months ago
Alexei Kotov 884668927f BGSM Reader: include cleanup, adjust getFile return result 9 months ago
elsid a863899eb1
Use normalized path for SoundManager::streamMusic 9 months ago
Alexei Kotov 77c3cd4467 More BGSM cleanup 9 months ago
Alexei Kotov 6be2bb70c3 Remove unused remnants of NIFStream from BGSMStream 9 months ago
Alexei Kotov ea5e101821 Handle glow maps for BGSM files 9 months ago
Alexei Kotov 8325e100df More decal deduplication 9 months ago
Alexei Kotov 5789eb73b1 Deduplicate decal and alpha handling in NifLoader 9 months ago
Alexei Kotov 4ccf9c1917 Deduplicate NifLoader texture attachment
Handle non-existent shader materials more gracefully
Deduplicate shader material drawable property handling
9 months ago
Alexei Kotov e680123482 NifLoader: Make the image manager a member 9 months ago
Alexei Kotov 8997bd6854 Apply shader material transparency parameters, get rid of unwanted shiny 9 months ago
Alexei Kotov 1d65aaee71 Formatting 9 months ago
Alexei Kotov 96f5ae5a8d Handle BGSM decal flag, hide visibility editor markers 9 months ago
Alexei Kotov 1a961f3021 Extremely early handling for BGSM/BGEM files 9 months ago
Alexei Kotov fe1cb3a5ae Add a resource manager for BGSM files 9 months ago
Alexei Kotov cb77bcc4c8 Initial BGEM file parsing 9 months ago
Alexei Kotov 484a360792 Add a safety measure for string loading in BGSM 9 months ago
Alexei Kotov f9f8c1e591 Fix depth test reading in BGSM 9 months ago
Alexei Kotov 8ef6304dd9 BGSM colors are Vec3 9 months ago
Alexei Kotov 015aca2cfd Initial BGSM file parsing 9 months ago
Alexei Kotov 124df1be61 Parse shared part of material files 9 months ago
Alexei Kotov aea7b10986 Add dummy BGSM/BGEM file reader 9 months ago
AnyOldName3 04f1dc282b Merge branch 'fix-osga-rotate-wildly' into 'master'
Fix OSGAnimation issues

See merge request OpenMW/openmw!3989
9 months ago
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 9 months ago
elsid 82931059fd
Make NormalizedView constructor from const char* explicit 9 months ago
Sam Hellawell b7aa3b9f47 Remove rename from RenameBonesVisitor, rename to RenameAnimCallbacksVisitor 9 months ago
psi29a e4c70b7861 Merge branch 'anyoldname3-and-the-amazing-technicolour-terminal-emulator' into 'master'
Support coloured terminal output on Windows

See merge request OpenMW/openmw!4027
9 months ago
psi29a 3600c6c7c7 Merge branch 'filterview' into 'master'
Validate INFO filters when loading the record

See merge request OpenMW/openmw!4003
9 months ago
psi29a b91ff634e4 Merge branch 'navmesh_queue' into 'master'
Optimize queue for navmesh async jobs

See merge request OpenMW/openmw!4025
9 months ago
Sam Hellawell 2653b76db9 getTranslation/getTransformForNode refactor, unit tests 9 months ago
AnyOldName3 83e3718bed . c l a n g - f o r m a t 9 months ago
AnyOldName3 61364c874f Warn future me off wasting their time again 9 months ago
AnyOldName3 a7021bf9cc Clear std stream errors when reopening
Prior errors are no longer relevant.

Shouldn't make a difference unless you've tried printing something before the streams were set up.
9 months ago
Alexei Kotov 443e341ae7 Generalize unsized pixel format computation 9 months ago
Alexei Kotov 3c0c1717a9 Fix red-green normal map handling for terrain 9 months ago
Alexei Kotov 58afe1ba23 Support red-green normal maps 9 months ago
elsid 910c88325a
Add a setting to wait for all navmesh jobs on exit 9 months ago
elsid 50f4471750
Use R-tree for dynamic priority of navmesh async job 9 months ago
elsid 17bd571a65
Do not repost failed jobs
Failures should not happen except for some weird corner cases. Retrying is
unlikely to help in such situation.
9 months ago
elsid d6f3d34f2f
Remove tiles present on navmesh but outside desired area 9 months ago
elsid 61c69c5563
Use proper prefix for CollisionShapeType 9 months ago
elsid a1438f65fe
Set proper max tiles on initializing navmesh settings 9 months ago
AnyOldName3 1930bfeabb Support coloured terminal output on Windows
First try the modern Windowsy way, where we can directly query if escape sequences will be processed.
The function is available as far back as Windows 2000, but it just won't return the right flag until the Windows version is new enough.

If that fails, fall back to the Unixy way, as not all colour-supporting terminal emulators for Windows use the Win32 API to declare that capability.
The implementation isn't identical as isatty wasn't available without adding more headers, and we already have Windows.h in this file, so I might as well use the Win32 API instead of its POSIX-compatibility layer.
9 months ago
Evil Eye 6e79064a57 Fix editor oddities 9 months ago
psi29a f9e957ea0e Merge branch 'esm4scvr' into 'master'
ESM4: Make script local variable loading more reliable

See merge request OpenMW/openmw!3967
9 months ago
Evil Eye a4625ea784 Deduplicate dialogue filter parsing 9 months ago
Evil Eye fb4edda45d Validate INFO filters when loading the record 9 months ago
Sam Hellawell 8c2c66d59e .nif check, matrix mult feedback, auto usage, reuse NodeMap typedef 9 months ago