Skybox part of portal ?
Moderator: Moderators
Skybox part of portal ?
I did test it but it showed me two different results... so just looking for some confirmation about it...
Can parts of a portal consist of skybox brushes ?
Can parts of a portal consist of skybox brushes ?
Yes... I tried it with the Areaportal tutorial map
Just applied a sky texture to the ceilings, added worldspawnsettings... compiled it and checked it out with the 'r_showtris 2' command.
Two portals did still function, but one wasn't
Just applied a sky texture to the ceilings, added worldspawnsettings... compiled it and checked it out with the 'r_showtris 2' command.
Two portals did still function, but one wasn't
Re: Skybox part of portal ?
Yes, as its structual there is no problem with this, I have done it before in testing, with clever brushwork you can have a building sticking out of a sky brush with obviosly a door for the area portal and looking like the building etc is leading to a garden or whatever.Kalti wrote:I did test it but it showed me two different results... so just looking for some confirmation about it...
Can parts of a portal consist of skybox brushes ?
It has the desired effect in creating a whole new level in a map with its own amounts of tri counts etc.
Seere.
world
If you make an areaportal room, that room becomes an area. But, everything outside the room also becomes an area. So, you have two areas, one inside and one outside--within the skybox. And, of course, if you stand in one area, the other will vanish.
It's nothing new, but a great possibility for my map for I can now add an area which I had originally planned but had to scrap because of the performance impact it had.
It's tricky to make it work though as a rather open map layout will seem strangely restricted by the small looking portaldoors you need to place between the main and the added skybox. In MP the few and small portal doors are likely to become bottlenecks. One way to do it is making sure there are enough portaldoors in and out the additional skybox.
I have 'buffered' the connection between main and added skybox with at least 3 portaldoors (which will close somewhat faster after being opened) and the distance between both outer portaldoors is such that a player can't reach the outer before the other door has closed.
Now you could do it with 2 portaldoors but the chances of them being opened at the same time are far greater... perhaps you could solve it by script... ie. keeping one of the doors 'locked' as long as the other one is still open. Although this is apt to lead to some confusion amongst players.
It's tricky to make it work though as a rather open map layout will seem strangely restricted by the small looking portaldoors you need to place between the main and the added skybox. In MP the few and small portal doors are likely to become bottlenecks. One way to do it is making sure there are enough portaldoors in and out the additional skybox.
I have 'buffered' the connection between main and added skybox with at least 3 portaldoors (which will close somewhat faster after being opened) and the distance between both outer portaldoors is such that a player can't reach the outer before the other door has closed.
Now you could do it with 2 portaldoors but the chances of them being opened at the same time are far greater... perhaps you could solve it by script... ie. keeping one of the doors 'locked' as long as the other one is still open. Although this is apt to lead to some confusion amongst players.
boxes
I'm not sure what you are trying to do, but you can do the same thing with two visleafgroups that target eachother.
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
means he has a door and an areaportal on the door, makes the inside a portal and everythng inside the skybox (because he didn't use it indoors) a portal too. and he wants to be able to switch the outside and inside off as he wishes.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
ummmm wha?lizardkid wrote:means he has a door and an areaportal on the door, makes the inside a portal and everythng inside the skybox (because he didn't use it indoors) a portal too. and he wants to be able to switch the outside and inside off as he wishes.
(the red part is what i have the most trouble understanding...)
It's just 2 skyboxes connected by a door with a portal.
When you're in one skybox and the door with the portal is closed, the other skybox won't be drawn (and everything in it as well) off-course this also works vice versa.
So by use of the door with the portal we now have two different portal areas.
When you're in one skybox and the door with the portal is closed, the other skybox won't be drawn (and everything in it as well) off-course this also works vice versa.
So by use of the door with the portal we now have two different portal areas.
targetname
As long as your door (or script_object) has a targetname, its area brush can be switched off and on by scripting.
$my_door openportal
$my_door closeportal
Those same commands are automattically sent to the area brush when a function type door opens or closes.
Hope that helps!
$my_door openportal
$my_door closeportal
Those same commands are automattically sent to the area brush when a function type door opens or closes.
Hope that helps!



