The obj file is a standard 3D model file format that stores the vertex, normal, and texture coordinates and material usage information of the model in plain text , so you can use Notepad to open direct reading.
In the obj file, each behavior is a piece of information, with the format of each line as follows: Prefix parameter 1 parameter 2 parameter 3 ...
Common prefixes
# prefix that represents a comment
V indicates that the bank specifies a coordinate. Float followed by 3 text representing the x, Y, z coordinate values of the fixed point (separated by a space between the parameters)
vt indicates that the bank specifies a texture coordinate. followed by a 2 text representation of float. Represents the U, v value of this texture coordinate, respectively
VN indicates that the bank specifies a normal vector. followed by 3 text representing float, representing the x, Y, z coordinate values of the normal vector (separated by a space between the parameters)
Findicates that the bank specifies a surface(face), (parameters are separated by spaces). where the index of texture coordinates and normals is optional, in the case of selection, the order must be vertex coordinates, texture coordinates, index of normal coordinates, use symbol / "is separated, so there is normal, but no texture coordinates are changed: F 1//3 5//7 8//3
Note: The above indexes are all starting from 1, not 0
3D model file--obj file format