Difference between revisions of "OCCL"
m |
m |
||
(19 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | ''' | + | {{IplSection |
+ | | game = {{Icon|VC}} {{Icon|SA}} {{Icon|4}} | ||
+ | | description = Creates occlusion culling zones | ||
+ | }} | ||
+ | '''OCCL''' is a section in the [[item placement]] file in [[Vice City]], [[San Andreas]], and [[GTA IV]]. It is used to create [[wikipedia:Hidden surface determination|occlusion culling]] zones that helps make the game run smoother in certain parts of the world. Since it is wasteful to render models behind opaque models, these zones can disable the rendering of any models that are directly behind the zones. | ||
− | == | + | == Format == |
− | + | === Vice City === | |
+ | [[File:VC occlu.jpg|thumb|A map of Vice City's <code>occlu.ipl</code> areas]] | ||
+ | {{Pre| | ||
+ | occl | ||
+ | MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation | ||
+ | end | ||
+ | }} | ||
− | == | + | The section is used in the <code>occlu.ipl</code> file but it can be used in any IPL files. |
− | + | {|class="wikitable center-col-1 center-col-2" | |
− | + | !style="width: 3em;"|{{Icon|VC}} | |
− | + | !style="width: 12em;"|Identifier | |
− | + | !style="width: 6em;" |Type | |
+ | !Description | ||
+ | |- | ||
+ | |A,B ||MidX, MidY ||float[2] ||The X and Y coordinates of the center of the occlusion zone. | ||
+ | |- | ||
+ | |C ||BottomZ ||float ||The bottom Z coordinate of the occlusion zone. | ||
+ | |- | ||
+ | |D,E ||WidthX, WidthY ||float[2] ||The width of the occlusion zone in units. | ||
+ | |- | ||
+ | |F ||Height ||float ||The height of the zone — the difference between the top and the bottom of the zone. | ||
+ | |- | ||
+ | |G ||Rotation ||float ||The [[Angle|rotation]] of the occlusion zone in degrees. | ||
+ | |} | ||
− | + | === San Andreas === | |
− | + | The section is used in <code>occluint.ipl</code>, <code>occluLA.ipl</code>, <code>occlusf.ipl</code>, and <code>occluveg.ipl</code> files. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | {{Pre| |
− | + | occl | |
+ | MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation, , , | ||
+ | end | ||
+ | }} | ||
+ | {|class="wikitable center-col-1 center-col-2" | ||
+ | !style="width: 3em;"|{{Icon|SA}} | ||
+ | !style="width: 12em;"|Identifier | ||
+ | !style="width: 6em;" |Type | ||
+ | !Description | ||
+ | |- | ||
+ | |A,B ||MidX, MidY ||float[2] ||The X and Y coordinates of the center of the occlusion zone. | ||
+ | |- | ||
+ | |C ||BottomZ ||float ||The bottom Z coordinate of the occlusion zone. | ||
+ | |- | ||
+ | |D,E ||WidthX, WidthY ||float[2] ||The width of the occlusion zone in units. | ||
+ | |- | ||
+ | |F ||Height ||float ||The height of the zone — the difference between the top and the bottom of the zone. | ||
+ | |- | ||
+ | |G ||Rotation ||float ||The [[Angle|rotation]] of the occlusion zone in degrees. | ||
+ | |- | ||
+ | |H,I || ||float || | ||
+ | |- | ||
+ | |J || ||int || | ||
+ | |} | ||
− | + | == Issues == | |
+ | When removing buildings from the world, you may see unexpected pop ups caused by existing occlusion zones. Deleting all the occlusion zones is the easiest solution. An example of this issue is the Liberty City project. Before this section was researched, the team experienced unexpected pop ups with models loading and unloading behind areas where Vice City's buildings used to be. Someone realized that the <code>occlu.ipl</code> was the problem and deleted every line in that file. The pop ups disappeared and the issue was resolved. | ||
− | == | + | == Statistics == |
− | + | Total number of OCCL entries in: | |
+ | :Vice City: 344 (max 350) | ||
− | == | + | == Tools and scripts == |
− | + | * [[KEd]] – by {{U|JernejL}} | |
+ | * {{GTAF|277798|Script pack for 3ds Max}} – by {{U|Deniska}} | ||
+ | * {{GTAF|402942|[IV][Rel]GTA-IV Scripts Centre}} – by {{U|Gforce}} | ||
− | {{ | + | {{N|4|SA|VC}} |
− | + | [[Category:Map Formats]] | |
− | |||
− | [[Category:Map Formats |
Latest revision as of 18:40, 10 November 2016
Short description: | Creates occlusion culling zones | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Supported games: | ||||||||||||||||||||||
IPL Sections:
|
OCCL is a section in the item placement file in Vice City, San Andreas, and GTA IV. It is used to create occlusion culling zones that helps make the game run smoother in certain parts of the world. Since it is wasteful to render models behind opaque models, these zones can disable the rendering of any models that are directly behind the zones.
Format
Vice City
occl MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation end
The section is used in the occlu.ipl
file but it can be used in any IPL files.
Identifier | Type | Description | |
---|---|---|---|
A,B | MidX, MidY | float[2] | The X and Y coordinates of the center of the occlusion zone. |
C | BottomZ | float | The bottom Z coordinate of the occlusion zone. |
D,E | WidthX, WidthY | float[2] | The width of the occlusion zone in units. |
F | Height | float | The height of the zone — the difference between the top and the bottom of the zone. |
G | Rotation | float | The rotation of the occlusion zone in degrees. |
San Andreas
The section is used in occluint.ipl
, occluLA.ipl
, occlusf.ipl
, and occluveg.ipl
files.
occl MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation, , , end
Identifier | Type | Description | |
---|---|---|---|
A,B | MidX, MidY | float[2] | The X and Y coordinates of the center of the occlusion zone. |
C | BottomZ | float | The bottom Z coordinate of the occlusion zone. |
D,E | WidthX, WidthY | float[2] | The width of the occlusion zone in units. |
F | Height | float | The height of the zone — the difference between the top and the bottom of the zone. |
G | Rotation | float | The rotation of the occlusion zone in degrees. |
H,I | float | ||
J | int |
Issues
When removing buildings from the world, you may see unexpected pop ups caused by existing occlusion zones. Deleting all the occlusion zones is the easiest solution. An example of this issue is the Liberty City project. Before this section was researched, the team experienced unexpected pop ups with models loading and unloading behind areas where Vice City's buildings used to be. Someone realized that the occlu.ipl
was the problem and deleted every line in that file. The pop ups disappeared and the issue was resolved.
Statistics
Total number of OCCL entries in:
- Vice City: 344 (max 350)
Tools and scripts
- KEd – by JernejL
- GTAForums: Script pack for 3ds Max – by Deniska
- GTAForums: [IV][Rel]GTA-IV Scripts Centre – by Gforce
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |