Setting up Andy’s LDraw Viewer

Andy has posted the Processing code for the nifty little LDraw viewer I mentioned in my previous post.

Processing gives you a decent among of guidance, but for your reference here’s what I did to get this up and running:

  1. Download and unzip ProcessingLcad-Oct2008.zip.
  2. Rename the LcadTest-Oct2008 folder to LcadTest01 in order to match the project file it contains.
  3. Move the contents of the LcadTest01/libs/ folder to your Processing sketchbook libraries folder. In my case, it is /Users/anoved/Documents/Processing/libraries/.
  4. Move the contents of the LcadTest01/models/ folder to the models subfolder of your LDraw library. Alternatively, you can edit LcadTest01.pde to load a model of your choice.
  5. Open LcadTest01.pde and edit BaseDir to identify your LDraw library folder. In my case, it is /Users/anoved/Documents/LDraw/.

Lastly, if the capitalization of the LDConfig.ldr file in your LDraw library does not match that specified later in LcadTest10.pde, edit one or the other so they are in agreement.

Now you can take it for a spin. And, yes, this viewer can load files with Unix line endings. ☺

Posted on Monday, January 11th, 2010. Tags: , , .

2 Responses to “Setting up Andy’s LDraw Viewer”

Posted by Robin "GreenLead" Chang on Thursday, February 25th, 2010 at 4:29 PM.

Way too cool, Jim. I’m very very tempted to have a similar setup
for the Alpha Company Forums to display official models created for
the group.

Posted by Jim on Thursday, February 25th, 2010 at 6:15 PM.

I’m glad you’re intrigued! I’ve got an update for the online viewer partially planned out, but it’s in the back of the project rotation at the moment. I hope to make it a bit more efficient. Eventually, the goal is indeed to make it feasible to embed a cross-platform 3D version of an LDraw model in a web page with minimal format conversion.