Call of Duty 4: Portals2: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This tutorial will give you an overview about how to work with outdoor portals
''By One_Richard''


In this tutorial I assume that you know hot to unite brushes in 45 degrees.
{{Note|This tutorial will give you an overview about how to work with outdoor portals.}}


Basically what most be done is to divide your map in to cells.
In this tutorial I assume that you know hot to unite brushes in 45 degrees.


First of all, I suggest you to open up and have a look to the Backlot map from stock, that you can find in the map_source folder.


At first glance it will look a bit confusing or complicated.
== In Radiant ==


[[Image:portals_Example1.jpg]]


*Basically what most be done is to divide your map in to cells.


But, if you open the Filters window (by pressing the ¨F¨ Key) and uncheck some options, you will see that everything is a bit simpler than appears and you will notice how the cells are made for this map.
*First of all, I suggest you to open up and have a look to the Backlot map from stock, that you can find in the map_source folder.


[[Image:portals_Example2.jpg]]
*At first glance it will look a bit confusing or complicated.


[[Image:portals_Example1.jpg|600px]]


For this tutorial I´ve made a map with some basics features. a few buildings (some with second floor), an xmodel, spawnpoints, terrain and walls that works as limits.


[[Image:portals_Example3.jpg]]
*But, if you open the Filters window (by pressing the ¨F¨ Key) and uncheck some options, you will see that everything is a bit simpler than appears and you will notice how the cells are made for this map.


[[Image:portals_Example2.jpg|600px]]


When Bringing the Filters window and uncheck some options like Detail , Terrain, Staticmodels, Clip, Mantle and decal.


As you can see here is I´ve made an structure of caulk brushes beneath the terrain height. i´ve created a caulk brush at the bottom of the hole map and caulk brushes below each structurals buildings and walls. At this time they look more like island.
*For this tutorial I´ve made a map with some basics features. a few buildings (some with second floor), '''xmodels''', '''spawnpoints''', '''terrain''' and '''walls''' that works as limits.


[[Image:portals_Example4.jpg]]
[[Image:portals_Example3.jpg|600px]]




As seen here, what I do next is to add some caulk walls between buildings in order to enclose each cell.
*When Bringing the Filters window and uncheck some options like '''Detail''' , '''Terrain''', '''Static models''', '''Clip''', '''Mantle''' and '''Decal''' you can see that I´ve created an structure of caulk brushes beneath the terrain height.


[[Image:portals_Example5.jpg]]
I´ve created a caulk brush at the bottom of the hole map and caulk brushes below each structure, buildings or walls. At this time they look more like islands.


[[Image:portals_Example4.jpg|600px]]


Now, as making a house, with the tool texture portal_no_draw I create the first cell. check that each brush is perfectly aligned to the next one.


[[Image:portals_Example6.jpg]]
*As seen here, what I do next is to add some caulk walls between buildings in order to enclose each cell.


[[Image:portals_Example5.jpg|600px]]


Select the external faces of the new brushes and apply them the portal texture.


[[Image:portals_Example7.jpg]]
*Now, as making a house, with the tool texture '''portal_no_draw''' I create the first cell. check that each brush is perfectly aligned to the next one.  


[[Image:portals_Example6.jpg|600px]]


The first cell is ready. At this point, as players walk behind this house (entering in to the cell), everything that they can no see, will no be drown in game, increasing the Frame rate.


[[Image:portals_Example8.jpg]]
*Select the external faces of the new brushes and apply them the '''portal''' texture.


[[Image:portals_Example7.jpg|600px]]


The objective is to maintain this in the entire map. That´s why i´ll keep adding cells till I divide the hole map.


[[Image:portals_Example9.jpg]]
*The first cell is ready. At this point, as players walk behind this house (entering in to the cell), everything that they can not see, will not be drawn in game, increasing the Frame rate.


*The objective is to maintain this in the entire map. That´s why i´ll keep adding cells till I divide the hole map.


When finish, I bring everything back and compile.
[[Image:portals_Example9.jpg|600px]]


Note: It is healthy to create one cell at time, test it and then add the next one.


For seeing portals in-game you can type in console:
When finish, I bring everything back and compile.


/r_showportals 1
[[Image:portals_Example14.jpg|600px]]
 
 
[[Image:Information.png]] It is healthy to create one cell at time, test it and then add the next one.
 
 
== In Game testing ==
 
 
*Have a look around the map to see how it runs.
 
[[Image:portals_Example15.jpg|600px]]
 
 
*For seeing portals in-game you can type in console:
 
/r_showportals 1
 
*The portals area will show up in light blue.
 
[[Image:portals_Example16.jpg|600px]]
 
 
 
== Visual example ==


Visual example
For testing purposes I´ve left a caulk wall in an area outside the portals of this map.
For testing purposes I´ve left a caulk wall in an area outside the portals of this map.


[[Image:portals_Example10.jpg]]
[[Image:portals_Example10.jpg|600px]]




In-game the caulk texture is invisible.
In-game the caulk texture is invisible.


[[Image:portals_Example11.jpg]]
[[Image:portals_Example11.jpg|600px]]




As you can see, as I walk behind the wall, everything that is in the other side and what the game assumes that I can not see, begin to disappear.
As you can see, as I walk behind the wall, everything that is in the other side and what the game assumes that I can not see, begin to disappear.


[[Image:portals_Example12.jpg]]
[[Image:portals_Example12.jpg|600px]]




Also, when I got completely behind the wall, almost half of the map is gone and the frame rate increases.
Also, when I got completely behind the wall, almost half of the map is gone and the frame rate increases.


[[Image:portals_Example13.jpg]]
[[Image:portals_Example13.jpg|600px]]
 


That´s what portals does.


That´s what portals does.
[[Category:Call of Duty 4]]
[[Category:Portals]]
[[Category:Mapping]]
[[Category:Radiant]]
[[Category:Advanced Editing]]

Latest revision as of 21:10, 28 July 2009

By One_Richard

This tutorial will give you an overview about how to work with outdoor portals.
In this tutorial I assume that you know hot to unite brushes in 45 degrees.


In Radiant

  • Basically what most be done is to divide your map in to cells.
  • First of all, I suggest you to open up and have a look to the Backlot map from stock, that you can find in the map_source folder.
  • At first glance it will look a bit confusing or complicated.


  • But, if you open the Filters window (by pressing the ¨F¨ Key) and uncheck some options, you will see that everything is a bit simpler than appears and you will notice how the cells are made for this map.


  • For this tutorial I´ve made a map with some basics features. a few buildings (some with second floor), xmodels, spawnpoints, terrain and walls that works as limits.


  • When Bringing the Filters window and uncheck some options like Detail , Terrain, Static models, Clip, Mantle and Decal you can see that I´ve created an structure of caulk brushes beneath the terrain height.

I´ve created a caulk brush at the bottom of the hole map and caulk brushes below each structure, buildings or walls. At this time they look more like islands.


  • As seen here, what I do next is to add some caulk walls between buildings in order to enclose each cell.


  • Now, as making a house, with the tool texture portal_no_draw I create the first cell. check that each brush is perfectly aligned to the next one.


  • Select the external faces of the new brushes and apply them the portal texture.


  • The first cell is ready. At this point, as players walk behind this house (entering in to the cell), everything that they can not see, will not be drawn in game, increasing the Frame rate.
  • The objective is to maintain this in the entire map. That´s why i´ll keep adding cells till I divide the hole map.


When finish, I bring everything back and compile.


 It is healthy to create one cell at time, test it and then add the next one.


In Game testing

  • Have a look around the map to see how it runs.


  • For seeing portals in-game you can type in console:
/r_showportals 1
  • The portals area will show up in light blue.


Visual example

For testing purposes I´ve left a caulk wall in an area outside the portals of this map.


In-game the caulk texture is invisible.


As you can see, as I walk behind the wall, everything that is in the other side and what the game assumes that I can not see, begin to disappear.


Also, when I got completely behind the wall, almost half of the map is gone and the frame rate increases.


That´s what portals does.