{"name":"P3D Point and Face Flags","title":"P3D Point and Face Flags","type":"topic","url":"https://community.bistudio.com/wiki/P3D_Point_and_Face_Flags","revid":373431,"updated":"2025-05-08T11:27:12Z","aliases":["P3D Point(Vertex) Flags"],"markdown":"> **Disclaimer: This page describes internal undocumented structures of Bohemia Interactive software.**\n>\n> This page contains unofficial information.\n>\n> 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.\n> 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.\n\nThese 'flags' (or attributes) are present in the following p3d's\n\n- P3D File Format - MLOD\n- P3D File Format - ODOLV40 Revised\n- P3D File Format - ODOLV7\n\n### Point Flags\n\nThese correspond to O2L 'Point Properties'\n\n```\nNHUUFdLS\n       Surface\n        xxxxxxx0 normal\n        xxxxxxx1 on surface\n        xxxxxxx2 above\n        xxxxxxx4 under\n        xxxxxxx8 keep height(fence)\n      Lighting Face\n        xxxxxx0x normal\n        xxxxxx1x shine\n        xxxxxx2x always in shadow\n        xxxxxx4x full light\n        xxxxxx8x half light\n     decal\n       xxxxx0xx normal\n       xxxxx1xx decal (obsolete for A2)\n       xxxxx2xx radio12 (OFP only)\n    Fog\n       xxxx0xxx none :ofp normal\n       xxxx1xxx sky  :ofp none\n       xxxx2xxx normal :ofp sky\n  User xxUUxxxx user 0..255 (obsolete for A2)\n H     x1xxxxxx hidden vertex\nNormals\n       x0xxxxxx by face\n       x2xxxxxx fixed (normal)\n       x4xxxxxx by impedence\n```\n\n### Face Flags\n\nCorresponding to O2L 'face properties'.\n\nEnable shadow\n\n```\n0x00000010 - off (disable shadow)\n```\n\nEnable texture merging\n\n```\n0x01000000 - off (disable texture merging)\n```\n\nZBias (0x00000300 mask)\n\n```\n0x00000000 - none\n0x00000100 - low\n0x00000200 - middle\n0x00000300 - high\n```\n\nLightning (0x003000a0 mask)\n\n```\n0x00000020 - both sides\n0x00000080 - position\n0x00200000 - flat\n0x00100000 - reversed (transparent)\n```\n\nUser (0xfe000000 mask)\n\n```\n0xfe000000 - user additional mark value (0..127)\n```\n\n## Related Page(s)\n\nModel File Formats","sections":[{"heading":null,"level":1,"markdown":"> **Disclaimer: This page describes internal undocumented structures of Bohemia Interactive software.**\n>\n> This page contains unofficial information.\n>\n> 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.\n> 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.\n\nThese 'flags' (or attributes) are present in the following p3d's\n\n- P3D File Format - MLOD\n- P3D File Format - ODOLV40 Revised\n- P3D File Format - ODOLV7"},{"heading":"Point Flags","level":3,"markdown":"These correspond to O2L 'Point Properties'\n\n```\nNHUUFdLS\n       Surface\n        xxxxxxx0 normal\n        xxxxxxx1 on surface\n        xxxxxxx2 above\n        xxxxxxx4 under\n        xxxxxxx8 keep height(fence)\n      Lighting Face\n        xxxxxx0x normal\n        xxxxxx1x shine\n        xxxxxx2x always in shadow\n        xxxxxx4x full light\n        xxxxxx8x half light\n     decal\n       xxxxx0xx normal\n       xxxxx1xx decal (obsolete for A2)\n       xxxxx2xx radio12 (OFP only)\n    Fog\n       xxxx0xxx none :ofp normal\n       xxxx1xxx sky  :ofp none\n       xxxx2xxx normal :ofp sky\n  User xxUUxxxx user 0..255 (obsolete for A2)\n H     x1xxxxxx hidden vertex\nNormals\n       x0xxxxxx by face\n       x2xxxxxx fixed (normal)\n       x4xxxxxx by impedence\n```"},{"heading":"Face Flags","level":3,"markdown":"Corresponding to O2L 'face properties'.\n\nEnable shadow\n\n```\n0x00000010 - off (disable shadow)\n```\n\nEnable texture merging\n\n```\n0x01000000 - off (disable texture merging)\n```\n\nZBias (0x00000300 mask)\n\n```\n0x00000000 - none\n0x00000100 - low\n0x00000200 - middle\n0x00000300 - high\n```\n\nLightning (0x003000a0 mask)\n\n```\n0x00000020 - both sides\n0x00000080 - position\n0x00200000 - flat\n0x00100000 - reversed (transparent)\n```\n\nUser (0xfe000000 mask)\n\n```\n0xfe000000 - user additional mark value (0..127)\n```"},{"heading":"Related Page(s)","level":2,"markdown":"Model File Formats"}],"categories":["ArmA: Armed Assault: File Formats","Operation Flashpoint: Modelling","Real Virtuality File Formats"],"groups":["Tools and File Formats"]}