3D Skybox: Difference between revisions
Plykkegaard (talk | contribs) m (→Examples: Link to sdknuts is down redirected to type 3 studios) |
AcelvAroub (talk | contribs) (trocacbaslet) |
||
Line 1: | Line 1: | ||
Adding a ''3D skybox'' can be a powerful addition to the visual treatment of a level. The 3D skybox is an extra area constructed by the level designer that is outside the bounds of the gameplay portion of the map. When the map is loaded, Source enlarges the objects in the 3D skybox area and places them outside the boundaries of the current level, between the [[skybox]] and the player. This is used to give the appearance of a much wider world out side of your level, without being too expensive on the budget due to the (by default) 1:16 scale. 3D skyboxes are non-interactive | [http://discov.portrelay.com/description/insurance-adjuster.html insurance adjuster new york] [http://airinik.profil.in/view/cartoonnet.html cartoonnet com referral work] [http://familyguy23.ifrance.com/blog/professional-whom.html professional whom] [http://laviniamaddix.datadiri.com/pussy-young.html pussy teen young] [http://rabinovich.freehostia.com/data/usps.html usps] [http://manaev.freehostia.com/web/tractor-supply.html tractor supply] [http://mserg.ifrance.com/glucosomine.html glucosomine] [http://cheese.justdied.com/lib/joseph-culp.html joseph culp] [http://maireje.w8w.pl/library/pentax-camera.html pentax camera repair] [http://ultrawoman.ifrance.com/styles/viks-chaat-berkeley.html viks chaat berkeley] [http://laviniamaddix.datadiri.com/motorcycle-lift.html motorcycle lift] [http://smetra.wan.io/haircut-styles.html short hair cut style] [http://manaev.freehostia.com/web/sesso-nero.html sesso nero] [http://lightbird.ifrance.com/directory/furniture-target.html furniture target] [http://fount.isasecret.com/new/used-mobile-homes.html used mobile home for sale in louisiana] [http://katlynhofer.ourprofile.net/comments/ragged-glory-font.html ragged glory font] [http://kizzygochenour.ecv.vg/gorillaz-lyrics.html clint eastwood gorillaz lyric] [http://sourly.isasecret.com/content/galveston-tx.html galveston tx] [http://www.solomkus.usclargo.com/ home] [http://muurli.ifrance.com/resources/barly-legal.html barly legal] [http://ivanensis.profil.in/halloween-party.html halloween party sexy] [http://lying.yourtrap.com/hydro-heat-systems.html hydro heat systems] [http://shank.portrelay.com/resources/protege-body.html protege body kit] [http://expel.serveusers.com/turksh-music.html turksh music] [http://laviniamaddix.datadiri.com/haverty.html furniture haverty] [http://monast.isasecret.com/resources/ohio-tuition-trust.html ohio tuition trust program] [http://lisbethcatt.ide.am/lib/the-cause-of.html the cause of death is not known] [http://lateshacl.w8w.pl/wiki/nejc-pass.html nejc pass site] [http://britanycha.w8w.pl/wiki/talon.html steel talon] [http://poison.ddns.us/topic/adult-entertainment.html adult entertainment businesses for sale] [http://round.ddns.us/rtd-thermocouple.html rtd thermocouple transmitter transducer] [http://emnity.serveusers.com/india-nokia-mobile.html india nokia mobile prices] [http://chantellehernan.ourprofile.net/resources/mizuno.html mizuno running shoes] [http://deriv.justdied.com/q/invisible-man.html invisible man] [http://maireje.w8w.pl/library/interior-water-fountains.html interior water fountains] [http://carameloholic.freehostia.com/new/word-problems.html math word problem worksheets free] [http://lightbird.ifrance.com/directory/home-based-internet.html home based internet business] [http://jamesustaita.ecv.vg/directory/the-galactic-empire.html base data empire galactic] [http://muurli.ifrance.com/sitemap.html web] [http://dinabeadles.ide.am/description/best-manhattan.html best manhattan restaurant] [http://taynasvobodnay.ifrance.com/view/inculcating.html inculcating definition] [http://round.ddns.us/vibrate.html vibrate lyric] [http://laviniamaddix.datadiri.com/free-pics.html free hot pic] [http://poison.ddns.us/topic/purple-passion.html purple passion vine] [http://bellynda.profil.in/view/kawasaki.html kawasaki] [http://boomstickreport.freehostia.com/q/extra-income.html pic teen tiny titted] [http://plashy.mrbonus.com/free-strip-tease.html free strip tease shows] [http://gallia.isasecret.com/sitemap.html http map] [http://boomstickreport.freehostia.com/q/cadillac-cts.html cadillac cts] [http://mercedezalkire.aboutus.vg/best-pressure-washer.html best electric pressure washer] [http://sourly.isasecret.com/content/jonny-lang.html jonny lang] [http://jewelreith.ourprofile.net/q/hitler-biography.html hitler biography] [http://marlyscat.w8w.pl/lord-of-the-flies.html lord of the flies banned books] [http://deriv.justdied.com/q/attic-calgary.html attic calgary fan flame] [http://familyguy23.ifrance.com/blog/the-day-after.html the day after tomorrow movie clips] [http://lightbird.ifrance.com/directory/landscaping.html landscaping] [http://sonnet.yourtrap.com/labradoodles.html labradoodles] [http://glassrockboy.freehostia.com/text/unusual-baby-names.html unusual baby name] [http://emnity.serveusers.com/cheap-notebooks.html cheap notebooks] [http://lateshacl.w8w.pl/wiki/mannheimer-versicherung.html mannheimer versicherung] [http://zinamorano.aboutus.vg/content/kneesocks.html kneesocks] [http://www.vaska.00family.com/ sitemap] [http://lidiame.w8w.pl/comments/annual-income-in.html annual income in mexico] [http://www.nobleservant.00it.com/ home] [http://vbrilliant.datadiri.com/text/free-cricket.html free cricket ringtones] [http://chantellehernan.ourprofile.net/resources/motorola-cell-phone.html accessory cell motorola phone v60] [http://shank.portrelay.com/resources/sarah-parker.html sarah jessica parker nude] [http://blakniteludlam.freehostia.com/new/braiding-hair-style.html braiding hair style] [http://monast.isasecret.com/resources/law-enforcement.html law enforcement jobs] [http://mastekostya.datadiri.com/sitemap.html http] [http://shank.portrelay.com/resources/cup-of-tea.html cup of tea] [http://martovskiy.ifrance.com/html/toyota-fj55-for.html toyota fj55 for sale] [http://mastekostya.datadiri.com/styles/spy-girls.html girl spy cam video] [http://mserg.ifrance.com/free-graduation.html free graduation speeches] [http://deferr.ddns.us/text/curriculum.html creative curriculum] [http://ruthfremonta.freehostia.com/q/magnetic-jewelry.html titanium magnetic jewelry] [http://skolzashiy.wan.io/blog/us-airways.html us airway vacation] [http://unlov.ikwb.com/directory/wolverine-animal.html wolverine animal] [http://vanessamitten.datadiri.com/wiki/fioricet-online.html fioricet online] [http://shank.portrelay.com/resources/natrecor.html natrecor] [http://boomstickreport.freehostia.com/q/pt-cruiser.html pt cruiser 2006 chrysler] [http://built.longmusic.com/html/tina-turner-dvds.html tina turner dvd] [http://dinabeadles.ide.am/description/levin-furniture.html levin furniture cleveland ohio] [http://built.longmusic.com/html/auto-insurance.html canada car insurance online quote] [http://gallia.isasecret.com/description/rental-in-illinois.html rental in illinois] [http://ruthfremonta.freehostia.com/q/funny-baby-picture.html animal baby funny picture] [http://muurli.ifrance.com/resources/2-way-radio.html 2-way radio] [http://deriv.justdied.com/q/nazareth-college.html nazareth college] [http://ocielowder.ide.am/q/quake-2-server-setup.html quake 2 server setup] [http://rabinovich.freehostia.com/data/cumfacials.html facial cum shot] [http://wouid.mrbonus.com/small/affordable-web.html affordable web hosting services] [http://should.yourtrap.com/lib/medical-research.html medical research laboratory] [http://ultrawoman.ifrance.com/styles/gothia-cup.html gothia cup] [http://ocielowder.ide.am/q/sea-surface.html sea surface temp] [http://shank.portrelay.com/resources/alcoholism.html alcoholism] [http://kovshegru.profil.in/resources/plumbing-trade.html plumbing trade] [http://taynasvobodnay.ifrance.com/view/take-a-little-trip.html take a little trip lyrics] [http://gallia.isasecret.com/description/park-pavilion-park.html park pavilion park slope] [http://blakniteludlam.freehostia.com/new/hardcoresex.html hardcoresex] [http://cheese.justdied.com/lib/police-boots.html boot police uniform] [http://lorainda.wan.io/sitemap.html www] [http://unlov.ikwb.com/directory/losing-all-control.html losing all control and you dont know] [http://wouid.mrbonus.com/small/lynch.html david lynch] [http://mserg.ifrance.com/adult-actresses.html actress adult film] [http://acture.isasecret.com/like-toy-soldiers.html eminem like toy soldier lyric] [http://emnity.serveusers.com/natalie-merchant.html natalie merchant tour schedule] [http://kovshegru.profil.in/sitemap.html www] [http://getontheboat.ifrance.com/knight-helmet.html knight helmet with feathers] [http://darina.wan.io/library/sexual-enhancement.html sexual enhancement for woman] [http://britanycha.w8w.pl/wiki/verizon-upload.html verizon upload pictures] [http://annasartin.freehostia.com/blog/big-tit-tit-fucking.html big tit tit fucking] [http://helenaimbre.freehostia.com/html/indian-girls.html beautiful girl indian] [http://stout.yourtrap.com/q/womens-golf.html womens golf clothing] [http://deferr.ddns.us/text/student-summer.html canada job student summer] [http://marlyscat.w8w.pl/newspaper-plainview.html newspaper plainview texas] [http://discov.portrelay.com/description/predictor-of.html height kid predictor] [http://britanycha.w8w.pl/wiki/boltcom.html bolt.com] [http://gabrieleshoop.datadiri.com/view/xmradio.html xmradio] [http://martovskiy.ifrance.com/html/art-media.html art clip media] [http://cheyennelevy.ecv.vg/resources/keebler.html company keebler] [http://annasartin.freehostia.com/blog/picture-sex-teen.html picture sex teen] [http://britanycha.w8w.pl/wiki/naturist-free-gallery.html free naturist gallery] [http://airinik.profil.in/view/breast-enlargement.html breast enlargement] [http://built.longmusic.com/html/prandin.html prandin] [http://sourly.isasecret.com/content/culinary-colleges.html culinary colleges] [http://familyguy23.ifrance.com/blog/bacolod-properties.html bacolod properties] [http://plashy.mrbonus.com/sol-hotel-group.html sol hotel group spain] [http://poison.ddns.us/topic/neutral-grounds.html neutral grounds new orleans] [http://newbeginin.ifrance.com/handmade-pottery.html handmade pottery glass] [http://expel.serveusers.com/freight-transportation.html freight greensboro,greensboro transportation] [http://muurli.ifrance.com/resources/corporate-relocation.html corporate relocation] [http://taynasvobodnay.ifrance.com/view/elaine-slavens.html elaine slavens] [http://annasartin.freehostia.com/blog/lil-romeo.html lil romeo] [http://johnetteeppler.ide.am/data/third-day-ticket.html concert day third ticket] [http://tinishav.w8w.pl/view/polka-music.html polka music] [http://vbrilliant.datadiri.com/text/sexual-intercourse.html sexual intercourse positions] [http://ashleabobb.ecv.vg/sitemap.html web] [http://darina.wan.io/library/meaning-of-names.html name meaning] [http://lightbird.ifrance.com/directory/marco-polo-timeline.html marco polo timeline] [http://should.yourtrap.com/lib/angel-devil-tattoos.html angel devil tattoos] [http://meagre.ddns.us/view/electrical-engineer.html standard handbook for electrical engineer] [http://glyndap.w8w.pl/wiki/view-color-swatches.html view color swatches] [http://widow.ddns.us/content/yu-gi-oh-the-sacred.html yu gi oh the sacred cards rom] [http://sourly.isasecret.com/content/younger-sisters.html younger sisters] [http://britanycha.w8w.pl/wiki/pipe-expansion.html pipe expansion joint] [http://shank.portrelay.com/sitemap.html link] [http://ruthfremonta.freehostia.com/q/cheat.html play station 2 cheat code] [http://lying.yourtrap.com/k-1-dynamite-show.html k 1 dynamite show] [http://shank.portrelay.com/resources/minnetonka.html minnetonka] [http://darina.wan.io/library/renault-megane.html megane photo renault] [http://glyndap.w8w.pl/wiki/sychronise-outlook.html sychronise outlook] [http://crieth.mrbonus.com/blog/san-leandro-medical.html san leandro medical assistant classes] [http://zinamorano.aboutus.vg/content/rachel-moore.html rachel moore] [http://fount.isasecret.com/new/starr-restaurant.html restaurant starr stephen] [http://deriv.justdied.com/q/jackson-township.html jackson township nj public schools] [http://ruthfremonta.freehostia.com/q/plantation-shutter.html plantation shutter] [http://skolzashiy.wan.io/blog/finn-comfort-shoe.html finn comfort shoe] [http://www.malyshyozhik.00page.com/ http] [http://sought.justdied.com/wiki/efficient-piano.html efficient piano practice] [http://meghann.w8w.pl/small/sonic-advance-3.html sonic advance 3 gameshark cheats] [http://jewelreith.ourprofile.net/q/transgender-nifty.html transgender nifty stories] [http://sonnet.yourtrap.com/12-stones.html 12 stones the way i feel] [http://glassrockboy.freehostia.com/text/uniforms.html uniforms] [http://stout.yourtrap.com/q/angela-davies.html angela davies pic] [http://www.azagtot.00page.com/ http] [http://gabrieleshoop.datadiri.com/view/myspace-code.html myspace picture code] [http://www.rainhadesapo.warp0.com/ www] [http://kizzygochenour.ecv.vg/hack-windows.html hack windows xp activation] [http://www.mariadnna.orbitaltec.net/ web] [http://velure.isasecret.com/small/spine-to-sea.html spine to sea] [http://stout.yourtrap.com/q/lawyerly.html lawyerly] [http://discov.portrelay.com/description/cereal-boxes.html cereal boxes] [http://vanessamitten.datadiri.com/sitemap.html website] [http://velure.isasecret.com/small/midge.html barbie midge] [http://thetoad.ifrance.com/content/falmouth-buyer.html falmouth buyer broker] [http://plashy.mrbonus.com/pink-floyd-breathe.html pink floyd breathe guitar tabs] [http://velure.isasecret.com/small/garden-gnomes.html garden gnome] [http://carameloholic.freehostia.com/sitemap.html site] [http://maireje.w8w.pl/library/simpsonsporn.html simpsonsporn] [http://sourly.isasecret.com/content/custom-corporate.html custom corporate apparel] [http://tinishav.w8w.pl/view/mariah-carey.html mariah carey sexy picture] [http://should.yourtrap.com/lib/ascorbate-sodium.html ascorbate sodium therapy] [http://crieth.mrbonus.com/blog/ron-fletcher-violin.html ron fletcher violin repair] [http://mserg.ifrance.com/personal-statements.html personal statements for university application] [http://plashy.mrbonus.com/peanut-sheller.html peanut sheller] [http://meghann.w8w.pl/small/simply-help.html simply help] [http://cheese.justdied.com/lib/vulva-clitoris.html vulva clitoris] [http://cheese.justdied.com/lib/growing-bamboo.html growing bamboo] [http://acture.isasecret.com/snorkeling-on.html snorkeling on kauai] [http://wouid.mrbonus.com/small/airwatch-asthma.html airwatch asthma] [http://ultrawoman.ifrance.com/styles/19a24-toshiba.html 19a24 toshiba] [http://katelyns.w8w.pl/blog/alitalia-airline.html alitalia airline office] [http://muurli.ifrance.com/resources/wav-sounds.html wav sounds] [http://widow.ddns.us/content/is-emeril-lagasse.html is emeril lagasse married] [http://guiana.myftp.info/pages/anna-farris.html anna farris] [http://sonnet.yourtrap.com/iva-kleinova.html iva kleinova] [http://velure.isasecret.com/small/infertility-medication.html infertility medication] [http://sooknormandin.aboutus.vg/california-tow.html california tow truck insurance] [http://www.patamsik.tidefans.com/ website] [http://built.longmusic.com/html/medical-journal.html medical journal clubs] | ||
Adding a ''3D skybox'' can be a powerful addition to the visual treatment of a level. The 3D skybox is an extra area constructed by the level designer that is outside the bounds of the gameplay portion of the map. When the map is loaded, Source enlarges the objects in the 3D skybox area and places them outside the boundaries of the current level, between the [[skybox]] and the player. This is used to give the appearance of a much wider world out side of your level, without being too expensive on the budget due to the (by default) 1:16 scale. 3D skyboxes are non-interactive â the player and other entities cannot move into the 3D skybox space. | |||
3D skybox geometry can be indistinguishable from normal level geometry. Seamless transitions from normal level geometry and 3D skybox are very possible, and used in many of the official [[Counter-Strike: Source]] maps. | 3D skybox geometry can be indistinguishable from normal level geometry. Seamless transitions from normal level geometry and 3D skybox are very possible, and used in many of the official [[Counter-Strike: Source]] maps. | ||
Line 23: | Line 24: | ||
* Are constructed (by default) in 1/16 scale in the Hammer editor and then rendered at 16 times size in the engine to match the world geometry. | * Are constructed (by default) in 1/16 scale in the Hammer editor and then rendered at 16 times size in the engine to match the world geometry. | ||
* Support materials with shader effects such as normal mapping, water, environment mapping, proxies, etc. | * Support materials with shader effects such as normal mapping, water, environment mapping, proxies, etc. | ||
* Are non-interactive | * Are non-interactive â players and other world entities cannot enter 3D skyboxes. The 3D skybox is just a visual extension of the map extents. | ||
* Can be constructed with brushes, displacements, static and dynamic props, lights, brush entities, and point entities (such as [[env_sprite]]). | * Can be constructed with brushes, displacements, static and dynamic props, lights, brush entities, and point entities (such as [[env_sprite]]). | ||
* Any models that are placed in the 3D skybox must be authored at 1/16 scale. Standard models ([[Prop_Types_Overview|props]]) are not scaled properly for 3D skybox. Special 1/16 scale versions must be used. For [[Half-Life 2]], these props can be found in the <code>models/props_skybox</code> directory. | * Any models that are placed in the 3D skybox must be authored at 1/16 scale. Standard models ([[Prop_Types_Overview|props]]) are not scaled properly for 3D skybox. Special 1/16 scale versions must be used. For [[Half-Life 2]], these props can be found in the <code>models/props_skybox</code> directory. | ||
Line 43: | Line 44: | ||
# Choose '''Copy''' from the '''Edit''' menu, or hit CTRL-C. | # Choose '''Copy''' from the '''Edit''' menu, or hit CTRL-C. | ||
# Choose '''Paste Special''' from the '''Edit''' menu. Set the '''Number of copies to paste''' to '''1''', and all other values to '''0'''. Hit '''OK'''. This makes a duplicate of the geometry you had selected. | # Choose '''Paste Special''' from the '''Edit''' menu. Set the '''Number of copies to paste''' to '''1''', and all other values to '''0'''. Hit '''OK'''. This makes a duplicate of the geometry you had selected. | ||
# Leaving geometry selected, choose '''Transform''' from the '''Tools''' menu. Select the radio button next to '''Scale'''. Type in a value of '''.0625 for X, Y and Z.''' This is the decimal equivalent to 1/16 | # Leaving geometry selected, choose '''Transform''' from the '''Tools''' menu. Select the radio button next to '''Scale'''. Type in a value of '''.0625 for X, Y and Z.''' This is the decimal equivalent to 1/16 â the scale of the 3D skybox. Click '''OK'''. {{note|If you want textures on the geometry to scale accordingly, make sure you have texture lock enabled.}} | ||
# You now have a 1/16 scale version of your reference geometry. Now drag (move) it to another part of the map where you wish build your 3D skybox. It doesn't matter where it is as long as it's not touching any part of the main level geometry area. | # You now have a 1/16 scale version of your reference geometry. Now drag (move) it to another part of the map where you wish build your 3D skybox. It doesn't matter where it is as long as it's not touching any part of the main level geometry area. | ||
# Don't forget to resize textures on all visible faces (if you forgot the texture lock. 0.01625 is optimal for the 1/16 scale of a skybox). This will allow areas of some skyboxes (like oceans and long expanses of brushes to be seamless.<br />You can also use the '''Scaling Texture Lock''' button before you transform the geometry, which is right next to the '''Texture Lock''' button on the toolbar. | # Don't forget to resize textures on all visible faces (if you forgot the texture lock. 0.01625 is optimal for the 1/16 scale of a skybox). This will allow areas of some skyboxes (like oceans and long expanses of brushes to be seamless.<br />You can also use the '''Scaling Texture Lock''' button before you transform the geometry, which is right next to the '''Texture Lock''' button on the toolbar. |
Revision as of 10:22, 29 February 2008
insurance adjuster new york cartoonnet com referral work professional whom pussy teen young usps tractor supply glucosomine joseph culp pentax camera repair viks chaat berkeley motorcycle lift short hair cut style sesso nero furniture target used mobile home for sale in louisiana ragged glory font clint eastwood gorillaz lyric galveston tx home barly legal halloween party sexy hydro heat systems protege body kit turksh music furniture haverty ohio tuition trust program the cause of death is not known nejc pass site steel talon adult entertainment businesses for sale rtd thermocouple transmitter transducer india nokia mobile prices mizuno running shoes invisible man interior water fountains math word problem worksheets free home based internet business base data empire galactic web best manhattan restaurant inculcating definition vibrate lyric free hot pic purple passion vine kawasaki pic teen tiny titted free strip tease shows http map cadillac cts best electric pressure washer jonny lang hitler biography lord of the flies banned books attic calgary fan flame the day after tomorrow movie clips landscaping labradoodles unusual baby name cheap notebooks mannheimer versicherung kneesocks sitemap annual income in mexico home free cricket ringtones accessory cell motorola phone v60 sarah jessica parker nude braiding hair style law enforcement jobs http cup of tea toyota fj55 for sale girl spy cam video free graduation speeches creative curriculum titanium magnetic jewelry us airway vacation wolverine animal fioricet online natrecor pt cruiser 2006 chrysler tina turner dvd levin furniture cleveland ohio canada car insurance online quote rental in illinois animal baby funny picture 2-way radio nazareth college quake 2 server setup facial cum shot affordable web hosting services medical research laboratory gothia cup sea surface temp alcoholism plumbing trade take a little trip lyrics park pavilion park slope hardcoresex boot police uniform www losing all control and you dont know david lynch actress adult film eminem like toy soldier lyric natalie merchant tour schedule www knight helmet with feathers sexual enhancement for woman verizon upload pictures big tit tit fucking beautiful girl indian womens golf clothing canada job student summer newspaper plainview texas height kid predictor bolt.com xmradio art clip media company keebler picture sex teen free naturist gallery breast enlargement prandin culinary colleges bacolod properties sol hotel group spain neutral grounds new orleans handmade pottery glass freight greensboro,greensboro transportation corporate relocation elaine slavens lil romeo concert day third ticket polka music sexual intercourse positions web name meaning marco polo timeline angel devil tattoos standard handbook for electrical engineer view color swatches yu gi oh the sacred cards rom younger sisters pipe expansion joint link play station 2 cheat code k 1 dynamite show minnetonka megane photo renault sychronise outlook san leandro medical assistant classes rachel moore restaurant starr stephen jackson township nj public schools plantation shutter finn comfort shoe http efficient piano practice sonic advance 3 gameshark cheats transgender nifty stories 12 stones the way i feel uniforms angela davies pic http myspace picture code www hack windows xp activation web spine to sea lawyerly cereal boxes website barbie midge falmouth buyer broker pink floyd breathe guitar tabs garden gnome site simpsonsporn custom corporate apparel mariah carey sexy picture ascorbate sodium therapy ron fletcher violin repair personal statements for university application peanut sheller simply help vulva clitoris growing bamboo snorkeling on kauai airwatch asthma 19a24 toshiba alitalia airline office wav sounds is emeril lagasse married anna farris iva kleinova infertility medication california tow truck insurance website medical journal clubs Adding a 3D skybox can be a powerful addition to the visual treatment of a level. The 3D skybox is an extra area constructed by the level designer that is outside the bounds of the gameplay portion of the map. When the map is loaded, Source enlarges the objects in the 3D skybox area and places them outside the boundaries of the current level, between the skybox and the player. This is used to give the appearance of a much wider world out side of your level, without being too expensive on the budget due to the (by default) 1:16 scale. 3D skyboxes are non-interactive â the player and other entities cannot move into the 3D skybox space.
3D skybox geometry can be indistinguishable from normal level geometry. Seamless transitions from normal level geometry and 3D skybox are very possible, and used in many of the official Counter-Strike: Source maps.

Benefits
Standard skyboxes are simple 2D images, mapped onto a cube so they surround the level. 3D skyboxes are full 3D geometry, and properly parallax as the player moves through the level. Since they are rendered in real time, they scale with the video card resolution and also support real-time shader effects not possible in 2D skyboxes.
The main benefit of using a 3D skybox is that it allows the level designer to make the map look much larger than is possible with the standard world geometry. The largest map that can be made without a 3D skybox is 32768 units on each side. Using a 3D skybox, the map can be extended to 16 times that amount.
Maps of this size are possible because 3D skyboxes are created in the Hammer editor at 1/16 the scale of standard maps. At run time, the engine scales them back up to match the scale of the rest of the map. Not only does this save space in the editor views, it also is much less expensive to compile and render.
Due to their scale, 3D skyboxes have much lower lightmap and texture resolution. This makes 3D skybox geometry less expensive performance-wise than standard world geometry.
3D skyboxes can be used to overcome draw distance limitations, if a low-detail skybox identical to the main map is created. A mod team wanting to do this would have to develop code to ease the transition between map versions.
Basic characteristics
3D Skyboxes have the following characteristics:
- Are constructed (by default) in 1/16 scale in the Hammer editor and then rendered at 16 times size in the engine to match the world geometry.
- Support materials with shader effects such as normal mapping, water, environment mapping, proxies, etc.
- Are non-interactive â players and other world entities cannot enter 3D skyboxes. The 3D skybox is just a visual extension of the map extents.
- Can be constructed with brushes, displacements, static and dynamic props, lights, brush entities, and point entities (such as env_sprite).
- Any models that are placed in the 3D skybox must be authored at 1/16 scale. Standard models (props) are not scaled properly for 3D skybox. Special 1/16 scale versions must be used. For Half-Life 2, these props can be found in the
models/props_skybox
directory. - Should not contain info_player_start, NPCs or monsters.
- Have lower lightmap and texture resolution because of the scale at which they are created.
- Must have their own lighting sources, although a light_environment in the non-skybox section will also be used for the 3D skybox lighting.
- Use the sky_camera entity to control how they line up with the non-skybox world geometry.
- 3D skyboxes have their own fog parameters, adjustable in the sky_camera entity.
- Geometry in the 3D skybox is not occluded or culled like the rest of the level geometry. Adding lots of detailed brush geometry or models to the 3D skybox, especially with translucent materials, can severely affect performance.
- A map must have a
light_environment
in it, otherwise models in the 3d skybox will be lit incorrectly. Alight_environment
in the non-skybox part of the map negates the need for one in the 3D skybox.
Construction of 3D skyboxes
- A note for Portal developers: Ok, from all the people I have talked to and tests I have done, it seems that the Portal game engine is incapable of properly portraying a 3d skybox when you are looking through a portal. For those of us who want to use a 3d skybox in portal, my personal opinion is that it's fine to do... the gameplay isn't particularly changed by the image difference on the other side of a portal, except in some extreme cases, and perhaps there will one day be a patch (or maybe even a new engine!) to fix the issue. Regardless, I feel it's important that this be on the "3d skybox" page, as I assume there are other mappers out there that had this problem and couldn't find a solution anywhere. --RigorMortis 19:49, 2 Jan 2008 (PST)
The most efficient way of creating a 3D skybox that matches or "lines up" with the your current map is to use some of the geometry in the main part of the level. Follow these steps after you've created your main level geometry:
- Add a sky_camera entity at the world origin (coordinates 0, 0, 0), the center of the map grid. The sky_camera is a reference point used by the renderer to align the 3D skybox with the main part of the map. In other words, it acts as a marker telling the renderer how the 3D skybox's origin and the world's origin relate to one another. You can think of this process as being similar to selecting all the 3D skybox geometry and then aligning the sky_camera entity in that selection with the world's origin (0,0,0). The geometry is translated back to that position in the world. This is the same concept used when the skybox is rendered in the engine.
- Select some distinct parts of the level that you can use a guideline for scale and position in the 3D skybox. Common elements to select for this purpose would be some of the larger structures, as well as the walls, cliffs, hills, etc. that define the edges of the map. Make sure you also have the sky_camera you created selected as well.
Note:It is important not to select any model entities, only brushes. Models cannot be used as reference geometry, because models cannot be scaled down in the Hammer editor.
- Choose Copy from the Edit menu, or hit CTRL-C.
- Choose Paste Special from the Edit menu. Set the Number of copies to paste to 1, and all other values to 0. Hit OK. This makes a duplicate of the geometry you had selected.
- Leaving geometry selected, choose Transform from the Tools menu. Select the radio button next to Scale. Type in a value of .0625 for X, Y and Z. This is the decimal equivalent to 1/16 â the scale of the 3D skybox. Click OK.
Note:If you want textures on the geometry to scale accordingly, make sure you have texture lock enabled.
- You now have a 1/16 scale version of your reference geometry. Now drag (move) it to another part of the map where you wish build your 3D skybox. It doesn't matter where it is as long as it's not touching any part of the main level geometry area.
- Don't forget to resize textures on all visible faces (if you forgot the texture lock. 0.01625 is optimal for the 1/16 scale of a skybox). This will allow areas of some skyboxes (like oceans and long expanses of brushes to be seamless.
You can also use the Scaling Texture Lock button before you transform the geometry, which is right next to the Texture Lock button on the toolbar. - Delete the sky_camera entity from the normal world map area you started from. Important: only the sky_camera entity in the 3D skybox should remain in the map.
- Build your 3D skybox geometry around the reference geometry, using it as a guide. You can build skybox geometry that meets the reference geometry seamlessly. You can use brush and displacement geometry. Models can also be placed, but since the 3D skybox is at 1/16 scale, any models must also be at 1/16 scale. The model
hl2\models\props_skybox\coast01.mdl
is a sample model in 1/16 scale. Try positioning the 3D view camera near the height of the player. This will give you a good idea of how the 3D skybox will look when it's rendered in the engine. - Add a hollow cube of brushes around your reference geometry and assign the
tools\toolsskybox
material to it. The standard 2D cubic skybox will appear on these surfaces. The 3D skybox area must be sealed with these brushes. - When you're done, delete or hide all of the reference geometry except for the sky_camera entity. You may find that it work best to add the reference geometry to its own visgroup so that it can be toggled on and off or re-placed. Just make sure you turn it off before you save and compile the level, or it will be compiled into the 3D skybox.
- Your original map still needs the
tools\toolsskybox
material wherever you want to see the sky, however it will now show the 3D skybox as well as the 2D skybox (which is what it did previously).
Testing
If you properly sealed your 3D skybox, you can now compile the map and check out your new 3D skybox in the engine.
Examples
- See
sdk_content\hl2\mapsrc\sdk_3d_skybox.vmf
for an example of a 3D skybox. - An example of extending draw distances with 3D skyboxes (commented)
- 3D Skybox Video Tutorial
- HL2 sample VMF for 3D Skybox water/world
Environment articles: | |
---|---|
Skies and environment maps | ![]() |
Terrain and displacement mapping | Displacements • Creating Holes in Displacements • Digital Elevation Models • Creating custom terrain with Worldmachine |