Shader 3D scopes


Изображение

Filenameshader-3d-scopes.16.zip
CategoryEffects GFX
LicenceCreative Commons
Uploaderparty_50
CreditsLVutner, WHATCHAMACALLIT, Redotix99
AddedMar 2nd, 2024
Added time2024-03-01 20-33-09
UpdatedSep 9th, 2024
Updated time2024-09-08 19-38-04
Size54.43mb (57,074,107 bytes)
Downloads11,054 (51 today)
MD5 Hashdadb17668a4d39d6b0755bee4c2383f1
ModdbDOWNLOAD -> MODDB
MirrorDOWNLOAD -> MIRROR
Id266153

Description

Performance-friendly imitation of PiP scopes with some realistic parallax effects



Description

Implementation of 3D scopes shader with magnifying technique and masking out weapon inside lens. The goal was to make something as close to PiP as possible without performance hit. Picture inside scope has constant 1.5x zoom to make "feeling" of optic sight without disturbing it. Also features parallax effects for reticle, magnified image and shadow so that it all looks (more or less) like real optic sights. Parallax effects are set up from my own experience of using optic sights. Some of sights have first focal plane feature (reticle upscales simultaneously with current zoom level).

This addon doesn't have measurable performance impact.

Currently supported weapons

All ACOG weapons
AUG A1
9A91
F2000
G36
G36K
G3SG1
G43
Gauss
L85A1
L85A2
L96
M24
M82
M98 Bravo
Remington 700
Sig 550 Sniper
SR-25
SV-98
SVD Nimble (1P59)
TOZ-34 Bison
TRG-42
Vintorez 1PN93 (NV)
Vintorez Nimble
VSK-94
VSSK "Vikhlop"
WA2000

DOF effect:


m24 dof

NV shader:


nv shader

1P59 scope custom shader:


untitled 1

ACOG custom shader (reticle is illuminated by sunlight, so it's red at daytime and almost black at nighttime or in dark areas):


acog lum

Fisheye effect:


untitled 2

LED illumination:


untitled 3

Thermal shader:


thermal

Compatibility / Installation

Only DX11 supported. Execute "r__3Dfakescope 1" in the console. Disable SMAA and antialiasing in game settings and clear shader cache. Use AA in your GPU settings panel instead

The addon requires latest Modded Exes and Mark Switch Moddb.com

This addon is not compatible with repositions out of the box. That's because scope reticles are now following gun direction (just like Parallax Reflex Sights), so you have to adjust gun positions manually if you use repositions.

Also all weapons with new scopes use new shaders, meaning it's not compatible with reanimations which replace weapon models

DOF part is not compatible with SSS DOF module (this addon overwrites SSS dof effect). To enable new DOF effect you should enter "r2_dof_enable on" in the console. To disable this effect enter "r2_dof_enable off"

How to add new weapons

Here is a small tutorial (sorry for my bad English): Youtube.com

Special

Thanks to LVutner for huge help with making this and original parallax shader.

Credits:

  • LVutner [Parallax shader]
  • Redotix99 [Engine shader pipeline edits]
  • WHATCHAMACALLIT [Fixing models for new shaders]
  • vegeta1k95 [Heatvision rendering]
  • christian [Normal Mapping Without Precomputed Tangents article]
  • WojtaZam [Brightness/contrast shader]
  • prod80 (Bas Veth) [BlackWhite, Grain shaders]
  • Christian Cann Schuldt Jensen (CeeJay.dk), Kirill Yarovoy (v00d00m4n) [LevelsPass shader]
  • Ascii1457 [depth function]
  • existical [blur shader]
  • alphardex [fisheye shader]

Updates

9/8/2024

Major update of the addon

  • Fixed grass, particles, light rendering. Big thanks to Reditx99 for his massive efforts to make shader scopes actually playable!
  • Gauss optic replaced with thermal scope
  • Changed NV reticle blend mode to additive
  • Added dirt, lens color, chroma settings
  • Inside of scopes is now visible when using LED illumination
  • Added chroma effect to sight bound
  • Slight changes to optic characteristics. Made Vintorez with optic sight switchable NV
  • Support for ELCAN Specter prism optic sight and 1X optics (unused in vanilla game)
  • Numerous bug fixes

9/3/2024

  • Compatibility patch for updated Mark Switch
  • Remade DOF effect

5/28/2024

Added all ACOGs to supported weapons. Thanks to WHATCHAMACALLIT for the fixed models!

3/21/2024

depth_of_field.ps compilation error fix

3/13/2024

Major refactor of the addon. Now all scopes settings are stored in weapons sections, not in different settings file. Now if you add support for new weapon with a detachable scope which is already supported, you only need to adjust .ogf file and its position, scope config will be applied automatically

Also I changed calculation of shadows. Now it's more realistic, and scopes with long eye relief (AUG, G36 and some other) feature more stable shadow, meaning these weapons suit more to use of automatic fire.

Added LED illumination for VSSK and SV-98

3/12/2024

Added LED illumination for PSO-family scopes. Requires Mark Switch addon and latest (3.11.2024) modded exes

3/11/2024

  • Changed ACOG reticle
  • Now ACOG red sight is illuminated a bit even without light (tritium illumination)
  • Added fisheye effect for reticle
  • Decreased chroma abberation effect a bit

3/10/2024

  • Slight shading fix for SVD Nimble
  • Slight position adjustment for M24
  • Added custom ACOG sun-illuminated reticle shader

3/9/2024

  • Slight reticle changes
  • Added custom 1P59 reticle shader
  • Added SVD Nimble to supported weapons

3/7/2024

  • Added slight chromatic aberration effect
  • Added depth of field effect ("r2_dof_enable on" in the console, "r2_dof_enable off" to disable)
  • Added improvised NV shader
  • Added Vintorez 1PN93 to supported weapons

3/6/2024

Added L85A1, L85A2, G36, G36K to supported weapons

3/5/2024

  • Fixed texture mipmapping (reticles should look better now)
  • Redrawn some of reticle textures to 2048x2048
  • Added 9A91, VSK-94 to supported weapons

3/4/2024

Added AUG, M4A1 RAS, HK416 to supported weapons

3/3/2024

Added FN F2000 to supported weapons