484 Commits

Author SHA1 Message Date
Cody Glassman
f2a82701b4 make sure we apply extra data statesets at right time 2025-08-31 11:16:54 -07:00
Cody Glassman
d72451da62 remove unecassary visitor for soft particles 2025-08-23 09:09:18 -07:00
elsid
d121b606b6
Fix and enforce local variable naming 2025-08-05 21:27:48 +02:00
Alexei Kotov
730a62effc Merge branch 'warn-baby-warn' into 'master'
Fix MSVC warnings

Closes #7882

See merge request OpenMW/openmw!4804
2025-07-25 21:45:34 +03:00
Evil Eye
e3c9e6fe2b Set a root for BS skins as well 2025-07-24 08:46:21 +02:00
Evil Eye
8d7218c118 Take skin transform and skeleton root into account 2025-07-24 08:40:20 +02:00
AnyOldName3
be54521cfa Fix loads of warnings
These weren't detected due to https://gitlab.com/OpenMW/openmw/-/issues/7882, but now they are, so they can be fixed.
2025-07-24 00:20:05 +01:00
Evil Eye
962ef91e25 Allow skinned plants to be harvested 2025-04-06 11:01:26 +02:00
Alexei Kotov
5433ecf861 Change default depth test mode to <= (#7040) 2024-11-23 08:32:25 +03:00
Alexei Kotov
b71ec84004 Sprinkle const-correctness in NifLoader 2024-10-30 17:10:08 +03:00
Alexei Kotov
964dafd42c Share texture type attributes 2024-10-29 12:48:54 +03:00
elsid
1fd6ac6438
Use normalized path in ImageManager 2024-09-17 00:49:57 +02:00
Alexei Kotov
162ac6a75e Avoid copying shader material shared_ptr in NifLoader 2024-06-22 14:34:09 +03:00
Alexei Kotov
4f8856f887 Don't let the optimizer mess with collision switch nodes (again) 2024-06-13 22:24:40 +03:00
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)
2024-05-18 23:11:20 +03:00
Alexei Kotov
c29ceb7f7f Unbork glow maps 2024-05-06 23:32:35 +03:00
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
2024-04-24 00:40:54 +03:00
Alexei Kotov
713e741f9c Share fog state attributes 2024-04-23 23:53:34 +03:00
Alexei Kotov
d7bd5e76ca Move wrapping flag handling to relevant properties 2024-04-23 23:40:14 +03:00
Alexei Kotov
77c3cd4467 More BGSM cleanup 2024-04-20 19:43:42 +03:00
Alexei Kotov
ea5e101821 Handle glow maps for BGSM files 2024-04-20 19:43:42 +03:00
Alexei Kotov
8325e100df More decal deduplication 2024-04-20 19:43:42 +03:00
Alexei Kotov
5789eb73b1 Deduplicate decal and alpha handling in NifLoader 2024-04-20 19:43:42 +03:00
Alexei Kotov
4ccf9c1917 Deduplicate NifLoader texture attachment
Handle non-existent shader materials more gracefully
Deduplicate shader material drawable property handling
2024-04-20 19:43:42 +03:00
Alexei Kotov
e680123482 NifLoader: Make the image manager a member 2024-04-20 19:43:42 +03:00
Alexei Kotov
8997bd6854 Apply shader material transparency parameters, get rid of unwanted shiny 2024-04-20 19:43:42 +03:00
Alexei Kotov
1d65aaee71 Formatting 2024-04-20 19:43:42 +03:00
Alexei Kotov
96f5ae5a8d Handle BGSM decal flag, hide visibility editor markers 2024-04-20 19:43:41 +03:00
Alexei Kotov
1a961f3021 Extremely early handling for BGSM/BGEM files 2024-04-20 19:43:41 +03:00
Andrei Kortunov
251d01304f Use move semantics for osg::ref_ptr 2024-01-21 13:48:33 +04:00
Alexei Kotov
3ba03782c0 Silence OSG shininess limit warnings 2024-01-04 01:02:33 +03:00
psi29a
5d53eb7566 Merge branch 'russianroulette' into 'master'
BulletNifLoader: Handle NiSkinPartition, reduce false-positive collision generation for NiSwitchNode children

See merge request OpenMW/openmw!3634
2023-12-26 10:33:20 +00:00
Cody Glassman
187f63d3d3 support postprocess distortion 2023-12-21 10:56:38 -08:00
jvoisin
abbb620ea2 Merge branch 'nifogproperty' into 'master'
Handle NiFogProperty (feature #5173)

Closes #5173

See merge request OpenMW/openmw!3642
2023-12-12 18:30:11 +00:00
Alexei Kotov
9cdaf2c29b Handle NiFogProperty (feature #5173) 2023-12-09 17:13:16 +03:00
Alexei Kotov
c1088e5f70 Streamline passing influence data to skinning 2023-12-08 20:58:34 +03:00
Alexei Kotov
b93291840e BulletNifLoader: Handle NiSkinPartition
Add NiSkinPartition recovery helper method
2023-12-04 15:53:24 +03:00
Alexei Kotov
9c94058727 Support Oblivion parallax setup 2023-11-27 03:41:51 +03:00
Alexei Kotov
1e0d549d1d NifLoader: Only handle editor marker extra data for the root node 2023-11-16 15:18:28 +03:00
Alexei Kotov
116ef1c62b Depth flag handling fixes (bug #7380)
Properly disable depth test while allowing depth writes to happen
Remove NiStencilProperty interaction
Don't set up depth flags for BSShaderPPLightingProperty
2023-11-06 02:19:56 +03:00
Alexei Kotov
af08205f19 Support BSShader/BSLightingShader depth flags 2023-11-03 18:38:01 +03:00
Cody Glassman
09928ba265 use a dynamic falloff range for soft effect and use shader flags 2023-10-28 10:23:55 -07:00
Alexei Kotov
715efe6cb1 Handle NiParticleBomb (feature #7634) 2023-10-22 16:26:46 +03:00
Alexei Kotov
981e482171 Read BSSubIndexTriShape
It's currently handled exactly like BSTriShape, which works ok enough for our purposes
2023-10-20 17:02:46 +03:00
Alexei Kotov
79e6c9a92a Add more comments to handleBSGeometry 2023-10-04 16:46:26 +03:00
Alexei Kotov
284129b9ec Support Fallout 4 skinning
Convert the skinning data into NiSkinData-compatible format
2023-10-04 15:54:28 +03:00
Alexei Kotov
b4f81fb4fa Fix formatting 2023-10-04 15:54:28 +03:00
Alexei Kotov
0497fd111f Handle BSTriShape basic geometry 2023-10-04 15:54:28 +03:00
Alexei Kotov
af24d3fd3c Nth revision of NifLoader geometry handling
Handle BSSegmentedTriShape
2023-10-04 15:54:28 +03:00
Petr Mikheev
63d5bd6f8a Apply soft effect to nifs marked with soft effect flag (developed by Cody Glassman) 2023-09-27 20:41:52 +02:00