NVIDIAGameWorks / rtx-remix

Combined repo for the RTX-Remix runtime
https://www.nvidia.com/en-us/geforce/rtx-remix/
MIT License
1.39k stars 69 forks source link

[Runtime Feature]: Add support for more than one portal pair #663

Open wolfestridershooter opened 3 weeks ago

wolfestridershooter commented 3 weeks ago

What is the context of the feature/improvement?

Since Portal 2 now works with RTX Remix we need support for more than one portal pair. In the singleplayer campaign there are places where two portal pairs are required, co-op has four. There are even scenarios where Portal 2 can have over 64 portals open at once so the limit should be more than marginally increased.

Please describe the feature/improvement?

Add support for more than one portal pair.

What would be your solution? (optional)

No response

Version

f80a3a2-667-release

Media

image You should be able to see out of this door (there is a world portal in the door that goes to another part of the map) but since we only have one portal pair this world portal doesn't work^

xoxor4d commented 3 weeks ago

I've actually started working on this myself and got 3 pairs working fine (virtual instances should work as well - the viewmodel does at least): https://github.com/xoxor4d/dxvk-remix/commit/73fb07d33492814f36433adb6681167a9b03fe78#diff-20442ebd2aae244d99494afb6d91a018fab1cfe887216bf500592a1954653c3dR1523

I'm having some trouble with:

This also includes a fix for virtual instances where the world transform == identity (transform is baked into the vertices) by using the centroid of the bounding box (enabled if enableAlwaysCalculateAABB is active). Virtual instances are not working otherwise (as the world pos of the player body texture will always be at 0 0 0)

NV-LL commented 3 weeks ago

Thanks for reaching out! We've opened REMIX-3677 for internal tracking.