by Rachael » Tue Oct 03, 2023 2:37 pm
jensenn wrote: Tue Oct 03, 2023 11:49 am
So it draws it all from one view rather then two need for correct perspective drawing? is it unable to do two or was it never added? I might give that a crack.
What it needs is to
not allow lines that are between the view sector and the player to be drawn, at all.
Let's say the o> is the player here, facing east, and here's the top part of the stacked sector portal, and the portal is drawn in brackets [ ]:
Now here's the bottom part, with walls drawn as |:
As you can see, if we were to put those directly on top of each other, the player would appear behind the line that is on the bottom side. That causes that line to occlude everything in front of it, manifesting as the rendering glitch you see.
This and a hundreds of other weird glitches are reasons why the software renderer ultimately ended up abandoned over time. It can handle basic vanilla Doom maps just fine without issue - but anything more advanced than that, it usually has problems.
[quote=jensenn post_id=1245770 time=1696355355 user_id=37617]
So it draws it all from one view rather then two need for correct perspective drawing? is it unable to do two or was it never added? I might give that a crack.
[/quote]
What it needs is to [b]not[/b] allow lines that are between the view sector and the player to be drawn, at all.
Let's say the o> is the player here, facing east, and here's the top part of the stacked sector portal, and the portal is drawn in brackets [ ]:
[code]
| o> [ ][/code]
Now here's the bottom part, with walls drawn as |:
[code]
| | [ ][/code]
As you can see, if we were to put those directly on top of each other, the player would appear behind the line that is on the bottom side. That causes that line to occlude everything in front of it, manifesting as the rendering glitch you see.
This and a hundreds of other weird glitches are reasons why the software renderer ultimately ended up abandoned over time. It can handle basic vanilla Doom maps just fine without issue - but anything more advanced than that, it usually has problems.