OBD:PNTA: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
m (changed family)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> PNTA File
{{OBD_File_Header | type=PNTA | prev=PLEA | next=PSpc | name=3D Point Array | family=General | align=center}}




<CENTER>[[OBD:PLEA|<==]] <FONT SIZE=5>PNTA File</FONT> [[OBD:PSpc|==>]]<BR>
[[Image:pnta_a.gif]]
<FONT SIZE=2>3D Point Array - Level and Character File</FONT></CENTER>




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/pnta_a.gif
{{Table}}
 
{{OBDth}}
 
{{OBDtr| 0x00 | res_id  |FF0000| 01 DA 00 00 | 218   | 00218-.PNTA }}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3     | level 3 }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x08 | char[12] |00FF00| AD DE       | dead | unused }}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x14 | float    |00FFFF| 00 00 10 C1 | -9.000000 | min. x-coordinate of all elements below }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x18 | float    |00FFFF| 47 BC C9 BE | -0.394015 | min. y-coordinate (height) of all elements below }}
| WIDTH=70% | <B>Meaning</B>
{{OBDtr| 0x1C | float    |00FFFF| FF FF 6F C1 | -14.999999| min. z-coordinate of all elements below }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x20 | float    |FF00FF| 00 00 10 41 | 9.000000 | max. x-coordinate of all elements below }}
| BGCOLOR="#FF0000" | 01 DA 00 00
{{OBDtr| 0x24 | float    |FF00FF| 56 BC C9 3E | 0.394015 | max. y-coordinate (height) of all elements below }}
| 218
{{OBDtr| 0x28 | float    |FF00FF| 70 6E 73 41 | 15.214462 | max. z-coordinate of all elements below }}
| ALIGN=LEFT | 00218-.PNTA
{{OBDtr| 0x2C | float    |FF8000| 00 00 00 00 | 0.000000 | x-coordinate of the center [ ((max. x-coord. - min. x-coord.) ÷ 2) + min x-coord. ] }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x30 | float    |FF8000| 00 00 70 34 |0.000000...| y-coordinate (height) of the center [ ((max. y-coord. - min. y-coord.) ÷ 2) + min y-coord. ] }}
| BGCOLOR="#FFFF00" | 01 00 00 06
{{OBDtr| 0x34 | float    |FF8000| 40 9C DB 3D | 0.107232 | z-coordinate of the center [ ((max. z-coord. - min. z-coord.) ÷ 2) + min z-coord. ] }}
| 3
{{OBDtr| 0x38 | float    |FF0080| E6 B6 8C 41 | 17.589306 | distance from the center to each of the both points above }}
| ALIGN=LEFT | level 3
{{OBDtr| 0x3C | int32    |960096| 10 00 00 00 | 16       | array size }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtrBK}}
| BGCOLOR="#00FF00" | AD DE
{{OBDtr| 0x00 | float    |FFC8C8| 00 00 10 C1 | -9.000000 | x-coordinate of the first point }}
| dead
{{OBDtr| 0x04 | float    |FFFFC8| 1A BC C9 BE | -0.394013 | y-coordinate (height) of the first point }}
| ALIGN=LEFT | not used
{{OBDtr| 0x08 | float    |C8FFC8| FF FF 6F C1 | -14.999999| z-coordinate of the first point }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 00 00 10 C1
| -9.000000
| ALIGN=LEFT | max. neg. x-coordinate of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 47 BC C9 BE
| -0.394015
| ALIGN=LEFT | max. neg. y-coordinate (height) of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | FF FF 6F C1
| -14.999999
| ALIGN=LEFT | max. neg. z-coordinate of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | 00 00 10 41
| 9.000000
| ALIGN=LEFT | max. pos. x-coordinate of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | 56 BC C9 3E
| 0.394015
| ALIGN=LEFT | max. pos. y-coordinate (height) of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | 70 6E 73 41
| 15.214462
| ALIGN=LEFT | max. pos. z-coordinate of all packages below
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF8000" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | x-coordinate of the center ( (max. neg. x-coordinate + max. pos. x-coordinate) &divide; 2 )
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF8000" | 00 00 70 34
| 0.000000...
| ALIGN=LEFT | y-coordinate of the center ( (max. neg. y-coordinate + max. pos. y-coordinate) &divide; 2 )
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF8000" | 40 9C DB 3D
| 0.107232
| ALIGN=LEFT | z-coordinate of the center ( (max. neg. z-coordinate + max. pos. z-coordinate) &divide; 2 )
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF0080" | E6 B6 8C 41
| 17.589306
| ALIGN=LEFT | distance from the center to both points above
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#960096" | 10 00 00 00
| 16
| ALIGN=LEFT | 16 packages follow (one package is edged in black)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00 10 C1
| -9.000000
| ALIGN=LEFT | x-position of the point
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 1A BC C9 BE
| -0.394013
| ALIGN=LEFT | y-position (height) of the point
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | FF FF 6F C1
| -14.999999
| ALIGN=LEFT | z-position of the point
|}
|}




The first image shows the light blue, lila and dark orange marked points of the table above. In my opinion these points are used to create the bounding box.
The first image below shows the points which are encoded above in the data marked in light blue, lilac and dark orange. In my opinion these points are used to create the bounding box.


The second image gives you an overview of the packages. Every package contains the x- y- and z-coordinate of a point. In this example every point excists in duplicate, so that you can only see 8 points. These points are needed to built up the mesh (triangles) for a door.
The second image gives you an overview of the elements in the coordinate array. Every triad of 32-bit numbers contains the x- y- and z-coordinate of a point. In this example every point exists in duplicate, so that you can only see 8 points. These points are needed to build up the mesh (triangles) for a door.


Image number three is a fusion of the first and the second image.
Image number three is a fusion of the first and the second image.




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/pnta_0.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/pnta_1.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/pnta_2.gif
[[Image:pnta_0.gif]] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Image:pnta_1.gif]] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Image:pnta_2.gif]]
 


<HR>
<CENTER>[[OBD:PLEA|<==]] <B>PNTA File</B> [[OBD:PSpc|==>]]</CENTER>
<HR>


{{OBD_File_Footer | type=PNTA | prev=PLEA | next=PSpc | name=3D Point Array | family=General}}


[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> PNTA File
{{OBD}}

Latest revision as of 01:58, 8 December 2023

ONI BINARY DATA
PLEA << Other file types >> PSpc
PNTA : 3D Point Array
switch to XML:PNTA page
Overview @ Oni Stuff
OBD.png


Pnta a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 DA 00 00 218 00218-.PNTA
0x04 lev_id 01 00 00 06 3 level 3
0x08 char[12] AD DE dead unused
0x14 float 00 00 10 C1 -9.000000 min. x-coordinate of all elements below
0x18 float 47 BC C9 BE -0.394015 min. y-coordinate (height) of all elements below
0x1C float FF FF 6F C1 -14.999999 min. z-coordinate of all elements below
0x20 float 00 00 10 41 9.000000 max. x-coordinate of all elements below
0x24 float 56 BC C9 3E 0.394015 max. y-coordinate (height) of all elements below
0x28 float 70 6E 73 41 15.214462 max. z-coordinate of all elements below
0x2C float 00 00 00 00 0.000000 x-coordinate of the center [ ((max. x-coord. - min. x-coord.) ÷ 2) + min x-coord. ]
0x30 float 00 00 70 34 0.000000... y-coordinate (height) of the center [ ((max. y-coord. - min. y-coord.) ÷ 2) + min y-coord. ]
0x34 float 40 9C DB 3D 0.107232 z-coordinate of the center [ ((max. z-coord. - min. z-coord.) ÷ 2) + min z-coord. ]
0x38 float E6 B6 8C 41 17.589306 distance from the center to each of the both points above
0x3C int32 10 00 00 00 16 array size
First element (black outline)
0x00 float 00 00 10 C1 -9.000000 x-coordinate of the first point
0x04 float 1A BC C9 BE -0.394013 y-coordinate (height) of the first point
0x08 float FF FF 6F C1 -14.999999 z-coordinate of the first point


The first image below shows the points which are encoded above in the data marked in light blue, lilac and dark orange. In my opinion these points are used to create the bounding box.

The second image gives you an overview of the elements in the coordinate array. Every triad of 32-bit numbers contains the x- y- and z-coordinate of a point. In this example every point exists in duplicate, so that you can only see 8 points. These points are needed to build up the mesh (triangles) for a door.

Image number three is a fusion of the first and the second image.


Pnta 0.gif       Pnta 1.gif       Pnta 2.gif


ONI BINARY DATA
PLEA << Other file types >> PSpc
PNTA : 3D Point Array
General file