Mirrors don't work after indexbuffer merge

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom 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.
Post Reply
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Mirrors don't work after indexbuffer merge

Post by Marisa the Magician »

Just loaded Kinsie's test map and turned around. The mirror isn't rendering anymore in OpenGL.
User avatar
Xane123
Posts: 165
Joined: Tue Nov 24, 2015 1:58 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Inwood, WV
Contact:

Re: Mirrors don't work after indexbuffer merge

Post by Xane123 »

I'm going to assume this is also what broke reflective surfaces in my game as well! Now instead of reflecting, the surface just turns transparent and you can see the sky and lower sectors through it!
Broken mirror and reflective plane rendering
Broken mirror and reflective plane rendering
(Also, broken mirror visible in screenshot. Hope this is fixed sometime.)
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Mirrors don't work after indexbuffer merge

Post by _mental_ »

Fixed in 0187b0a.
User avatar
Xane123
Posts: 165
Joined: Tue Nov 24, 2015 1:58 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Inwood, WV
Contact:

Re: Mirrors don't work after indexbuffer merge

Post by Xane123 »

Thanks, _mental_. It's strange how updates to GZDoom break random things but I guess that's why they're development builds.
User avatar
Rachael
Posts: 13557
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Mirrors don't work after indexbuffer merge

Post by Rachael »

No, it's not strange at all.

The part of the code that this affects was completely wiped out and rewritten. Bugs are going to happen in such a scenario because there's no possible way anyone (not even Graf, who likely knows more than anyone else about the code base right now) can account for every possible use scenario in one go.

Don't forget: GZDoom is a very complex piece of software.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Mirrors don't work after indexbuffer merge

Post by Graf Zahl »

Even so, I think for mirrors the fix needs to be reviewed. It cannot use the map section info of the current viewpoint. It has to use the map section of the original viewpoint. A mirrored viewpoint can lie in an entirely different section and still produce empty content as a result.

Will check when I get back home later.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Mirrors don't work after indexbuffer merge

Post by _mental_ »

Yes, you are right. To make it work the same as before UpdateCurrentMapSection() calls need to be moved at the begging of DrawContents() functions I think, here and here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Mirrors don't work after indexbuffer merge

Post by Graf Zahl »

For a plane mirror it's not really relevant because the x/y will be the same. Only for a wall mirror this is an issue.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Mirrors don't work after indexbuffer merge

Post by _mental_ »

OK, I hope it's finally fixed in f06ee10.
Post Reply

Return to “Closed Bugs [GZDoom]”