Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002074Zandronum[All Projects] Bugpublic2015-01-20 19:552015-02-01 20:37
ReporterHypnotoad 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version2.0-beta 
Target Version2.0Fixed in Version 
Summary0002074: Fog (sector_setfade) rendered incorrectly in openGL, breaks backwards compatibility
DescriptionThe fog rendering seems to have significantly changed from 1.3 to 2.0, making some maps look considerably worse. As an example, here is what a map I made called "The Last Hurrah" looks like in 1.3, notice how the distance nicely disappears into the fog and provides a nice colour gradient:

'http://i.imgur.com/yZGLWmr.png [^]'
'http://i.imgur.com/JoBehy2.jpg [^]'
'http://i.imgur.com/Q9Lhwa5.png [^]'

Now look at equivalent screenshots from 2.0:

'http://i.imgur.com/Q5tpFgV.png [^]'
'http://i.imgur.com/jqleEEb.png [^]'
'http://i.imgur.com/y4jNS9Y.png [^]'

No longer does the distance disappear into the fog, and you can instead see the full horizon, additionally there is no longer any colour gradient, which looks quite ugly. This isn't the only map affected by this.

There is also some strange bug indicated by these pictures:

1.3:
'http://i.imgur.com/wdCY1Cn.jpg [^]'

2.0:
'http://i.imgur.com/uN5Erow.jpg [^]'
(notice the strange dark cylinders)

I have attached a basic example wad with fog, which you can compare in 1.3 and 2.0. The map is map64.
Attached Files? file icon fogtest.wad [^] (3,074 bytes) 2015-01-20 19:55
? file icon setfade_horizon.wad [^] (2,696 bytes) 2015-01-21 08:00

- Relationships

-  Notes
User avatar (0011462)
Edward-san (developer)
2015-01-20 20:45
edited on: 2015-01-20 20:46

After removing an unneeded consolecommand from the script in the example wad, I could reproduce the issue in gzdoom trunk. Reporting it now.

User avatar (0011469)
Torr Samaho (administrator)
2015-01-21 07:09

Edward-san, can you upload your updated example wad, so that we can keep it in the ticket?
User avatar (0011472)
Edward-san (developer)
2015-01-21 08:01

Done.
User avatar (0011498)
Edward-san (developer)
2015-01-22 13:41

It ended bad with that example wad. Maybe if you manage to bring another example wad which is compliant to what graf said and is still buggy, let me know. I leave this open also for the other mentioned issues here.
User avatar (0011499)
Hypnotoad (reporter)
2015-01-22 15:23

Can I request something like compat_oldGLfog to restore Zandronum's/Skulltag's original fog rendering then.
User avatar (0011524)
Torr Samaho (administrator)
2015-01-25 09:39

We should try to avoid emulating GZDoom bugs that were fixed in GZDoom. Based on Graf's comment this should be fixable by dropping the light level from 255 to 254. Is this correct?
User avatar (0011540)
Hypnotoad (reporter)
2015-01-25 14:28

I'll try it out and let you know, but it's a huge shame as this bug has been in Skulltag for as long as I can remember, so a number of old projects may be potentially badly affected by this change in behavior in rendering in this update.

It's an old trick, since fog in software always looked very nasty (more like a 'blanket of color'), a setting where the fog only shows in GL and less so in software (by setting high brightness in the sector) became quite useful.
User avatar (0011542)
Torr Samaho (administrator)
2015-01-25 15:56

I always hate breaking backwards compatibility, but here the choice was made in GZDoom. If possible, I'd stay consistent with what GZDoom is doing. Probably the affected map authors should discuss this with the (G)ZDoom devs.
User avatar (0011584)
Dusk (developer)
2015-02-01 20:37

Closing because:
- the map has not seen a final release
- the fog never rendered in 1.3 software and for features software supports, software is correct
- the problem is trivial to fix in the level, change light level from 255 to 254

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2015-01-20 19:55 Hypnotoad New Issue
2015-01-20 19:55 Hypnotoad File Added: fogtest.wad
2015-01-20 20:45 Edward-san Note Added: 0011462
2015-01-20 20:46 Edward-san Note Edited: 0011462 View Revisions
2015-01-20 21:01 Edward-san Status new => confirmed
2015-01-20 21:01 Edward-san Resolution open => waiting for zdoom
2015-01-20 21:01 Edward-san OS Windows =>
2015-01-20 21:01 Edward-san OS Version XP/Vista/7 =>
2015-01-20 21:01 Edward-san Platform Microsoft =>
2015-01-21 00:04 Dusk Status confirmed => acknowledged
2015-01-21 07:09 Torr Samaho Note Added: 0011469
2015-01-21 07:10 Torr Samaho Target Version => 2.0
2015-01-21 08:00 Edward-san File Added: setfade_horizon.wad
2015-01-21 08:01 Edward-san Note Added: 0011472
2015-01-22 13:41 Edward-san Note Added: 0011498
2015-01-22 13:41 Edward-san Status acknowledged => feedback
2015-01-22 13:41 Edward-san Resolution waiting for zdoom => open
2015-01-22 15:23 Hypnotoad Note Added: 0011499
2015-01-22 15:23 Hypnotoad Status feedback => new
2015-01-25 09:39 Torr Samaho Note Added: 0011524
2015-01-25 09:39 Torr Samaho Status new => feedback
2015-01-25 14:28 Hypnotoad Note Added: 0011540
2015-01-25 14:28 Hypnotoad Status feedback => new
2015-01-25 15:56 Torr Samaho Note Added: 0011542
2015-02-01 20:37 Dusk Note Added: 0011584
2015-02-01 20:37 Dusk Status new => closed
2015-02-01 20:37 Dusk Resolution open => won't fix






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker