|
|
(35 intermediate revisions by 18 users not shown) |
Line 1: |
Line 1: |
| [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/sitpastr.html if you dont give a damn lil jon] [http://christine-lee.co.uk/wp-content/uploads/2007/07/ractroc.html lizzie mcguire show] [http://rowlingphotography.com/portfolio/gallery/pics/plsaac.html natural ways to cure yeast infections] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/pasacel.html truckskin] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/infevra.html gilligan island] [http://argonauts.me.uk/images/_notes/pics/lielrevif.html single greeks] [http://www.smartgeezer.co.uk/wp-content/uploads/2007/10/trcnacnav.html christmas shopping online] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/quaorkod.html home wine cellars] [http://indigobeat.com/echocart/includes/mail/attach/acbrdel.html superchip] [http://indigobeat.com/echocart/includes/mail/attach/plloroldo.html transportation auto transport] [http://ian-hodgson.co.uk/images/gallery/th_pics/troctrzar.html minority greenday] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/zarerd.html elton john sacrifice video] [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/cnasit.html very cheap airline ticket] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/sitsacnal.html chamberlain garage door] [http://judupi.com/data/thumbnails/3/monloac.html beau rivage] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/weltvarpl.html xm sirius radio] [http://auguria.net/media/system/swf/upl/erfaxfa.html recording bass guitar] [http://indigobeat.com/echocart/includes/mail/attach/sitemap.html here] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/fazarbor.html sun tea] [http://indigobeat.com/echocart/includes/mail/attach/elfifaba.html phone book for steamboat springs colorado] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/zelfise.html collectible crystal gifts] [http://indigobeat.com/echocart/includes/mail/attach/sitfevp.html novelty phone] [http://courses.alzains.com/skin1/customer/main/scripts/golelfi.html let me down lyrics limp] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/henlon.html real estate clark county] [http://christine-lee.co.uk/wp-content/uploads/2007/07/dronde.html music schools in florida] [http://judupi.com/data/thumbnails/3/sitemap.html web] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/sitlet.html wordpad] [http://completely-covered.com/ssp_director/albums/album-3/tg/etelpasz.html rubrics online] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/ricdare.html all walt disney characters] [http://rowlingphotography.com/portfolio/gallery/pics/cnagetca.html anitas paints] [http://argonauts.me.uk/images/_notes/pics/sitemap.html page] [http://rowlingphotography.com/portfolio/gallery/pics/etkoxel.html big butt magazine] [http://edgechurch.net/blog/wp-content/uploads/2007/02/conrfa.html www military] [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/quanere.html scotland flag] [http://www.smartgeezer.co.uk/wp-content/uploads/2007/10/mexreracb.html aiko tanaka] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/vifubrerp.html pirate playmobil ship] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/xzaczer.html strip] [http://ecoterrace.co.uk/blog/wp-content/uploads/2007/11/drontrba.html nude video game] [http://rowlingphotography.com/portfolio/gallery/pics/ricletonr.html teacher resignation letter samples] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/bascna.html poem from prison] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/incnafev.html freight cost] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/bashenf.html winter quarters bookstore] [http://ecoterrace.co.uk/blog/wp-content/uploads/2007/11/alroplo.html jasons deli] [http://chemtechwaste.com/shop/graphics/admin/blue/Thumbs/sitemap.html link] [http://pimpmyarea.com/cool_generators/happynewyear/images/sitemap.html map] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/letobr.html web store ecommerce] [http://christine-lee.co.uk/wp-content/uploads/2007/07/qasrol.html lyrics known] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/wfokinzel.html dish network customer service] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/brenolo.html model penal code] [http://beadnellcottages.co.uk/data_store/Images/orsanotac.html myspace.com rumor site truth] [http://mlehworld.com/forum/includes/Crypt/files/eninse.html dosha test] [http://leigh2007.com/guestbook/images/dezmex.html negative leverage desirable] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/orfevz.html pebble mosaic] [http://chemtechwaste.com/shop/graphics/admin/blue/Thumbs/getnefuwr.html overalls] [http://completely-covered.com/ssp_director/albums/album-3/tg/kooucnan.html snow lady with the red dress] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/canege.html hotel amsterdam] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/enfibas.html zeal of god] [http://mlehworld.com/forum/includes/Crypt/files/enfamex.html chevy monza] [http://ian-hodgson.co.uk/images/gallery/th_pics/trgetde.html junk yard richmond va] [http://hbln.org.au/phpwcms_filestorage/can_be_deleted/images/monbasqas.html brazil tour packages] [http://mlehworld.com/forum/includes/Crypt/files/index.html top] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/index.html webmap] [http://ian-hodgson.co.uk/images/gallery/th_pics/ouolowr.html petitioning the empty sky] [http://mlehworld.com/forum/includes/Crypt/files/zartado.html sultan web.de] [http://christine-lee.co.uk/wp-content/uploads/2007/07/sitemap.html web] [http://beadnellcottages.co.uk/data_store/Images/eltnrlar.html pool party fun] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/monetvi.html web fax service] [http://naturalpetchoice.com/wp-content/themes/sport-intensive/assets/css/images/icons/drongetac.html consultations] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/nrsitella.html tuscarora nation of new york] [http://rowlingphotography.com/portfolio/gallery/pics/zarsadoms.html california child support] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/rovili.html flora chan] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/neetnrwze.html tattooed in my mind] [http://auguria.net/media/system/swf/upl/lokosaa.html nudist news] [http://hbln.org.au/phpwcms_filestorage/can_be_deleted/images/nracelqa.html lannie barbie] [http://pimpmyarea.com/cool_generators/happynewyear/images/alvarol.html arts carr performing] [http://indigobeat.com/echocart/includes/mail/attach/orouxr.html monolithic ps 2] [http://www.womenssexylingerie.co.uk/images/Thumbs/sitemap.html www] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/nesaric.html britney spears fakes] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/index.html website] [http://hbln.org.au/phpwcms_filestorage/can_be_deleted/images/zdomro.html john twomey johnny carson] [http://naturalpetchoice.com/wp-content/themes/sport-intensive/assets/css/images/icons/c4tacgol.html pirate of the caribbean fan fiction] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/eloutrl.html used packaging equipment] [http://courses.alzains.com/skin1/customer/main/scripts/zarkosac.html diadora soccer] [http://tvkdiana.pl/bartek/news/templates/normal/img/pics/quapasgol.html clubmed] [http://beadnellcottages.co.uk/data_store/Images/delnro.html direct buy] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/index.html www] [http://rowlingphotography.com/portfolio/gallery/pics/xtavivar.html pantie search] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/noinbugd.html old hairy gay men] [http://pimpmyarea.com/cool_generators/happynewyear/images/olopltae.html degenerative arthritis] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/ougolhent.html psychrometric chart] [http://rowlingphotography.com/portfolio/gallery/pics/pasracn.html paw prints] [http://beadnellcottages.co.uk/data_store/Images/ourictage.html asume puerto rico] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/bastrocdr.html artichoke and sun-dried tomato chicken recipe] [http://auguria.net/media/system/swf/upl/inredargo.html postmodern literature syllabus] [http://ian-hodgson.co.uk/images/gallery/th_pics/mexcafuri.html wholesale keychains] [http://www.womenssexylingerie.co.uk/images/Thumbs/index.html website] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/paschie.html branson missouri shows] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/coracfatr.html doppler] [http://courses.alzains.com/skin1/customer/main/scripts/trocfuplq.html ace hardware appleton] [http://ian-hodgson.co.uk/images/gallery/th_pics/racbug.html tea cup] [http://argonauts.me.uk/images/_notes/pics/zarkoqase.html julia chang] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/monoufo.html luke savage] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/buglodom.html 49ers video] [http://leigh2007.com/guestbook/images/plrolbor.html shoulder washer nylon] [http://tvkdiana.pl/bartek/news/templates/normal/img/pics/index.html index] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/conoacel.html play no games] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/sitemap.html links] [http://pimpmyarea.com/cool_generators/happynewyear/images/brtrta.html eighteen tour] [http://pimpmyarea.com/cool_generators/happynewyear/images/varalacri.html tempest bar nyc] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/lozelqasc.html feeding hummingbirds] [http://christine-lee.co.uk/wp-content/uploads/2007/07/bocrebasw.html air bag car lincoln town] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/sedsitch.html sun timing lights] [http://judupi.com/data/thumbnails/3/kocaer.html the road not taken] [http://argonauts.me.uk/images/_notes/pics/wbasnoqua.html political regimes] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/index.html more] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/rolenelgo.html bishop don magic juan] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/index.html homepage] [http://pimpmyarea.com/cool_generators/happynewyear/images/chidron.html arizona search engine submission] [http://edgechurch.net/blog/wp-content/uploads/2007/02/sitemap.html link] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/zxkoquare.html repore] [http://judupi.com/data/thumbnails/3/aceleltdr.html rikku image] [http://christine-lee.co.uk/wp-content/uploads/2007/07/ellotr.html trophys] [http://christine-lee.co.uk/wp-content/uploads/2007/07/lilosa.html saddam offered exile] [http://avsomfed.org/phpweb/images/javascript/wysiwyg/pics/zlieltvi.html amy lindsay] [http://www.womenssexylingerie.co.uk/images/Thumbs/etricsedc.html seven graces morrowind] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/racfinone.html xcaret] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/algolbas.html piana corsica] [http://ecoterrace.co.uk/blog/wp-content/uploads/2007/11/golrolcc.html aruba casino marriott] [http://ian-hodgson.co.uk/images/gallery/th_pics/index.html home] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/innrenvar.html cleveland clinic diet] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/saletos.html sandwiches] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/c4tgol.html humorous photos] [http://edgechurch.net/blog/wp-content/uploads/2007/02/boacvara.html renal clearance calculation] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/basaltroc.html online translations english to french] [http://christine-lee.co.uk/wp-content/uploads/2007/07/ersitpasb.html life insurance settlement] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/raccax.html sturgis web cams] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/cacelg.html soundproofing ceiling] [http://tvkdiana.pl/bartek/news/templates/normal/img/pics/reldeorqu.html privacy fencing residential] [http://ecoterrace.co.uk/blog/wp-content/uploads/2007/11/aletel.html maxine cartoon] [http://rowlingphotography.com/portfolio/gallery/pics/fevermexg.html composite lumber] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/index.html url] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/quadelr.html kimbells milton keynes] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/mexladarh.html accounting jobs in colorado springs] [http://judupi.com/data/thumbnails/3/dronin.html hao asakura] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/cocworor.html paw print] [http://leigh2007.com/guestbook/images/ettarolr.html 360 degree review] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/sitemap.html here] [http://www.womenssexylingerie.co.uk/images/Thumbs/ousedfafe.html autocad 2002lt commands] [http://argonauts.me.uk/images/_notes/pics/acwmexge.html benji madden] [http://judupi.com/data/thumbnails/3/liorcb.html family nudist lolita gallery] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/envitapa.html mapblast.com] [http://www.smartgeezer.co.uk/wp-content/uploads/2007/10/chialcamo.html aventuras arenal] [http://chemtechwaste.com/shop/graphics/admin/blue/Thumbs/zfufad.html haugrud] [http://naturalpetchoice.com/wp-content/themes/sport-intensive/assets/css/images/icons/delhenqas.html animal repellent] [http://leigh2007.com/guestbook/images/index.html more] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/sitemap.html link] [http://chemtechwaste.com/shop/graphics/admin/blue/Thumbs/lozarr.html explode o popcorn] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/boacelrop.html tgirlsongirls movies] [http://beadnellcottages.co.uk/data_store/Images/canomonet.html information about living wills] [http://beadnellcottages.co.uk/data_store/Images/vardeor.html dumbledore] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/envaro.html sweet tea recipie] [http://www.womenssexylingerie.co.uk/images/Thumbs/pleltwb.html sublime search] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/wsitnren.html camryn grimes] [http://livingstonesonline.org.uk/carp/carp/aggregatecache/feed11/fuenqu.html biorythm] [http://mlehworld.com/forum/includes/Crypt/files/fokdelfok.html youth baseball uniforms] [http://naturalpetchoice.com/wp-content/themes/sport-intensive/assets/css/images/icons/aclitrsed.html liposuction] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/orfevfut.html wireless dog fence] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/alerplinc.html nysdmv com dial in] [http://www.smartgeezer.co.uk/wp-content/uploads/2007/10/drondeac.html aliasing filters] [http://eleventhheaven.co.uk/store/admin/images/graphs/banners/quainrol.html game stores] [http://christine-lee.co.uk/wp-content/uploads/2007/07/xc4tbol.html red light district rock sex] [http://pimpmyarea.com/cool_generators/happynewyear/images/inchil.html lightspeed sorority galleries] [http://courses.alzains.com/skin1/customer/main/scripts/index.html http] [http://rowlingphotography.com/portfolio/gallery/pics/bocgetbu.html merchandising solutions] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/fevkool.html sexual love quizzes] [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/bocnatro.html sexy transexuales] [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/monwolok.html occupational and industrial health safety] [http://tvkdiana.pl/bartek/news/templates/normal/img/pics/boceltdro.html plastic closure] [http://www.hawkshead-village.co.uk/sendcard/include/lang/uk/sitemap.html link] [http://cygnus-extra.co.uk/blog/wp-content/uploads/2007/11/noenacen.html protection against sand flies] [http://www.womenssexylingerie.co.uk/images/Thumbs/qascbasbu.html spaghetti] [http://christine-lee.co.uk/wp-content/uploads/2007/07/zaretn.html maintenance septic system] [http://ecoterrace.co.uk/blog/wp-content/uploads/2007/11/delbugri.html nitrox equipment] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/racboc.html schoolbook nation] [http://phoenixsports.co.uk/images/uploads/thumbs/pics/fevfevn.html nicotine patches] [http://courses.alzains.com/skin1/customer/main/scripts/sitemap.html www] [http://chemtechwaste.com/shop/graphics/admin/blue/Thumbs/pasleto.html indigo girls tickets tahoe] [http://wirelessandweb.co.uk/dump/administrator/components/com_jump/chimexget.html easylock flooring] [http://hbln.org.au/phpwcms_filestorage/can_be_deleted/images/letobr.html orlando wedding reception] [http://www.womenssexylingerie.co.uk/images/Thumbs/sitemap.html page] [http://argonauts.me.uk/images/_notes/pics/dronfub.html bling bling] [http://pimpmyarea.com/cool_generators/happynewyear/images/neouhenhe.html euro million lotto] [http://naturalpetchoice.com/wp-content/themes/sport-intensive/assets/css/images/icons/fimonc.html perry king] [http://leigh2007.com/guestbook/images/inrero.html baby birds] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/fufevb.html free max hardcore] [http://rowlingphotography.com/portfolio/gallery/pics/vardronq.html bedroom comforter] [http://iphoneuklaunch.com/wp-content/uploads/2007/11/index.html http] [http://tvkdiana.pl/bartek/news/templates/normal/img/pics/raczol.html compartment syndrome illustration] [http://hbln.org.au/phpwcms_filestorage/can_be_deleted/images/index.html home] [http://north-cornwall.co.uk/cgibin/accommodation/uploads/thumbs/litrmonf.html blr]
| | {{LanguageBar}} |
| {{wrongtitle|title=func_areaportalwindow}} | | {{CD|CFuncAreaPortalWindow|file1=func_areaportalwindow.cpp}} |
| | {{This is a|semi-internal=1|brush entity|name=func_areaportalwindow|sprite=Toolsareaportal.gif}} |
| | [[File:Hl2 d2 coast 09 areaportalwindows.png|250px|thumb|right|An example of its use on {{ent|d2_coast_09}}{{hl2}}. When the player is close to the window, the entity is inactive and the player can see through the window. When the player backs up, the objects outside are culled from the [[PVS]] and replaced with a hazy low-res texture.]] |
| | It creates an [[areaportal]] that automatically closes as the camera moves away, fading a second, opaque brush in to fill the gap.<br> |
| | It still functions like a regular areaportal, which culls the props that are not visible through it, even if the areaportal is fully open. |
| | |
| | [[File:Areaportalwindow coast12.jpg|180px|thumb|right|caption|A <code>func_areaportal_window</code> that hides interior geometry by turning black at a distance.]] |
| | |
| | |
| | Usually a <code>tools/toolsblack</code> texture, or the the <code>dev/dev_window</code> (in some games <code>dev/dev_windowportal</code>) texture is used for the func_brush entity that will be shown.<br> |
| | Toolsblack is simple, as it just hides the world behind it entirely, while dev_window and dev_windowportal show the nearest [[env_cubemap]]. Which creates the illusion that you can still see the world behind the areaportal. |
| | |
| | This nearest cubemap will be on the same side as where you're looking from. Meaning you'll see the outside cubemap when looking into a window, and the inside cubemap when looking out.<br> |
| | Due to this, you may end up seeing an object from the outside projected onto the areaportal's func_brush from certain angles, making it appear as if it was inside the room. Therefore you may want to modify the env_cubemap's "Brush faces" option to deliberately assign the outside face to the inside cubemap and vice versa. However, since this texture can only be seen when far away, it will unlikely be any real issue. |
| | |
| | You can also use func_areaportalwindow with its func_brush inside a [[func_instance]]. The linkage between portal and brush will be kept through all instances. However, env_cubemaps inside instances do not work properly, so you can not link up brush faces if you wanted to do that. |
| | {{bug|tested= {{hl2}}| The <code>dev/dev_window</code> texture has to be on both sides of the brush, combining it with any other texture (except nodraw) will result in rendering glitches (objects popping in and out of the PVS depending on player position and view angle).<br>Seemingly not an issue in {{l4d2}}.}} |
|
| |
|
| == Entity description ==
| |
| Creates a type of [[areaportal]], used to optimize the visibility in a map. If you seal off an area with them, when the viewer moves the specified distance away from them, they will go opaque and the area through the window will not be drawn. The 'target' brush model should enclose the <code>func_areaportalwindow</code> so no parts of it are culled by the window. If you use the optional foreground brush model, then it should enclose the 'target' brush model.
| |
|
| |
|
| == Keyvalues == | | == Keyvalues == |
| * {{kv targetname}}
| | {{KV Targetname}} |
| * '''target'''
| | {{KV|Rendered Window|intn=target|targetname|The brush entity that fills the gap left by the portal when closed.}} |
| : <target_destination> The name of a brush entity to render as the window.
| | {{KV|Fade Start Distance|intn=FadeStartDist|int|Distance that the fade into the '''Rendered Window''' brush entity begins. The further back the player views, the more visible the brush entity will be.}} |
| * '''FadeStartDist'''
| | {{KV|Fade End Distance|intn=FadeDist|int|Distance at which the '''Rendered Window''' is fully visible, and the portal closes.}} |
| : <integer> When the viewer is closer than this distance, the alpha is set to 'TranslucencyLimit'.
| | {{KV|Translucency limit|intn=TranslucencyLimit|normal|Prevents the ''Rendered Window'' brush from ever going completely transparent. Useful if your rendered window uses an opaque glass material.}} |
| * '''FadeDist'''
| | {{KV|Foreground [[bmodel]]|intn=BackgroundBModel|targetname|Optional brush entity that is drawn after the fading brush model. This model should have alpha in its textures so you can see through it.}} |
| : <integer> When the viewer is at this distance, the portal becomes solid and closes off.
| |
| * '''TranslucencyLimit'''
| |
| : <float> This value limits the translucency of the brush model and prevents it from becoming invisible when the viewer is right on top of it.
| |
| * '''BackgroundBModel'''
| |
| : <target_destination> (Optional) brush entity that is drawn after the fading brush model. This model should have alpha in its textures so you can see through it.
| |
|
| |
|
| == Inputs == | | == Inputs == |
| * {{i targetname}}
| | {{I|SetFadeStartDistance|param=int|Sets value of {{code|FadeStartDist}}.}} |
| | | {{I|SetFadeEndDistance|param=int|Sets value of {{code|FadeDist}}.}} |
| == Outputs ==
| |
| * {{o targetname}}
| |
|
| |
|
| == See also == | | == See also == |
| * [[areaportal]] | | * {{ent|func_areaportal}} |
| * [[areaportal tutorial]]
| | * [[Optimization/Level_Design|Optimization (Level Design)]] |
| * [[func_areaportal]] | |
|
| |
|
| [[Category:Entities]] | | [[Category:Optimization Brush Entities]] |
| [[Category:Brush Entities]]
| |
func_areaportalwindow
is a semi-internal brush entity available in all
Source games.
An example of its use on
d2_coast_09
. When the player is close to the window, the entity is inactive and the player can see through the window. When the player backs up, the objects outside are culled from the
PVS and replaced with a hazy low-res texture.
It creates an areaportal that automatically closes as the camera moves away, fading a second, opaque brush in to fill the gap.
It still functions like a regular areaportal, which culls the props that are not visible through it, even if the areaportal is fully open.
A
func_areaportal_window
that hides interior geometry by turning black at a distance.
Usually a tools/toolsblack
texture, or the the dev/dev_window
(in some games dev/dev_windowportal
) texture is used for the func_brush entity that will be shown.
Toolsblack is simple, as it just hides the world behind it entirely, while dev_window and dev_windowportal show the nearest env_cubemap. Which creates the illusion that you can still see the world behind the areaportal.
This nearest cubemap will be on the same side as where you're looking from. Meaning you'll see the outside cubemap when looking into a window, and the inside cubemap when looking out.
Due to this, you may end up seeing an object from the outside projected onto the areaportal's func_brush from certain angles, making it appear as if it was inside the room. Therefore you may want to modify the env_cubemap's "Brush faces" option to deliberately assign the outside face to the inside cubemap and vice versa. However, since this texture can only be seen when far away, it will unlikely be any real issue.
You can also use func_areaportalwindow with its func_brush inside a func_instance. The linkage between portal and brush will be kept through all instances. However, env_cubemaps inside instances do not work properly, so you can not link up brush faces if you wanted to do that.
Bug: The dev/dev_window
texture has to be on both sides of the brush, combining it with any other texture (except nodraw) will result in rendering glitches (objects popping in and out of the PVS depending on player position and view angle).
Seemingly not an issue in
. (tested in:
)
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
or target
).
Also displayed in Hammer's 2D views and Entity Report.
- Rendered Window (target) <targetname>
- The brush entity that fills the gap left by the portal when closed.
- Fade Start Distance (FadeStartDist) <integer>
- Distance that the fade into the Rendered Window brush entity begins. The further back the player views, the more visible the brush entity will be.
- Fade End Distance (FadeDist) <integer>
- Distance at which the Rendered Window is fully visible, and the portal closes.
- Translucency limit (TranslucencyLimit) <normal>
- Prevents the Rendered Window brush from ever going completely transparent. Useful if your rendered window uses an opaque glass material.
- Foreground bmodel (BackgroundBModel) <targetname>
- Optional brush entity that is drawn after the fading brush model. This model should have alpha in its textures so you can see through it.
Inputs
- SetFadeStartDistance <integerRedirectInput/integer>
- Sets value of FadeStartDist.
- SetFadeEndDistance <integerRedirectInput/integer>
- Sets value of FadeDist.
See also