Height independent Line_SetPortal possible?

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Height independent Line_SetPortal possible?

Re: Height independent Line_SetPortal possible?

by TDRR » Sun Jun 02, 2019 11:06 am

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.

Re: Height independent Line_SetPortal possible?

by Kinsie » Sun Jun 02, 2019 5: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.

Re: Height independent Line_SetPortal possible?

by TDRR » Sat Jun 01, 2019 11:24 am

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.

Re: Height independent Line_SetPortal possible?

by Darkcrafter » Tue May 21, 2019 3:37 pm

I would be really glad to find a use even for just a rendering option :)

Re: Height independent Line_SetPortal possible?

by Graf Zahl » Tue May 21, 2019 6:12 am

No, currently that cannot be done. The limitation here is mainly on the movement code, not the renderer.

Height independent Line_SetPortal possible?

by Elias79 » Tue May 21, 2019 5: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.

Top