Skip to content

Commit ed9db1d

Browse files
authored
Update README.md
Added details about MTL comment annotation syntax.
1 parent b660f91 commit ed9db1d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,26 @@ A command line tool to convert OBJ and associated MTL files to BOM (Binary Objec
99
- Combine multi-part models consisting of many OBJ/MTL files into a single BOM file.
1010
- Automatic conversion of quad face geometry into triangulated face geometry.
1111
- Automatic indexing of geometry buffers.
12+
- Comment annotation syntax for MTL provides support for embedding non-standard material properties into BOM file.
1213

1314
## Known Issues
1415
- Texture scaling and offset parameters in map_* are not currently parsed.
1516
- Bump and displacement scaling parameters in bump/disp are not currently parsed.
1617
- N-gon face geometry is not supported.
1718
- Point/Line/Curve/Surface geometry is not supported.
1819
- 3D texture coordinates are not supported.
20+
21+
## MTL Comment Annotation Syntax
22+
`# :[vendor]: [property] [[-flag1] [value1] [value2] [...valueN]] [[-flag2] [value1] [value2] [...valueN]] [[...-flagN] [value1] [value2] [...valueN]] [value1] [value2] [...valueN]`
23+
24+
### BOM Material Properties
25+
26+
#### Face Culling (cull_face)
27+
##### Syntax:
28+
`# :BOM: cull_face [none|front|back|all]`
29+
30+
##### Available options:
31+
- `none`: Disables culling of faces, used to display double sided materials.
32+
- `front`: Culls only front faces.
33+
- `back`: Culls only back faces.
34+
- `all`: Culls both front and back faces.

0 commit comments

Comments
 (0)