|
![](../../templates/images/topbottom_logo.gif) |
OBJ 3D File Formats
The bits and bytes... |
|
|
|
![](https://xbdev.net/templates/images/header1/left.gif) | OBJ File Format (.obj) | ![](https://xbdev.net/templates/images/header1/right.gif) |
The `obj` file format is a text based format.
Example of what the file format looks like in a text editor:
![](https://xbdev.net/templates/images/header1/left.gif) | Example obj file loader (in Javascript) | ![](https://xbdev.net/templates/images/header1/right.gif) |
The following `obj` file loader is in a single file. Also converts non-triangle (quad) mesh elements to triangles.
Output for the example OBJ Loader - loads in a 3d model of a Stadium
![](https://xbdev.net/templates/images/header1/left.gif) | Resources and Examples | ![](https://xbdev.net/templates/images/header1/right.gif) |
• WebGPU Example [LINK]
• Notebook `obj` to `json` Example [https://notebook.xbdev.net/index.php?page=objtojson&]
|
|