Is height independent Line_SetPortal possible somehow?
So you could have a line portal that is limited to lower, middle or upper only, iv tried moving a line from another sector with correct height but then it makes it impassible underneath.
My main need for this is trying to make Sector portals accessible from the sides and not only floor / ceilings but could be very useful for everything from windows to faking more complex geometry.
Height independent Line_SetPortal possible?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Height independent Line_SetPortal possible?
No, currently that cannot be done. The limitation here is mainly on the movement code, not the renderer.
- Darkcrafter
- Posts: 564
- Joined: Sat Sep 23, 2017 8:42 am
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
Re: Height independent Line_SetPortal possible?
I would be really glad to find a use even for just a rendering option
- TDRR
- Posts: 815
- Joined: Sun Mar 11, 2018 4:15 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Debian 12/ Manjaro
- Graphics Processor: nVidia with Vulkan support
- Location: Venezuela
Re: Height independent Line_SetPortal possible?
You can use camera textures and VectorAngle() to make height independent semi-believable portals. You also need another ACS Script to control teleporting but it's doable.
I did make an example .wad if you want it, but i didn't set it up in the most convincing of ways.
EDIT:Almost forgot, you could also use GetActorPosX (and the variations, Y and Z) to get the position of the player and move the camera accordingly, but that requires more maths than i know so i haven't done it.
I did make an example .wad if you want it, but i didn't set it up in the most convincing of ways.
EDIT:Almost forgot, you could also use GetActorPosX (and the variations, Y and Z) to get the position of the player and move the camera accordingly, but that requires more maths than i know so i haven't done it.
- Kinsie
- Posts: 7401
- Joined: Fri Oct 22, 2004 9:22 am
- Graphics Processor: nVidia with Vulkan support
- Location: MAP33
- Contact:
Re: Height independent Line_SetPortal possible?
Having messed around with trying to imitate similar effects using camera textures in another engine, I'm sceptical of this: It'd look distorted and funky from angles other than straight-ahead (even with funky math to try and recreate the camera angle, which would probably break in multiplayer...) and get blurry/pixelly up close.TDRR wrote:You can use camera textures and VectorAngle() to make height independent semi-believable portals.
- TDRR
- Posts: 815
- Joined: Sun Mar 11, 2018 4:15 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Debian 12/ Manjaro
- Graphics Processor: nVidia with Vulkan support
- Location: Venezuela
Re: Height independent Line_SetPortal possible?
Thing is, it's still x10 times better than nothing at all, and you could even leave the camera facing straight ahead if you want as long as it represents the place you will go after travel.Kinsie wrote:Having messed around with trying to imitate similar effects using camera textures in another engine, I'm sceptical of this: It'd look distorted and funky from angles other than straight-ahead (even with funky math to try and recreate the camera angle, which would probably break in multiplayer...) and get blurry/pixelly up close.TDRR wrote:You can use camera textures and VectorAngle() to make height independent semi-believable portals.