Height independent Line_SetPortal possible?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

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.

Height independent Line_SetPortal possible?

Postby Elias79 » Tue May 21, 2019 6:50 am

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.
Elias79
 
Joined: 30 Jan 2017

Re: Height independent Line_SetPortal possible?

Postby Graf Zahl » Tue May 21, 2019 7:12 am

No, currently that cannot be done. The limitation here is mainly on the movement code, not the renderer.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Height independent Line_SetPortal possible?

Postby Darkcrafter » Tue May 21, 2019 4:37 pm

I would be really glad to find a use even for just a rendering option :)
User avatar
Darkcrafter
 
Joined: 23 Sep 2017
Location: South Russia
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Height independent Line_SetPortal possible?

Postby TDRR » Sat Jun 01, 2019 12:24 pm

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.
User avatar
TDRR
iDeas from the deep (pit of hacks)
 
Joined: 11 Mar 2018
Location: Venezuela
Operating System: Windows Vista/7 64-bit
Graphics Processor: Intel (Modern GZDoom)

Re: Height independent Line_SetPortal possible?

Postby Kinsie » Sun Jun 02, 2019 6:27 am

TDRR wrote:You can use camera textures and VectorAngle() to make height independent semi-believable portals.
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.
User avatar
Kinsie
A Concept Utterly Obsolete
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

Re: Height independent Line_SetPortal possible?

Postby TDRR » Sun Jun 02, 2019 12:06 pm

Kinsie wrote:
TDRR wrote:You can use camera textures and VectorAngle() to make height independent semi-believable portals.
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.


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.
User avatar
TDRR
iDeas from the deep (pit of hacks)
 
Joined: 11 Mar 2018
Location: Venezuela
Operating System: Windows Vista/7 64-bit
Graphics Processor: Intel (Modern GZDoom)


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest