OBJ reader, mesh viewer in browser with WebGL

Alec Jacobson

April 10, 2013

weblog/

mesh in browser I'm getting around to release source code and demos for my PhD projects and I thought it would be cool to try out writing those demos using WebGL. After toying around (for a few years now), I have a little proof of concept. This little mesh viewer can load an .obj mesh file (just bare basics of the format) from (1) the remote server, (2) a selected file, or (3) a drag-and-drop file. Just drag an .obj file from your folder onto the viewer! For now there's not much interface, just a simple zoom mechanism. But I'm going to build on this and keep updated the page. The source code is heavily borrowed from around the web. See the .js sources.