P3D Point and Face Flags: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "[[Image:" to "[[File:")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{unsupported-doc}}
{{Feature|UnsupportedDoc}}


These correspond to O2L 'Point Properties' and are present in
These 'flags' (or attributes) are present in the following p3d's
*[[P3D File Format - MLOD P3DM]]
 
*[[P3D File Format - MLOD SP3X]]
*[[P3D File Format - MLOD]]
*[[P3D File Format - ODOLV40 Revised]]
*[[P3D File Format - ODOLV40 Revised]]
*[[P3D File Format - ODOLV7]]
*[[P3D File Format - ODOLV7]]


== Point Flags ==
[[File:O2L points.JPG]]
These correspond to O2L 'Point Properties'
NHUUFdLS
        Surface
        xxxxxxx0 normal
        xxxxxxx1 on surface
        xxxxxxx2 above
        xxxxxxx4 under
        xxxxxxx8 keep height(fence)
      Lighting Face
        xxxxxx0x normal
        xxxxxx1x shine
        xxxxxx2x always in shadow
        xxxxxx4x full light
        xxxxxx8x half light
      decal
        xxxxx0xx normal
        xxxxx1xx decal (obsolete for A2)
        xxxxx2xx radio12 (OFP only)
    Fog
        xxxx0xxx none :ofp normal
        xxxx1xxx sky  :ofp none
        xxxx2xxx normal :ofp sky
  User xxUUxxxx user 0..255 (obsolete for A2)
  H    x1xxxxxx hidden vertex
Normals
        x0xxxxxx by face
        x2xxxxxx fixed (normal)
        x4xxxxxx by impedence






Surface: (0x0000000f mask)
== Face Flags ==
[[File:O2L Face.JPG]]
Corresponding to O2L 'face properties'.


0x00000000 - normal
Enable shadow
0x00000001 - on surface
0x00000002 - above surface
0x00000004 - undersurface
0x00000008 - keep height (fence)


Decal (0x00000300 mask)  
0x00000010 - off (disable shadow)  


0x00000000 - normal
Enable texture merging
0x00000100 - decal
0x00000200 - radio12
Fog  (0x00003000 mask)
0x00000000 - normal
0x00001000 - none
0x00002000 - sky


Lightning (0x000000f0 mask)  
  0x01000000 - off (disable texture merging)  


  0x00000000 - normal
ZBias (0x00000300 mask)
0x00000010 - shining
  0x00000000 - none
  0x00000020 - always in shadow
  0x00000100 - low
  0x00000040 - fully lighted
  0x00000200 - middle
  0x00000080 - half lighted
  0x00000300 - high


User  (0x00ff0000 mask)  
Lightning (0x003000a0 mask)  
  0x00ff0000 - user additional mark value (0..255)
  0x00000020 - both sides
0x00000080 - position
0x00200000 - flat
0x00100000 - reversed (transparent)  


Hidden  (0x01000000 mask)  
User (0xfe000000 mask)  
  0x00000000 - Visible
  0xfe000000 - user additional mark value (0..127)
0x01000000 - Hidden


=Related Page(s)=
=Related Page(s)=
Line 48: Line 73:
[[BIS_File_Formats#3D_Model_File_Formats|Model File Formats]]
[[BIS_File_Formats#3D_Model_File_Formats|Model File Formats]]
[[Category:BIS_File_Formats]]
[[Category:BIS_File_Formats]]
[[Category:ArmA: File Formats]]
{{GameCategory|arma1|File Formats}}
{{GameCategory|ofp|Modelling}}

Latest revision as of 00:10, 21 November 2023

bi symbol white.png
Disclaimer: This page describes internal undocumented structures of Bohemia Interactive software.

This page contains unofficial information.

Some usage of this information may constitute a violation of the rights of Bohemia Interactive and is in no way endorsed or recommended by Bohemia Interactive.
Bohemia Interactive is not willing to tolerate use of such tools if it contravenes any general licenses granted to end users of this community wiki or BI products.

These 'flags' (or attributes) are present in the following p3d's


Point Flags

O2L points.JPG These correspond to O2L 'Point Properties'

NHUUFdLS 
       Surface
        xxxxxxx0 normal
        xxxxxxx1 on surface 
        xxxxxxx2 above 
        xxxxxxx4 under 
        xxxxxxx8 keep height(fence)
      Lighting Face
        xxxxxx0x normal
        xxxxxx1x shine
        xxxxxx2x always in shadow
        xxxxxx4x full light
        xxxxxx8x half light
     decal
       xxxxx0xx normal
       xxxxx1xx decal (obsolete for A2)
       xxxxx2xx radio12 (OFP only)
    Fog
       xxxx0xxx none :ofp normal
       xxxx1xxx sky  :ofp none
       xxxx2xxx normal :ofp sky
  User xxUUxxxx user 0..255 (obsolete for A2)
 H     x1xxxxxx hidden vertex
Normals
       x0xxxxxx by face
       x2xxxxxx fixed (normal)
       x4xxxxxx by impedence


Face Flags

O2L Face.JPG Corresponding to O2L 'face properties'.

Enable shadow

0x00000010 - off (disable shadow) 

Enable texture merging

0x01000000 - off (disable texture merging) 

ZBias (0x00000300 mask)

0x00000000 - none 
0x00000100 - low 
0x00000200 - middle 
0x00000300 - high 

Lightning (0x003000a0 mask)

0x00000020 - both sides 
0x00000080 - position 
0x00200000 - flat 
0x00100000 - reversed (transparent) 

User (0xfe000000 mask)

0xfe000000 - user additional mark value (0..127)

Related Page(s)

Model File Formats