In some particular cases masked walls are rendered as opaque:
I managed to track it down to a difference in the global render state: texture mode values were different during rendering of masked walls.
This change fixed the issue for me. Although I am not sure that other render state values were not affected by sky rendering and my fix doesn't hide a bigger problem.
This issue is encountered on OS X only so far. It appeared however that it's related to drawing of the sky portal. If the sky was rendered, there will be no black pixels instead of transparent ones.Issue with rendering of masked walls
Moderator: Graf Zahl
-
- Developer
- Posts: 259
- Joined: Sun Aug 07, 2011 13:36
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Issue with rendering of masked walls
It looks that that code never sets the initial texture mode at all. I think it's OSX only because of the textured dynamic light stuff I recently added.
-
- Developer
- Posts: 259
- Joined: Sun Aug 07, 2011 13:36
Re: Issue with rendering of masked walls
Is there anything else that must be changed except my fix? Is it OK actually?
I suppose you cannot reproduce the problem, so I'm not certain that you will work on it. From the other hand I can reproduce it for sure, but have no idea what I should do above the mentioned fix.
I suppose you cannot reproduce the problem, so I'm not certain that you will work on it. From the other hand I can reproduce it for sure, but have no idea what I should do above the mentioned fix.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Issue with rendering of masked walls
I haven't had a closer look yet. I was rather busy the last few days.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Issue with rendering of masked walls
Does this still happen? I think this may be related to a bug I fixed recently which was causing all sorts of problems with midtextures.
-
- Developer
- Posts: 259
- Joined: Sun Aug 07, 2011 13:36
Re: Issue with rendering of masked walls
Yes, it does on the latest.Graf Zahl wrote:Does this still happen? I think this may be related to a bug I fixed recently which was causing all sorts of problems with midtextures.
The texture mode values are still different right before drawing of affected walls: TM_MODULATE with the sky vs. TM_OPAQUE without it. Apparently the latter value is wrong. In my case the difference is caused by sky portal rendering. Maybe there are some other possibilities for changing of the texture mode.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Issue with rendering of masked walls
I believe the problem occurs in BoundTextureDraw2D. That function sets the texture mode to TM_OPAQUE but never resets it to TM_MODULATE which is the assumed default everywhere else.
-
- Developer
- Posts: 259
- Joined: Sun Aug 07, 2011 13:36
Re: Issue with rendering of masked walls
Damn, have no idea how I can miss that. Thanks.