3D model file--obj file format

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.