Jump to content

seamless portals


Exmirai

Recommended Posts

Posted

Pretty sure I made some minor engine changes too. @@Didz poked it a bit in JA getting portals to render correctly, he may have something to say.

Posted

FYI the camera portals don't work if you use dynamic glow feature.

That's a weirdly specific issue... We should see about getting that fixed.
Posted

What's that? Is that like a movie? I bet it's a trilogy like everything else these days huh.

I think he misspelled Postal. I didn't know that had portals though...
Posted

Pretty sure I made some minor engine changes too. @@Didz poked it a bit in JA getting portals to render correctly, he may have something to say.

 

I got portals rendering on quads and that's about as far as I think I got:

shot0086.jpg

 

It had trouble rendering multiple portals at once and recursive portals, so it was basically with the same limitations as basejka misc_portal entities. The engine source code wasn't out at this point but in the Q3 source code I believe there's a single if statement that limits how many portals can be rendered at once to 1 (which also prevents recursion). This rendering experiment wasn't done with the portalmod source code, so there was no moving through portals here.

 

Also I wasn't sure how I'd fix issues like this, where the result of one portal renders through another:

shot0085.jpg

 

In the 21st century, you'd probably do this with stencil buffers to limit the rendering of each portal to within their "viewport". Maybe this already happens and there needs to be multiple "levels" of stencil to handle distinct portals.

Stoiss and eezstreet like this
Posted

Well, since portals work by first drawing the scene they're linked to and then the original scene on top of it, there's really no way to have multiple at once without engine changes.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...