LDraw viewer now in place

Posted by ,

Last week I mentioned that Legolijntje was working on indexing and uploading LDraw versions of official sets to the Brickset database.

In the comments to that article, nicola80, author of a plug-in for displaying LDraw models in your browser, offered to assist getting it working here at Brickset to enable those of you that don't have LDraw installed to view them.

Work on it is almost complete and most of the models can now be viewed. There's a new 'view' link on the index page and on set details pages, which, when clicked, will display a rotatable, zoomable, 3D version of the set in a new browser tab.

At the moment it's only working with .ldr files and not .mpd (multi-model) files but hopefully we'll get that resolved soon. The viewer works with both .ldr and .mpd files. Note that it might take a minute or two to load the parts and render the image, particularly with large models.

So, big thanks to Legolijntje and nicola80 for making it possible.

19 comments on this article

Gravatar
By in South Africa,

This is a big piece of work. Nice job guys. Thanks for the efforts. I am looking forward to try it out!

Gravatar
By in South Africa,

OK, now I did test it and I love it! Maybe I will go back again to LDraw modelling!

Gravatar
By in United Kingdom,

Checking this out now. Sounds interesting!

EDIT: Will have to wait until I have the time to download LDraw onto my laptop. Don't have it yet. I'll give my feedback on it ASAP. ;-)

Gravatar
By in Netherlands,

That's frigging awesome. Does it also work well if the sets contain parts that aren't rendered well by brigl due to limitations in the LDraw format (nicola knows which ones I'm referring to)?

Edit: nevermind, I see that the render errors are indeed there (for example, for a lot of wheels). Wish the LDraw folks would fix that stuff.

Gravatar
By in Netherlands,

Nice Huw! However, mpd files still don't work for me (Firefox and Chrome).

@Jantjeuh, what errors do you mean? Could you give an example set/file?

Gravatar
By in Italy,

Jantjeuh indeed brigl doesn't attempt at sanitizing bad part files. There are some viewer around that does (LDView for example) but the algorithm can be quite tricky to implement, and the issue really should be adressed in the ldraw part library once and for all. Unfortunately the guys at LDraw are extremely reclutant to upgrade their ancient file format.

Gravatar
By in Netherlands,

What exactly do you mean?

Gravatar
By in Netherlands,

Annoying, are they so hesitant to improve it due to backwards compatibility reasons?

I think we could use full-model LDraw rendering using brigl to deal with minifig assemblies when we start supporting these over @ Rebrickable. Up to Nathan though.

P.S.: I also have issues with the .mpd files. Chrome on Mac OS Yosemite.

Gravatar
By in United Kingdom,

Am I missing a trick as I can't get it to work? For example: I go to Set 918 as know it has LDraw file, I click on 'LDraw' tab then click 'View'. The 'Brickset LDraw model viewer' pops up. It says Loading XXX.dat for a few seconds whilst it downloads some data , then 'Model Loaded successfully' appears but there is no visible model. I am using Firefox as my browser. Any ideas, anyone?

Gravatar
By in Italy,

Legolijntje have you tryed a CTRL-F5 to reload all the js script? Still doesn't work? At least one file will still not work (i think it's becouse it have an & in the file name), but the others should.

Here's a couple of examples of broken parts (wheels and droid body):

http://uploads.brickset.com/ldraw/brigl/view.aspx?f=4891%20-%20Highway%20Haulers%20%28Model%20C%29.ldr

http://uploads.brickset.com/ldraw/brigl/view.aspx?f=7141%20-%20Naboo%20Fighter.mpd

If i remember correctly, some files have errors on the quad definitions, such as bowties, nonplanar quads etc.
About upgrading the part library, many people have asked in the ldraw forum to update che format, expecially for including normals, but also to cease the CCW/CW/Inversion crazyness, etc. In general, to adopt some more modern solutions (IIRC the ldraw format predates all graphic cards and hardware acceleration)

Gravatar
By in United Kingdom,

^ I was going to suggest ctrl-F5, that should do the trick. If ampersands are causing problems Legolijntje has the means to change them :-)

Gravatar
By in United Kingdom,

'View' option doesn't work for me when using Safari - I get an "no webgl" error.

Gravatar
By in Netherlands,

@ DrDaveWatford: that's because you have to enable WebGL in Safari, it's disabled there by default. Google has plenty of information on that.

Gravatar
By in United States,

Will we be seeing a similar function for LDD models sometime?

Gravatar
By in United Kingdom,

No -- there's no web viewer for them available.

Gravatar
By in United Kingdom,

Many thanks, Jantjeuh - now working perfectly in Safari!

Gravatar
By in United Kingdom,

@Bricklunch, I'm having the same problem. Plus it crashed Firefox. Nice idea, but I don't think I'll be using it.

Gravatar
By in United Kingdom,

@Paperballpark, Glad to see I'm not alone. Suspect making it work with every browser would be an endless task. Oddly it doesn't work for me with Firefox but works fine with Internet Explorer. Likewise, I don't think I will be bothering with it.

Return to home page ยป