What is an OBJ file?
Most modeling software stores its model data in proprietary file formats using binary data to minimize the size of the files. A cross-platform data format is needed if data is to be shared between modeling programs.
The OBJ files can be exported from the software named “Blender”. We use the OBJ format for defining models for our WebGL programs because:
- OBJ files are plain text, which allows the data to be read and parsed in JavaScript.
- The plain text format removes any binary incompatibilities between the web server and various client browsers.
► You can also use the software Maya or 3ds Max for exporting OBJ files.
The following points should be taken care of while exporting OBJ files
- The topology of the 3D model should contain a limited vertices/edges/faces. The increased polygonal faces in areas of a 3D model that will undergo deformation.
- It is important to maintain good, clean topology when building your 3D model. To know more about topology, you can refer to the link
- The size of the 3D model should be less than 2 MB for a better user experience.
To know more about exporting the OBJ file from Blender, please click here.