[0.4.5] [Blood] Some textures flicker
Moderator: Raze Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
[0.4.5] [Blood] Some textures flicker
The lighting fixture and signs on the sides flicker in this hall section as you move from side to side.
https://streamable.com/xorbo
https://streamable.com/xorbo
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
Where in the game is this? Can you post a savegame at that location?
Re: [0.4.5] [Blood] Some textures flicker
Blood base game. Save file: https://www.dropbox.com/transfer/AAAAAF ... 9Dqymck0Vc Oddly it only happens when the doors are closed and the light fixture is broken.
- sinisterseed
- Posts: 1349
- Joined: Tue Nov 05, 2019 6:48 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [0.4.5] [Blood] Some textures flicker
This is probably also related to wallsprites flickering in general.
I can easily reproduce this even when the light isn't broken, in which case the wallsprites just flicker, but for some reason breaking it causes that black flickering around the light fixture for a split second.
I can easily reproduce this even when the light isn't broken, in which case the wallsprites just flicker, but for some reason breaking it causes that black flickering around the light fixture for a split second.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
This is something that's probably not fixable without rewriting the renderer. This code is in such a dismal state that I simply do not know where to start with it. Ultimately it's a design flaw in the Build engine - it seems to determine ad-hoc what a wall sprite may be attached to, and that has some pretty unpleasant implications on how they get rendered.
Have you ever tried hitting the same wall with the pitchfork over and over again and then enjoyed the glitchy hit marks? It looks awful.
Have you ever tried hitting the same wall with the pitchfork over and over again and then enjoyed the glitchy hit marks? It looks awful.
- sinisterseed
- Posts: 1349
- Joined: Tue Nov 05, 2019 6:48 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [0.4.5] [Blood] Some textures flicker
Ah yes, the Build rendering glory :V .
But I wonder why it doesn't happen in the other ports, that's what makes me think this is probably just some missing/leftover code that doesn't play well with the new backend at all. But since Polymer is a dead end anyway, perhaps it really is time to just shift focus to a new renderer.
But I wonder why it doesn't happen in the other ports, that's what makes me think this is probably just some missing/leftover code that doesn't play well with the new backend at all. But since Polymer is a dead end anyway, perhaps it really is time to just shift focus to a new renderer.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
I really have no idea, it seems that some minor part must have changed in the transition to my own backend.
I'll shift focus to the new renderer once the games are all working. I think with Duke and Blood we are on a good way right now, so SW will be next.
I'll shift focus to the new renderer once the games are all working. I think with Duke and Blood we are on a good way right now, so SW will be next.
Re: [0.4.5] [Blood] Some textures flicker
So essentially, much of the games core behavior is inexplicably married to it's renderer. Which in turn consists of obsolete code and black magic. I can imagine the frustration Kaiser had to deal with this too.
- sinisterseed
- Posts: 1349
- Joined: Tue Nov 05, 2019 6:48 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [0.4.5] [Blood] Some textures flicker
I don't think he did honestly.markanini wrote:So essentially, much of the games core behavior is inexplicably married to it's renderer. Which in turn consists of obsolete code and black magic. I can imagine the frustration Kaiser had to deal with this too.
I recall reading that Kaiser essentially used 0 Build engine code. They basically disassembled the entire game and moved it to an entirely new engine (KEX) and left it at that, likely because making sense of it would've been a living nightmare, as we can see here.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
It's really too bad that the FS engine is closed source. That's something I'd really like to have a look at - a different engine capable of rendering Build levels.
Re: [0.4.5] [Blood] Some textures flicker
I've seen him or Edward850 mention that parts of Build code were still referenced within KEX. Some one else can make the educated guess on which parts.lowskill. wrote:I don't think he did honestly.
- sinisterseed
- Posts: 1349
- Joined: Tue Nov 05, 2019 6:48 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [0.4.5] [Blood] Some textures flicker
Yeah, me too, what a complete waste that it was closed source, but I can see why - not wanting anything to do with the original source, which is currently owned by WB and they were not involved in the process at all, even though it was not a faithful recreation anyway, as it can be seen in FS' gameplay which is not vanilla accurate.
My guess is game logic, and some rendering elements such as the ROR shenanigans and portals. Everything else was completely new I think - even the collision code was entirely rebuilt, but it was still very glitchy - FS' crushers are notorious for killing the player while being raised, and not crushing the player when they actually hit them.markanini wrote:I've seen him or Edward850 mention that parts of Build code were still referenced within KEX. Some one else can make the educated guess on which parts.lowskill. wrote:I don't think he did honestly.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
See also: viewtopic.php?f=340&t=67710
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49053
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [0.4.5] [Blood] Some textures flicker
I'm already using that - the problem lies elsewhere. IIRC Build works by rotating the wall sprite into the proper orientation with its crude fixed point trig functions and those are wayyy to imprecise. But it's hard to change because too much math is done in fixed point instead of converting to float as soon as possible and use higher precision math. Last year some already existing float math was even converted back to fixed point for unknown reasons!