Call of Duty 4: Portals2: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Image:Nutshell.png]] This tutorial will give you an overview about how to work with outdoor portals
[[Image:Nutshell.png]] 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 this tutorial I assume that you know hot to unite brushes in 45 degrees.


Basically what most be done is to divide your map in to cells.
*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.
*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.
*At first glance it will look a bit confusing or complicated.


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




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.
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]]
[[Image:portals_Example2.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.
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]]
[[Image:portals_Example3.jpg|600px]]




Line 28: Line 28:
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 island.
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 island.


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




As seen here, what I do next is to add some caulk walls between buildings in order to enclose each cell.
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]]
[[Image:portals_Example5.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.  
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]]
[[Image:portals_Example6.jpg|600px]]




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


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




Line 50: Line 50:
The objective is to maintain this in the entire map. That´s why i´ll keep adding cells till I divide the hole map.
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]]
[[Image:portals_Example9.jpg|600px]]




When finish, I bring everything back and compile.
When finish, I bring everything back and compile.


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




Line 62: Line 62:
Have a look around the map to see how it runs.
Have a look around the map to see how it runs.


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




Line 71: Line 71:
The portals area will show up in light blue.
The portals area will show up in light blue.


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




'''Visual example'''
 
== Visual example ==
 


----
----
Line 80: Line 82:
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.

Revision as of 20:16, 27 October 2008

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.
  • 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), an xmodel, 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 island.


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 no see, will no 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.


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

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.