Antialiasing produces graphical artifacts when used with shader lighting
White dots and lines are produced on large distance.
GTX 1050, nvidia-drivers 390.42, OSG-3.4.1-scrawl
IIRC, MGE had a similar problem. I do not know if it was fixed.
How about a full resolution screenshot? I can hardly see anything. Does this affect the terrain only ? Is distant terrain on or off? Also I'm not sure what you mean by 'on large distance' - does this only happen when viewing distance is set higher (and then also to non-distant spots), or does it only occur at set distances regardless of what viewing distance is set to?
There's a well-known phenomenon in rendering (which I forgot the name of) that can produce these small artifacts (or gaps) for non-connecting faces, and many of vanilla Morrowind's meshes also suffer from this issue. This ideally shouldn't affect the terrain, though (that's just a heightmap, so we can lay out the triangles in whatever form we want that's not prone to artifacts).
#4 Updated by Andrei Kortunov 7 months ago
Does this affect the terrain only ?
All types of objects are affected (terrain, statics, actors, etc.).
Is distant terrain on or off?
The distant terrain is on, but I have never seen such artifacts on the distant terrain, only the common one is affected.
That one should occur regardless of whether or not shaders are used.
As I mentioned, there are no artifacts if shaders are disabled.
Also I had a similar problem with MGE several years ago on Windows 7 (GT8600 GPU), but not with clean Morrowind.
#14 Updated by Alexei Dobrohotov 11 days ago
I tried to add centroid qualifier to lighting vector in objects_fragment.glsl (looks like only per-vertex lighting has the artifacts). It seems to work, though it may be just a cheap workaround.
#if !PER_PIXEL_LIGHTING centroid varying vec4 lighting; #else
#15 Updated by Alexei Dobrohotov 11 days ago
- Subject changed from "Force shaders" setting produces graphics artifacts to Antialiasing produces graphical artifacts when used with per-vertex shader lighting
- Status changed from Confirmed to Resolved
- Assignee set to Alexei Dobrohotov
- Target version set to openmw-0.44
- % Done changed from 0 to 100