Help for OBJ2GLTF
PURPOSE:
Convert a .obj mesh file to a .gltf/.glb (GL Transmission Format) file.
EXECUTION:
obj2gltf INP=mesh.obj OUT=mesh.gltf
or
obj2gltf INP=mesh.obj OUT=mesh.glb
METHOD:
This program takes an .obj mesh file, and optional material .mtl file,
and converts them to a GLTF or GLB an opensource mesh file format
(https://www.khronos.org/gltf/).
The full feature set here is narrowly implemented for the use case at a hand: a mesh
with 3D vertex positions and a single texture coordinate. Intended to be paired with
a single unlit textured material. It can be extended to support more of the full spec
as needed.
HISTORY:
2021-04-05 Initial delivery
COGNIZANT PROGRAMMER: Bob Crocco
PARAMETERS:
INP
Input mesh (.obj)
OUT
Output mesh file (.gltf or .glb)
MTLDIR
The directory containing the material file (.mtl)
FLIPTEX
Whether to invert the vertical texture coordinates.
See Examples:
Cognizant Programmer: