LDraw.org Discussion Forums

Full Version: A JavaScript .dat to .obj converter, for use online
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I wrote a JavaScript .dat to .obj converter for use online with things like cubicvr.js and other WebGL rendering libraries - it's free to use, with the source code on https://github.com/Pomax/WebGLdraw (feel free to fork!)

If you spot anything that can do with improvements (like where to look for parts and subparts, for instance) let me know, or if you'd rather fix the code yourself and do a pull request with your better version: also good!

- Pomax

NB: I found testing the result of the converter easiest by running it through GLSViewer, since I'm on windows (it's a tiny 394kb utility for viewing .obj models)