A simple OBJ file converter

input file  
in material
output file
precision N= digits

A simple JS based converter for 3DS models with materials (for local use with Firefox (it will ask your permission for read/write operations on hard disk)). See Importing 3DS models for detail.

This script makes JS arrays for data with given precision, "aligns" number of normals to number of vertices and adds materials. You can copy result and put it in your WebGL script (use e.g. mat_model.html) or add one more JS file with data.


WebGL and simulations on GPU     updated 1 Feb 2011