Here the new version!
Now it's all javascript. It asynchronously fetch all part data from a server, build the model and display it. No server logic. The parts on the server are unprocessed, they're just redistribuited in different subfolder as my server was complaining about 7000+ files on a single dir
The main javascript object mantain a cache of already downloaded parts, so if you show multiple models the fetches are limited.
Here's a simple display:
http://www.lugato.net/ldraw/simple.html
And here's a page that lets you paste LDraw model in a textarea to load them:
http://www.lugato.net/ldraw/copypaste.html
And a page with multiple models in a gallery like fashion (caution: use lots of ram ):
http://www.lugato.net/ldraw/multiple.html
Note that my server doesn't GZip.
So there's much room for improvements, for example optimizing part requests, 3d rendering (some better filtering and lighting), zooming, compression of parts, etc.
Let me know if something go wrong while you try it. note that there may be some missing parts on the server.
Now it's all javascript. It asynchronously fetch all part data from a server, build the model and display it. No server logic. The parts on the server are unprocessed, they're just redistribuited in different subfolder as my server was complaining about 7000+ files on a single dir
The main javascript object mantain a cache of already downloaded parts, so if you show multiple models the fetches are limited.
Here's a simple display:
http://www.lugato.net/ldraw/simple.html
And here's a page that lets you paste LDraw model in a textarea to load them:
http://www.lugato.net/ldraw/copypaste.html
And a page with multiple models in a gallery like fashion (caution: use lots of ram ):
http://www.lugato.net/ldraw/multiple.html
Note that my server doesn't GZip.
So there's much room for improvements, for example optimizing part requests, 3d rendering (some better filtering and lighting), zooming, compression of parts, etc.
Let me know if something go wrong while you try it. note that there may be some missing parts on the server.