Wall portals

Moderator: GZDoom Developers

User avatar
Shadow Hog
Posts: 173
Joined: Fri Aug 14, 2015 8:56 pm

Re: Wall portals

Post by Shadow Hog »

Well then, if Eternity-style fixed-offset portals are working correctly, then it's time to go remake "Lunatic Fringe"...
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Wall portals

Post by NeuralStunner »

A bit off-topic, but what kind of hassle would it be to move the FastProjectile's combined X/Y/Z movement into all missiles? I tend to make rockets move quite fast, and it's irritating to choose between proper Z movement and nicer features. It seems like FastProjectile hardly saves any processing these days, maybe it could even be "deprecated". (Or at the least, pack anything "extraneous" into an if block. The function duplication still seems pretty weird to me.)

I wonder if you'd even have to compat-flag such a thing. I can't think of any reason why you'd want the bizarre missile movement.

(I can make this a proper suggestion topic if you'd rather.)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

NeuralStunner wrote:A bit off-topic, but what kind of hassle would it be to move the FastProjectile's combined X/Y/Z movement into all missiles?

Break a lot of stuff.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Wall portals

Post by Gez »

I haven't seen any documentation for [wiki]Line_SetPortalTarget[/wiki], which seems to be the function to use to redefine a portal at run-time. So I created it and I hope it's actually how it works.

I'm not sure what happens if you redefine a portal in a way which is incompatible with its original definition.
User avatar
Shadow Hog
Posts: 173
Joined: Fri Aug 14, 2015 8:56 pm

Re: Wall portals

Post by Shadow Hog »

Speaking of the wiki, you think it's about time to change [wiki]Portal[/wiki] from a redirect to [wiki]Stacked sectors[/wiki] into a disambig page?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

Gez wrote:I'm not sure what happens if you redefine a portal in a way which is incompatible with its original definition.
You cannot redefine linked portals at all. For the other types, they get temporarily downgraded if the features don't mix.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Wall portals

Post by Gez »

How complete are the Eternity compatibility portals supposed to be? I've loaded Ogro Power Facility, with the following MAPINFO:

Code: Select all

map MAP01 "Ogro Power Facility"
{
	translator = "xlat/eternity.txt"
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "SKY1"
	cluster = 5
	par = 3000
	music = "$MUSIC_RUNNIN"
}
And the horizon effect, for example, isn't here:
Eternity:
Image

GZDoom:
Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

The Eternity-style horizon portal is not implemented in ZDoom, and neither is the 'transfer portal to wall' effect and the plane portal.
These are strictly renderer side features, and outside my work area.

In GZDoom all this should work as intended. At least I got them implemented. No idea what's the problem now. Maybe they got disabled by some recent restructuring.
User avatar
hfc2x
Posts: 646
Joined: Mon Aug 17, 2009 11:37 am
Location: Chule

Re: Wall portals

Post by hfc2x »

Shouldn't it be possible for xlat to translate that specific portal type to Line_Horizon?
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Wall portals

Post by Gez »

Not really, it's set up in a different way.


Static portals seem to freeze GZDoom. It eventually runs out of allocatable memory and crashes. Problem encountered with gzdoom-g2.2pre-797-g7134f53.7z from March 9 on devbuilds.
Attachments
staticportaltest.wad
(5.73 KiB) Downloaded 59 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

hfc2x wrote:Shouldn't it be possible for xlat to translate that specific portal type to Line_Horizon?

No. For the simple reason that it's not the same. The Eternity horizon line takes its data from a model sector, not just from the line's front side. And for that Ogro map it makes a major difference.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

Gez wrote:Not really, it's set up in a different way.


Static portals seem to freeze GZDoom. It eventually runs out of allocatable memory and crashes. Problem encountered with gzdoom-g2.2pre-797-g7134f53.7z from March 9 on devbuilds.

Serves you right for insisting on using one-sided lines for portals!
Outside of polyobjects that is absolutely discouraged.
User avatar
Major Cooke
Posts: 8176
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Wall portals

Post by Major Cooke »

That reminds me, they need a space behind the line, don't they? That is, portals built into walls that are meant to have nothing behind them? Just wanted to double check and update the wiki accordingly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wall portals

Post by Graf Zahl »

Yes. There must be enough space behind to move into. Otherwise you can collide with stuff that occupies the space behind the portal.
User avatar
Major Cooke
Posts: 8176
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Wall portals

Post by Major Cooke »

Added that and a note that the line should be double sided sans polyobjects.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”