VReaperV

Results 524 comments of VReaperV

> Hmm, `PreparePortalCommand` was previously named `R_PreparePortalCmd`, introduced in commit [62c51af](https://github.com/DaemonEngine/Daemon/commit/62c51af982c3120fbe334cb7019f1ef888486ee3) by @gimhael. > > The commit is named `Add support for multiple and nested portals by using a stencil...

It looks like both methods add new rendering cmds for the backend to render. It seems to be rendering them in the order they were added, and the only draw...

> Maybe the portal is written to the wrong framebuffer and written directly on the screen? 🤔️ The framebuffers seem to be correct... At least the drawing of the actual...

> What I mean is that maybe the portal should be rendered to a specific framebuffer to be able to render it? > > Or is it simply expected to...

> What can prevent a translucent object in front of a portal to not blend with it? > > As seen in: > > * [Portals render above translucent textures ...

Actually, look at this: ![unvanquished_2024-01-05_023205_000](https://github.com/DaemonEngine/Daemon/assets/10687142/8d822bca-f47b-4fc5-91fb-59c38547b1b8) I noclipped into the window (the window has 2 sides), you can see that on the right it's rendered is if I was in the...

This also affects building outlines, here's with z_near 100: ![unvanquished_2024-01-05_025741_000](https://github.com/DaemonEngine/Daemon/assets/10687142/e8c682c0-3db9-409c-87e5-e4f363dd8e0d)

This also makes me think it might have something to do with depth (perhaps how it's used in `generic_fp.glsl` or the input values there?): ![unvanquished_2024-01-05_031651_000](https://github.com/DaemonEngine/Daemon/assets/10687142/5385e1ae-0c51-4761-b450-ffea07ffd94f) ![unvanquished_2024-01-05_031804_000](https://github.com/DaemonEngine/Daemon/assets/10687142/7f9fc61e-12ee-4985-9d62-5a1fb874cc11) ![unvanquished_2024-01-05_034743_000](https://github.com/DaemonEngine/Daemon/assets/10687142/2b705a8b-0069-4113-8ee8-1a726d92d2d5)

It's also worth noting that you can't do that on grangermaze: ![unvanquished_2024-01-05_032817_000](https://github.com/DaemonEngine/Daemon/assets/10687142/8b0befee-515d-4335-b0b4-e12263c752a1) That's probably because the depth there is set to 1.0 since there's nothing behind the portal.

@illwieckz I believe I found the issue. These are the color buffer and depth buffer as seen in Nsight on pulse near the window: ![debug_a1](https://github.com/DaemonEngine/Daemon/assets/10687142/e839bb0b-3747-467e-98ab-0e004d5a97cc) ![debug_a1d](https://github.com/DaemonEngine/Daemon/assets/10687142/276ce2e1-8a04-4121-abc0-5ecd658c9bd4) The stuff rendered in...