Icon of Sin / Baphomet
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Help needed with portals
 
Author
All times are GMT. The time now is 16:15. Post New Thread    Post A Reply
Mordeth
Administrator


Posts: 1883
Registered: 05-00


First off, I can make simple anchored portals without too much trouble. But I run into problems when I try to incorporate those portals into a "real" level.

For example: a corridor consisting of several identical segments. One of the segments has a portal attached to it, making the ceiling higher. Looks ok, but when the player moves two segments away from this portal segment I get some nasty HOM at the portal ceiling. WTF?

And how to use portals in area's with several different other tags (lights, etc)..? What in-level sectors do you need to tag when dealing with more complex architecture which you want to 'bridge' with a portal?

Help is sure appreciated! Links to levels with several examples of portals are also welcome :)


-- EDIT: I changed the "DUMB" pic to "TECHIE" -- Quasar

Last edited by Quasar on 07-14-04 at 00:01

Old Post 07-06-04 19:56 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02


Can you send me a quick level that illustrates your problems? That would probably be better than me trying to figure out your situation exactly.

Old Post 07-07-04 21:43 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00


James explained some things to me yesterday night on IRC. Turns out you can't move too far away from the anchor camera, or you'll get HOM as I described. Well, time for more experiments :)

Old Post 07-07-04 21:58 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02



Mordeth said:
James explained some things to me yesterday night on IRC. Turns out you can't move too far away from the anchor camera, or you'll get HOM as I described. Well, time for more experiments :)


well, the problem is that the anchor camera basically follows you wherever you go, only offset on the x and y plane. So what you have to do is make sure you have space for the anchored portal camera to go for whatever place the player can see the portal from. That should clear up some of your hom issues. Also, please note that upper/lower walls inside anchored portals can be a problem as the doom renderer won't render anything above/below them.

So when you use an anchored portal on a ceiling, don't put any lower walls in the portal area (not the actual level area, the portal area) and if you put an anchored portal on a floor, don't use any upper walls that the camera can get behind, those cases will cause hom as well...

Old Post 07-10-04 01:47 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00



SoM said:
Also, please note that upper/lower walls inside anchored portals can be a problem as the doom renderer won't render anything above/below them.


That's not a problem, but a feature :) I'm interested in using the 'boundary layer' between level and portal to 'glue' two halves of a structure together which together makes a 3D-looking object. Which works just fine... except when moving away and thus fuxoring the camera. I'm still experimenting, to find out these rules :)

You know, you should release some portal demos.

Is there a way to visualise this camera? Maybe in some kind of debug mode? I have a hard time trying to understand where that camera is located, and how exactly it moves with the player.

Old Post 07-12-04 09:30 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4615
Registered: 08-00


SoM can probably explain the anchored portal relationship to your location better than I can. I understand how it works, but would have trouble describing it unambiguously.

As for demo levels, there was that one, but it is broken because of the editing ref change to anchored portals and thus needs to be fixed before I can relink it from the main page (I'm really not up to doing this myself). SoM is also working on an Eternity map which utilizes them, although it may be a bit extensive to qualify as a good map for demonstration purposes (ie it would a bit of work to locate and isolate everything related to only the portals).

Old Post 07-13-04 23:54 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02


Mord, I'm working on a tutorial for portals that I'm going to put on my site. The tutorial should explain the whole mess pretty well.

Old Post 07-25-04 16:52 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4615
Registered: 08-00


Woo hoo, that's great news ^_^

Old Post 07-25-04 21:05 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00


Excellent, looking forward to it!

Old Post 07-26-04 09:02 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
sargebaldy
not arioch


Posts: 3655
Registered: 09-02



SoM said:
Mord, I'm working on a tutorial for portals that I'm going to put on my site. The tutorial should explain the whole mess pretty well.
Thank you!!! I've been having trouble figuring this stuff out from the documentation myself...

Old Post 08-07-04 21:59 #
sargebaldy is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02


The tutorial is going to have to wait until after Lava factory is finished... It just isn't writing itself like my writing projects usually do. The entire portal issue is complicated and I can understand it in my mind without words if that makes any sense...

Old Post 08-12-04 07:49 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00


Sorry to bump this :) I'm still struggling with those portals. Most of times things work fine, but I just cannot explain why they sometimes don't render properly.

Here's another example that has me scratching my head:

(1) Anchored portal, looking fine
(2) Same shot, moving back
(3) Another example
(4) And again after moving back

As you can see, the level geometry renders just fine but sprites sometimes get "cut off"..?

[EDIT] Example level (with darn ugly textures :)

[EDIT 2] For the curious: talked to SoM on IRC, said I found a "special case" bug. See? I am so special :) He fixed it apparantly.

Old Post 09-01-04 18:06 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02



For the curious: talked to SoM on IRC, said I found a "special case" bug. See? I am so special :) He fixed it apparantly.


Yes you are special... that anchored portal looks awesome in those screenshots btw. :P Thanks for outshining my WIP...

Old Post 09-10-04 23:36 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00


Heh.

Anyway, I figured out a way around the anchored portal camera restrictions mentioned above and thought to share with other level designers. Slight recap: when moving away from an anchored portal you might see the portal going HOM due to the position of the (virtual) portal camera. This usually happens in 'skylight'-type constructions (a structure with a portal in its center) but never in 'world'-type stuff (portal with a structure in its center).

Last night I found out that this HOM can be remedied by placing a similar tagged dummy anchored portal behind the current player position in the void.

An example:

code:
--------------------------- | A | | | | -------- | -------- | | B | | | C | | | | | | | | -------- | -------- | | | | | P | | | | | | | ---------------------------


Sector B is the tagged sector. The portal itself is sector C (although you usually have C surrounded with other sectors that make up the rest of the portalview). Assuming you have everything correctly set up, the player at position P will see a nice portal C above sector B. But when moving back far enough the ceiling of B will go HOM, due to the player getting too far removed from the virtual camera.
code:
--------------------------- | A | | | | -------- | -------- | | B | | | C | | | | | | | | -------- | -------- | | | | | P | | | | | | | --------------------------- --------------------------- --------------------------- | D | |E | --------------------------- --------------------------|


Now we've placed a sector D (which does not have to have the same properties as B) behind the player in the void. It has the same tag as sector B. Sector E is the corresponding portal for D. Take care that the level geometry of B/D matches that of C/E. Now the HOM is gone. Rinse and repeat for all troublesome angles. Yes, you're actually emulating a 'world'-type structure. This does pretty much eliminate all structural restrictions on portal usage :)

[EDIT] This does raise the question if things can be coded such as to assume a dummy portal behind the player without actually placing one..?

Old Post 09-15-04 09:09 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4615
Registered: 08-00


What the hell? Why does this work? o_O

Old Post 09-16-04 01:04 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Anders
No one knows I'm schepe


Posts: 427
Registered: 03-02


Cool, the first doom2.exesque editing trick for eternity.

Old Post 09-16-04 02:34 #
Anders is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Julian


Posts: 2658
Registered: 04-75



Quasar said:
What the hell? Why does this work? o_O

No clue, but it proves the portals can work better which is good.

Old Post 09-16-04 10:11 #
Julian is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00


And another helpful tip for level designers.

Portals are apparantly also drawn from faked floor/ceilings, made by the transfer flat property trigger (242). Evil indeed :) But most 'underwater' situations will get ruined by this.. This can be solved by creating a similar deep water effect for the portal sector. That way you can see the normal sector and the portal when above the surface, and just the underwater part when below the surface.

Old Post 09-18-04 15:41 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Lüt
YA-HA


Posts: 12245
Registered: 05-00


Hey Mordeth, could you have a look at this post? Are you saying that the specific HOM issues I'm whining about there (basically I'm trying to put structures on a building roof) are removable with this fix? Because I tried it and either did something wrong or misunderstood what it was supposed to fix. If so, I'll at least continue with the design and worry about the fix later.

Old Post 11-25-04 23:51 #
Lüt is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02


Mordeth, I've been trying forever to recreate the portal problem you describe here but I can't, can you send me map that displays the bug? Thanks.

By the way, *BUMP*

Old Post 03-11-05 02:35 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1883
Registered: 05-00



SoM said:
Mordeth, I've been trying forever to recreate the portal problem you describe here but I can't, can you send me map that displays the bug? Thanks.

By the way, *BUMP*



What do you know, a new post on exactly the same day I happen to look here again ;)

Will whip one example up. See you on IRC soon ;)

Old Post 03-11-05 14:03 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 266
Registered: 03-02



Mordeth said:


What do you know, a new post on exactly the same day I happen to look here again ;)

Will whip one example up. See you on IRC soon ;)



so.... you got those examples done?

Old Post 03-14-05 04:58 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 16:15. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Help needed with portals

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory