OCCL: Difference between revisions
No edit summary |
(contributions from myself) |
||
Line 1: | Line 1: | ||
{{IplSection | {{IplSection | ||
| game = {{Icon-square|vc}} {{Icon-square|sa}} {{Icon-square|4}} | |||
| game = | | description = Creates occlusion culling zones | ||
| description = Creates zones | |||
}} | }} | ||
'''OCCL''' is a section in the [[ | '''OCCL''' is a section in the item placement file in [[Grand Theft Auto: Vice City]], [[Grand Theft Auto: San Andreas]], and [[Grand Theft Auto 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 == | ||
=== GTA Vice City === | |||
<pre> | |||
occl | |||
MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation | |||
end | |||
</pre> | |||
The section is used in the <code>\data\occlu.ipl</code> file but it can be used in any IPL files. | |||
{|class="wikitable center-col-1 center-col-2" | |||
{|class=" | !style="width: 3em;" |{{Icon-square|vc}} | ||
! | !style="width: 12em;" |Identifier | ||
!style="width: 6em;" |Type | |||
!Description | !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. | ||
|} | |} | ||
== | === GTA San Andreas === | ||
The section is used in <code>\data\occluint.ipl</code>, <code>\data\occluLA.ipl</code>, <code>\data\occlusf.ipl</code>, and <code>\data\occluveg.ipl</code> files. | |||
<pre> | |||
occl | |||
MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation, , , | |||
end | |||
</pre> | |||
{|class="wikitable center-col-1 center-col-2" | |||
!style="width: 3em;" |{{Icon-square|sa}} | |||
!style="width: 12em;" |Identifier | |||
The | !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 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) | |||
{{fdl}} | {{fdl}} |
Revision as of 23:14, 30 June 2018
Supported games: | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Short description: | Creates occlusion culling zones | ||||||||||||
IPL Sections:
|
OCCL is a section in the item placement file in Grand Theft Auto: Vice City, Grand Theft Auto: San Andreas, and Grand Theft Auto 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
GTA Vice City
occl MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation end
The section is used in the \data\occlu.ipl
file but it can be used in any IPL files.
GTA San Andreas
The section is used in \data\occluint.ipl
, \data\occluLA.ipl
, \data\occlusf.ipl
, and \data\occluveg.ipl
files.
occl MidX, MidY, BottomZ, WidthX, WidthY, Height, Rotation, , , end
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)
This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. See Grand Theft Wiki:Copyright for more information. |
Technical | IMG | DFF | TXD | IDE | GXT | Handling | Carcols | Dynamic Object |
Mods | Hot Coffee Modification | Create a Mission |
Tools | GGMM |
Game Files | Animviewer.dat/GTAVC | Bink | Default.dat/GTAVC | Chassis Vlo | Fistfite.dat/GTAVC | Flight.dat | Gta vc.dat | Object.dat/GTAVC | OpenGTA2 |Particle.cfg/GTAVC | Particle (SA) | Paths | Ped.dat/GTAVC | Pedgrp.dat/GTAVC | Pedstats.dat/GTAVC | Scenarios.dat | Scripted Path | Surface.dat/GTAVC | Surfaud.dat | TimeCyc Definition | Timecyc.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train2.dat/GTAVC | WAD | WBD-WBN | WPFL | Water.dat | Water.dat/GTAVC | Weapon.dat/GTAVC Weaponinfo.xml |
Multiplayer | Multi Theft Auto, Vice City Multiplayer, San Andreas Multiplayer |