LDR Importer


LDR Importer
#1
I, in conjunction with the whole development team, am proud to introduce LDR Importer, a Blender 3D importer plugin for .ldr and .dat models! Big Grin.

Downloads
Features
This list is by no means complete.
  • Supports Blender 2.67 and onward[/*]
  • Attempts to detect installation of LDraw Parts Library on Windows Mac OS X, and Linux[/*]
  • Complete preferences system to preserve all import options[/*]
  • Fully supports library folder structure, including unofficial, p/48, and p/8 folders[/*]
  • Supports models in .dat and .ldr format; Multi-part DAT (.mpd) and Bricksmith models are not supported[/*]
  • Model optimization option available to clean up the mesh, in addition to using the original mesh[/*]
  • Uses LDConfig.ldr for color list rather than internal list, providing up-to-date and accurate colors[/*]
  • Supports most of the LDraw colors for Blender Internal, including transparent, chrome, pearlescent, rubber, and metal[/*]
  • Experimental support for Cycles Engine materials[/*]
  • Automatically detects render engine and uses the appropriate materials[/*]
Reply
Re: LDR Importer
#2
wow.
this will be the reason for me to try Blender the first time after long years of POVRay.
thank you for sharing this!
Reply
Re: LDR Importer
#3
For fun, I grabbed the newest version of unofficial bricks and rendered the Mindstoms EV3 brick in Blender Internal.

[Image: mindstormsev3-bi.png]

Because I liked the slight glare on the side which didn't turn out too well in the render, I saved a snapshot of the render window too. Wink

[Image: mindstormsev3-renderwindow.png]


I'm not a 3D artist, rather a programmer, so I'm sure someone else could have done a better render, but I wanted to show the script in action. This was using the default settings for scale and cleanup options. I would have done one in Cycles to demonstrate the experimental support for it, but it imported as a yellow brick (14; this is Light_Bluish_Gray, 71). Tongue I still may do it. If the shell is the wrong color, then it is a bug in the script, and we'll look into fixing it. I think it may be from looking at official images of the brick.
Reply
Re: LDR Importer
#4
Wow! glad you choose one of my most complex "babies" for this image Wink The EV3 would have looked good in this color!
Reply
Re: LDR Importer
#5
Too bad about the lack of MPD support. Most of my models are MPD. Sad
Reply
Re: LDR Importer
#6
You can use MPDCenter to combine what you need into one single LDR file!
But there is no possibility to split that file later again into its components.
So for viewing purpose you can have what you like.
Reply
Re: LDR Importer
#13
[moved to new thread]
Reply
Re: LDR Importer
#7
You can always use a tool like MPDCenter to create a non-MPD version of your model so that you can then use this importer.
Reply
Re: LDR Importer
#8
Michael Horvath Wrote:Too bad about the lack of MPD support. Most of my models are MPD. Sad

(Off-topic: I should finally get email notification to this topic now).

Yes, lack of MDP support is a huge drawback, one we are quite aware of. We have a ticket open to support it, but it won't happen too soon, as a rewrite is planned hopefully in the near future. Sad

Travis Cobbs Wrote:You can always use a tool like MPDCenter to create a non-MPD version of your model so that you can then use this importer.

Well now, you learn something new every day! Thanks for linking this, I'll add it to the Readme. Wink
Reply
Re: LDR Importer
#9
Just wanted to give a great big Thank You! to Steffen for helping us out with the script (and putting up with my lack of comprehension at times). Steffen has been instrumental in finding apparently fundamental flaws in the script and how we can correct them. In fact, he has reported so many (and we've applied such large patches to fix them), we are almost ready to release a v1.1.5 to ship them all!

So, thank you Steffen for all your ideas, reports, suggestions, and support of LDR Importer. You have done a lot to increase the quality and usuability of the script. Smile
Reply
RE: LDR Importer
#17
just saw this - must have overlooked this for many years 🙃

many thanks, and keep up the good work with the Blender importer!
Reply
Re: LDR Importer
#10
LDR Importer v1.1.5 was released today. Thanks to the Steffen's sharp eye, this intermediate release's change log is only artificially small. The patches that went into the changes were actually quite large. Thanks to Steffen, the entire library layout should be supported, including unofficial, p/48, and the new p/8 folders. In addition, support for high-res and low-res primitives are supported, again thanks to Steffen.

This is an intermediate release because the development team is planning on perform major refactoring on the script in v1.2, and Steffen's reports pushed back those plans (for the better, mind you). As it stands right now, we should begin the process in February. The plan of action is still under development.

You can get the newest release from the topic post or from the Releases page directly.

Enjoy!
Reply
Re: LDR Importer
#11
Doesn't work in Blender v2.70a Sad

When I enable it addons window there is immediately yellov exclamation in triangle beside it and when trying to import my .ldr it says: "File not imported (FileNotFoundError)"

EDIT:
it does not work only for some .ldr's, complaining mostly that it cannot find some .dat files although there are there in "p" directory of LDraw...strange.

+also notices some strange artefacts on "computer" slope bricks where the texture is not OK, it is striked somehow with blackish strikes or "mish-mashed" with black something (hard to name it)
Reply
Re: LDR Importer
#12
I'm running Blender 2.69 still for testing, and rioforce (a contributor) is running 2.70a, and it works in both versions with no errors (at least from our testing). What version are you using?

The FileNotFoundError you are recieving is a very well known bug, one that sadly cannot be fixed until we finish our script rewrite. I have an idea for a temporary way to remedy this, but I have some research to do first. I'll try to update the error message to say what file cannot be found (makes it easier for both users and developers to find errors).

As for the texture, I have recieved a report from virtualrepublic about the script messing up small details. This could be related to that. I'll make a note of this. Thanks!
Reply
Re: LDR Importer
#14
How do you install and use the script? Which files do I copy, and where do I put them?

[edit]

I got an answer to this question here:

http://blender.stackexchange.com/questio...ter-add-on
Reply
Re: LDR Importer
#15
[edit] Disregard.
Reply
RE: LDR Importer
#16
I am finally testing the importer. It seems to work well, except for transparent colors not being transparent. I tried rendering both in Cycles and Yafaray, and the transparent colors in my model are opaque. Is there a way to fix this? Thanks.
Reply
RE: LDR Importer
#18
Okay, I tried importing a very old version of Datsville using this addon. I started on 3:45 am Sunday, and it is still not done on 10:15 pm Monday.

So I give up. Sad
Reply
RE: LDR Importer
#19
Thumbs Up 
Maybe you should try with less data.
Lego isn't just a brand of plastic bricks. It's a lifestyle; and artistic medium.
Reply
RE: LDR Importer
#20
(2018-03-20, 8:23)Jarema Wrote: Maybe you should try with less data.

 I already described doing so.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)
Forum Jump:


Users browsing this thread: 1 Guest(s)