Jump to content

OBD:PLEA: Difference between revisions

326 bytes added ,  1 January 2010
for the sake of completness...
m (linking to BSP)
(for the sake of completness...)
Line 26: Line 26:
::In that case, the first package of the above example defines the plane (0 * x + 0 * y + 1 * z + 612 = 0), i.e., the vertical plane z = -612.
::In that case, the first package of the above example defines the plane (0 * x + 0 * y + 1 * z + 612 = 0), i.e., the vertical plane z = -612.
Planes are used for environment culling, collision detection and [[wikipedia:Binary_space_partitioning|BSP]].
Planes are used for environment culling, collision detection and [[wikipedia:Binary_space_partitioning|BSP]].
;Note on plane references
:Planes are referenced by index from various other places. The high bit of a plane index is always used to indicate the direction of the plane's normal (or "which face of the plane is up"). That means that if the high bit is set all 4 float values need to be negated to get the referenced plane.
{{OBD_File_Footer | type=PLEA | prev=OTLF | next=PNTA | name=Plane Equation Array | family=Level}}
{{OBD_File_Footer | type=PLEA | prev=OTLF | next=PNTA | name=Plane Equation Array | family=Level}}
708

edits