OBD:PLEA: Difference between revisions

165 bytes removed ,  12 September 2007
m
design
m (inequation)
m (design)
Line 1: Line 1:
{{OBD_File_Header|align=center|type=PLEA|prev=OTLF|next=PNTA|name=Plane Equation Array|family=Level|onistuff=plea}}
{{OBD_File_Header | type=PLEA | prev=OTLF | next=PNTA | name=Plane Equation Array | family=Level | align=center}}
----
 
 
[[image:plea_a.gif]]


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/plea_a.gif


{|{{OBDtable}}
{{Table}}
|align=center|
{{OBDth}}
{|{{OBDtable}}
{{OBDtr| 0x00 | res_id  |FF0000| 01 41 02 00 | 577   | 00577-.PLEA }}
|-BGCOLOR="#FFDDBB"
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3     | level 3 }}
! WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x08 | char[20] |00FF00| AD DE       | dead | unused }}
! WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x1C | int32    |00FFFF| 03 00 00 00 | 13554 | array size }}
! WIDTH=70% | <B>Meaning</B>
{{OBDtrBK}}
|-
{{OBDtr| 0x00 | float    |FFC8C8| 00 00 00 00 | 0.000000 | 1st coefficient of the plane equation (x-part of normal vector) }}
| BGCOLOR="#FF0000" | 01 41 02 00
{{OBDtr| 0x04 | float    |FFFFC8| 00 00 00 00 | 0.000000 | 2nd coefficient of the plane equation (y-part of normal vector) }}
| 577
{{OBDtr| 0x08 | float    |C8FFC8| 00 00 80 3F | 1.000000 | 3rd coefficient of the plane equation (z-part of normal vector) }}
| ALIGN=LEFT | 00577-.PLEA
{{OBDtr| 0x0C | float    |C8FFFF| 00 00 19 44 |612.000000| 4th coefficient of the plane equation }}
|-
| BGCOLOR="#FFFF00" | 01 00 00 06
| 3
| ALIGN=LEFT | level 3
|-
| BGCOLOR="#00FF00" | AD DE
| dead
| ALIGN=LEFT | not used
|-
| BGCOLOR="#00FFFF" | F2 34 00 00
| 13554
| ALIGN=LEFT | 13554 packages follow (first package outlined in black)
|-
| BGCOLOR="#000000" COLSPAN=3 | <FONT COLOR="#FFFFFF">First package (i.e., plane equation) follows</FONT>
|-
| BGCOLOR="#FFC8C8" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | first coefficient of the plane equation
|-
| BGCOLOR="#FFFFC8" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | second coefficient of the plane equation
|-
| BGCOLOR="#C8FFC8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | third coefficient of the plane equation
|-
| BGCOLOR="#C8FFFF" | 00 00 19 44
| 612.000000
| ALIGN=LEFT | fourth coefficient of the plane equation
|}
|}
|}
;Plane equation
;Plane equation
:The canonical equation for a [http://mathworld.wolfram.com/Plane.html plane] in 3D is :
:The canonical equation for a [http://mathworld.wolfram.com/Plane.html plane] in 3D is :
Line 61: Line 33:
::It's rather easy to check (just flip the "normal" of the plane equation for a known axis-aligned quad).
::It's rather easy to check (just flip the "normal" of the plane equation for a known axis-aligned quad).
:The oriented "plane inequation" can be used for: culling; collision.
:The oriented "plane inequation" can be used for: culling; collision.
{{OBD_File_Footer | type=PLEA | prev=OTLF | next=PNTA | name=Plane Equation Array | family=Level}}


----
{{OBD_File_Header|align=center|type=PLEA|prev=OTLF|next=PNTA|name=Plane Equation Array|family=Level|onistuff=plea}}
{{OBD_File_Footer|align=center|type=PLEA|prev=OTLF|next=PNTA|name=Plane Equation Array|family=Level|onistuff=plea}}
1,051

edits