Bug #553

renderer2: fix 'fogvars' fog / fog issues

Added by IR4T4 about 5 years ago. Updated 8 days ago.

Status:Confirmed% Done:

80%

Priority:NormalSpent time:-
Assignee:-
Category:Client
Target version:renderer2
OS: Arch:

Description

As the title says - fog doesn’t work.

Affected maps (f.e.):
- stalingrad
- baserace

Actually q3 and ET use different foq code! Vanilla ET/r1 don’t use the fogTable. This has been removed with http://dev.etlegacy.com/projects/etlegacy/repository/revisions/4e5eba5b3977847342143350f0603514a495d3b9

I did try to add the q3 style for r1 but I wasn’t able to adjust the density of foq to 'known ET’ style fog. See attached images. Unfortunately I didn’t do a screeny of a wide sight - the range of view is very short (max 1024 game units).

shot0001.jpg (297 KB) IR4T4, 02.08.2014 09:18

shot0002.jpg (226 KB) IR4T4, 02.08.2014 09:18

shot0003.jpg (280 KB) IR4T4, 02.08.2014 09:19

shader_fog_fragment.glsl (2.86 KB) thunder, 08.04.2017 19:17

shader_fog_vertex.glsl (1.93 KB) thunder, 08.04.2017 19:17

shader_phong_fragment.glsl (528 Bytes) thunder, 08.04.2017 19:17

shader_phong_vertex.glsl (418 Bytes) thunder, 08.04.2017 19:17

340
341
342

Associated revisions

Revision f0633a99
Added by IR4T4 about 2 years ago

renderer2: q3/ET fog enabled refs #553

Revision d6e40208
Added by IR4T4 about 1 year ago

renderer2: read all available submodel data from bsp and set model num
in fog_t refs #553

History

#1 Updated by IR4T4 about 5 years ago

  • Category set to Client
  • Target version set to 2.78

#2 Updated by IR4T4 about 5 years ago

  • Target version changed from 2.78 to renderer2

#3 Updated by Jacker about 5 years ago

This needs to be fixed with a custom glsl shader path, not a hard fix to do

#6 Updated by IR4T4 about 2 years ago

I’ve had a look at this again and figured out why q3/ET fog wasn’t visible in general. This has been fixed.


- Make fog more foggy. Compared to r1 it’s currently more a cut at the horizon.
- Rework SetFarClip() - see buildings (f.e. baserace) on different distances. It doesn’t look natural.

#7 Updated by IR4T4 almost 2 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#8 Updated by IR4T4 over 1 year ago

Re-opened. Fog needs some optimizations see baserace or radar.
Compared to r2 It looks a bit too intensive and the sky on radar isn’t visible.

#9 Updated by IR4T4 over 1 year ago

  • Status changed from Fixed to Confirmed
  • % Done changed from 100 to 80

#10 Updated by IR4T4 over 1 year ago

  • Subject changed from renderer2: fix fog to renderer2: fix 'fogvars' fog
  • % Done changed from 80 to 70


Maps with fogvars set don’t display this fog. Example: https://www.wolffiles.de/index.php?filebase&fid=4901

#11 Updated by IR4T4 over 1 year ago

Fog has been reworked (should be fine for a release) but it’s still WIP.

#12 Updated by IR4T4 over 1 year ago

  • Subject changed from renderer2: fix 'fogvars' fog to renderer2: fix 'fogvars' fog / fog issues


- inspect global world fog using static density?

#13 Updated by thunder 15 days ago

  • % Done changed from 70 to 80

still need to get both fogs on the maps loaded with shader only

#14 Updated by thunder 8 days ago

cant fix that maps issues atm..

Also available in: Atom PDF