qmetrics.net

tinyobjloader

Compact Wavefront OBJ and MTL file loader

tinyobjloader parses Wavefront .obj and .mtl 3D model files for renderers and tools. It offers a single-header C++ loader and a separate pure C11 implementation with tessellation support.

Overview

tinyobjloader loads Wavefront OBJ geometry and companion MTL materials into structures your renderer or tool can consume. The C++ path centers on tinyobjloader.h, a header-only parser that needs only the standard library and handles very large meshes in benchmarking examples.

A newer pure C11 implementation, tinyobjc with the tobjtess tessellation library, targets embedded or freestanding builds. It can run without libc in the core, supports float and double precision, and parses faces, lines, points, and retained free-form curve and surface records.

Features include grouping, vertex attributes, texture coordinates, normals, smoothing groups, optional double precision, callback-driven loading, PBR extensions for MTL, and polygon triangulation with an optional Mapbox earcut path for difficult faces. An optimized LoadObjOpt entry point adds multithreading and SIMD for huge files while keeping the same mesh layout.

Python bindings are included, and examples cover an OpenGL viewer, callback APIs, and voxelization. The library is intended to embed directly into global illumination renderers, game engines, or offline conversion pipelines by copying the header or linking the C sources.

Key features

  • Single-header C++ OBJ parser
  • Pure C11 freestanding loader
  • MTL materials with PBR extension
  • Polygon triangulation options
  • Callback-based custom loading
  • LoadObjOpt multithreaded parser
  • Python bindings
  • Double-precision mesh data

Use cases

  • Embedding OBJ import in renderers
  • Loading large architectural scenes
  • C or C++ game engine tooling
  • Offline mesh inspection utilities
  • Embedded 3D asset pipelines

Tags

Similar software

Bevy Engine

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

★ 50k⟳ yesterdayApache-2.0
Open Source Alternative to:Unity

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

★ 40.8k⟳ 3 months agoMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

★ 35.8k⟳ todayZlib
Frameworks & PlatformsDesktop/CLI app

Matter.js

JavaScript two-dimensional rigid body physics engine

Matter.js simulates 2D rigid-body physics for browser games and interactive pages. It runs in modern browsers and Node.js with canvas rendering and touch-friendly controls.

★ 18.7k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

wgpu

Cross-platform safe Rust graphics API

wgpu implements the WebGPU-style API in Rust for native and WebAssembly targets. It backs Firefox, Servo, and Deno WebGPU integration and maps to Vulkan, Metal, D3D12, and GLES.

★ 18.7k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app

GLFW

Cross-platform windowing library for OpenGL and Vulkan

GLFW is a C library that creates windows, graphics contexts, and surfaces while handling input and events. It targets OpenGL, OpenGL ES, and Vulkan on desktop and Unix-like systems.

★ 15.5k⟳ 3 months agoZlib
Frameworks & PlatformsDesktop/CLI app