Ouchface
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 > Issue: portal within Anchored Portal
 
Author
All times are GMT. The time now is 18:14. Post New Thread    Post A Reply
Mordeth
Administrator


Posts: 1993
Registered: 05-00


I've been experimenting with Anchored Portals to add some 3D visual fluff to levels, for example a broken floor with the player able to see architecture stretching underneath the floor while standing in the hole. I can also make this reciprocal, so Anchored Portals become 2-way 'windows'.

So far so good. A player standing inside such a Anchored Portal area can see the linked-from area, PLUS any additional LINKED Portals connected to the linked-from area.

But if the additional portal is not a Linked Portal but an Anchored Portal it won't render..!

Is this a limitation? Is there a way to get around that?

Old Post 01-09-13 19:48 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6088
Registered: 08-00


Be sure to use "two-way" portal types if the area you can see in the portal has a portal leading back to the area with the first portal. Otherwise you can get into some bad situations with unbounded drawing. I am not sure that's what's going on here, but, you didn't state you were using two-way portal specials so I have to ask that first.

Old Post 01-09-13 22:58 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Are these two-way? If not, which are?


295 Apply anchored portal to the ceilings of all tagged sectors
296 Apply anchored portal to the floors of all tagged sectors
297 Apply anchored portal to the floors and ceilings of tagged ectors
298 Anchor line (for specials 295 and 297)
299 Anchor line (for special 296)

Old Post 01-09-13 23:44 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6088
Registered: 08-00


code:
{ 344, "Portal_TwowayCeiling" }, { 345, "Portal_TwowayFloor" }, { 346, "Portal_TwowayAnchorLine" }, { 347, "Portal_TwowayAnchorLineFloor" },

Old Post 01-10-13 06:11 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8885
Registered: 06-06


Did I forget to list those?

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 01-10-13 11:37 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6088
Registered: 08-00



printz said:
Did I forget to list those?

I think they've been documented forever. And talked about multiple times on the forums here. They were created like in 2007 or so to fix problems with anchored portals that could cause infinitely recursive rendering.

SoM changed something again around the time that overlays were added which makes regular anchored portals even more strict about not recursing than they used to be. Two-way portals are supposed to be used in all such situations.

Old Post 01-10-13 17:27 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8885
Registered: 06-06



printz said:
Did I forget to list those?
No, I didn't: http://eternity.youfailit.net/index...=edit§ion=5

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 01-10-13 18:05 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Hm, that page doesn't seem to get linked from the portal wiki, uh, portal.

http://eternity.youfailit.net/index.php?title=Portals

Hence, I missed it. All this time I knew I was missing something :) Thanks for the link, I'll have another go at this later.

Old Post 01-10-13 19:55 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Bump. Let me show what I'm trying to do.

Platform:
http://i.imgur.com/QRg1g.png

Under platform:
http://i.imgur.com/mR4Yf.png

The first screenshot shows a normal room, with a raised platform. In front of that platform is a tiny raised sector with missing lower textures, used to fix an anchored portal (296). The anchored portal shows up as the space underneath the platform.

This portal has a view leading back to the main room, using the reverse. This is what you see in the second screenshot.

Big problem: I can't do the same with another platform nearby, because the space under a second platform can't be rendered when viewed from underneath the first one.

I've tried, but can't seem to duplicate this with 2-way anchored portals nor linked portals which would (probably) do render all attached portals from wherever. Well, not without dividing the main room in two layers, which kinda defeats the purpose (linked portals currently don't allow player to travel up that ladder between the two parts).

Suggestions very welcome ;)

Old Post 01-11-13 22:48 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02


Well, I am working on the clipping code for linked portals as we speak ;)

Other than that, can you post a screenshot and explanation of the situation that isn't working? Maybe I can think of something...

Old Post 01-13-13 20:09 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Great news on the clipping code ;)

The reason I'm using 1-way anchored portals is because of that are far more lenient in their use, and can be tricked into doing the things seen in those two screenshots. And it works.

However, you can't "see" inside a different anchored portal when you're standing inside another one. It won't render. The obvious solution is to avoid that situation, but in some cases that hinders a particular level layout.

If I could manage to do the same with 2-way anchored portals or even linked portals, this problem disappears. But that seems not possible.

Old Post 01-13-13 21:19 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02


Do you just get HOM? Or some kind of error message?

Old Post 01-13-13 22:26 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


HOM. Which is 'as intended', since it's a 1-way portal viewed from another 1-way portal. So basically I'm looking for a way to do the same with a 2-way or linked portal.

Old Post 01-13-13 23:01 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02


So wait, are you viewing a portal through a portal... does the inner portal link back to the original area?

Old Post 01-13-13 23:05 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Pretty much. From the 'main room' a 296 anchored portal enables the 'under platform' view, from 'under platform' another 295 anchored portal leads back to the 'main room'. So sketching it out:

code:
[linked portal] <> [ main room ] <> [ anchored portal A ] ok <---- Player ---> ok ok <---- ok <--- Player


But:

code:
[anchored portal B] <> [ main room ] <> [ anchored portal A ] ok <---- Player ---> ok HOM <---- ok <--- Player

Old Post 01-14-13 21:50 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02


where are anchored area a and anchored area b in relation to one another?

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


Posts: 1993
Registered: 05-00


They are in the same relative position as their anchor points from the main room. Keep in mind, those anchored portals are the 1-way kind.

Old Post 01-15-13 20:45 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02



Mordeth said:
They are in the same relative position as their anchor points from the main room. Keep in mind, those anchored portals are the 1-way kind.


So the camera starts inside the player, then goes to another place, then the inner portal sends the camera back to inside the player. When the inner portal renders, the first thing that gets rendered is the surface the first portal is applied to, which makes it render the first portal again. This creates a recursive portal rendering which there is currently no way to fix.

Old Post 01-19-13 23:57 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


Yeah I know. But that wasn't really the question :) I'd like to use a different portal (2-way, or linked) to create the same effect but which doesn't have this problem. And that seems not possible. So far at least :)

It allows for on-the-spot creation of a 3D visual effect (eg. a suspended crate or the underside of a vehicle) without having to slice up the main room into several (linked) portal layers. Which btw, also isn't really feasible right now due to the clipping/movement issues between portals.

If the thin 'effect' sector with its missing lower textures is affected by a 2-way portal, the only way it mimics the above setup is if the 'effect' sector is below player viewpoint. That would limit its use to eg. render undersides of vehicles. And still, the recursive bit I can't seem to do: I cannot make the effect so that you can eg. look underneath a vehicle and see the main room behind it.

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


Posts: 285
Registered: 03-02


You could make a replica of your main area that could be seen through the other side of the first portal.

So instead of: Main area->Portal Area->Main Area
you would go: Main area->Portal Area->second portal area

That would work. You can't use portals to see back into the area you are in. That's why I'm not allowing linked portals on sloped surfaces.

Old Post 01-20-13 19:46 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Scuba Steve


Posts: 3934
Registered: 11-02


http://www.doomworld.com/linguica/comics/comics/comic011.gif

Old Post 01-24-13 02:28 #
Scuba Steve is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


SOM: that's how I currently do small-scale stuff like 'underside of vehicles' scenarios. Basically the illusion that you can see all the way underneath a structure back into the same room, while in fact it's just a portal copy. But that's pretty limited in use.

But hey, if I ever find a trick around this, I'll post it here ;)

Scuba Steve: not 16 years of development, but 16 years of honing skills :) Goddamn I feel old now.

Old Post 01-24-13 22:44 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 285
Registered: 03-02



Mordeth said:
SOM: that's how I currently do small-scale stuff like 'underside of vehicles' scenarios. Basically the illusion that you can see all the way underneath a structure back into the same room, while in fact it's just a portal copy. But that's pretty limited in use.

But hey, if I ever find a trick around this, I'll post it here ;)



I don't think there is one, and yeah, it's limited in use. Portals are mostly good for ROR scenarios. Cars and other 3D structures are an example of things that 3d floors are better at. Too bad I'm not implementing 3d floors ;)

... again :(

Old Post 01-27-13 21:45 #
SoM is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 18:14. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Issue: portal within Anchored Portal

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.