Insert Wavefront OBJ file content here and click Convert.

Convert

To make such OBJ you can use Blender.

  1. Open model in Blender. (you can it import from OBJ, for example)
  2. Export to Wavefront (.obj)
  3. Set settings as it on the picture:
    Blender settings
  4. Open this converter: http://www.kurilo.su/workingprocess/webgl/c/
  5. Convert it.
  6. Insert JSON in your file.

It generate ready to use in WebGL indices, vertices, vertex normals and texture coordinates.

Examples: http://www.kurilo.su/workingprocess/webgl/
http://www.kurilo.su/workingprocess/webgl/mrhumpty.html
http://www.kurilo.su/workingprocess/webgl/building.html
http://www.kurilo.su/workingprocess/webgl/building1.html
http://www.kurilo.su/workingprocess/webgl/spider.html