Giter Site home page Giter Site logo

redsparroweu / importldraw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tobylobster/importldraw

0.0 0.0 0.0 60.2 MB

A Blender plug-in for importing LDraw file format Lego models and parts.

License: GNU General Public License v2.0

Python 100.00%

importldraw's Introduction

Import LDraw

A Blender™ plug-in for importing LDraw™ file format models and parts.

Tower Bridge

Purpose

Import LDraw imports LEGO® models into Blender.

It supports .mpd, .ldr, .l3b, and .dat file formats.

It's intended to be accurate, compatible, and fast (in that order of priority).

Features

  • Available for both Blender 2.79 and Blender 2.81
  • Mac and Windows supported (and hopefully Linux, but this is currently untested).
  • Bricksmith compatible.
  • MPD file compatible.
  • LeoCAD groups and cameras (both perspective and orthographic) supported.
  • LSynth bendable parts supported (synthesized models).
  • Cycles and Blender Render engines supported. It renders either engine from a single scene.
  • Import photorealistic look, or Instructions look.
  • Physically Based Realistic materials - standard brick material, transparent, rubber, chrome, metal, pearlescent, glow-in-the-dark, glitter and speckle.
  • Principled Shader supported Uses Blender's 'Principled Shader' where available for optimal look (but still works well when unavailable).
  • Accurate colour handling. Correct colour space management is used so that e.g. black parts look black.
  • Direct colours supported.
  • Back face culling - fully parses all BFC information, for accurate normals.
  • Linked duplicates - Parts of the same type and colour can share the same mesh.
  • Linked studs - studs can also share the same mesh.
  • Studs can include the LEGO logo on them, adding extra geometry.
  • Gaps between bricks - Optionally adds a small space between each brick, as in real life.
  • Smart face smoothing - Uses Edge-Split Modifier and Sharp Edges derived from Ldraw lines, for smooth curved surfaces and sharp corners.
  • Concave walls - Optionally look as if each brick has very slightly concave walls (with the photorealistic renderer), which affects the look of light reflections.
  • Light bricks - Bricks that emit light are supported.
  • Fast - even large models can be imported in seconds.

Ghostbusters

Installation and usage

Installing the add-in

  • Download the latest version from the Releases page
  • Open Blender
  • If you are in Blender 2.79 or lower, choose from the menu: File > User Preferences
  • If you are in Blender 2.80 or later, choose from the menu: Edit > Preferences
  • Click the Add-ons tab
  • Click the Install from file... button (Blender 2.79) or Install... button (Blender 2.81)
  • Navigate to the zip file you downloaded and select it
  • Find Import LDraw in the list of Add-ons (search for LDraw if necessary)
  • Tick the check mark next to it to activate the add-on.
  • Click the Save User Settings button (Blender 2.79) or Save Preferences button (Blender 2.81) so that it will still be active next time you launch Blender.

Setting the LDraw Parts Library directory

  • Download the latest complete LDraw Parts Library and unzip it to a directory e.g. called 'ldraw'.
  • OPTIONAL: Download the unofficial parts and unzip it to sub-directory 'ldraw/unofficial/'
  • From the Blender menu click: File > Import > LDraw (.mpd/.ldr/.l3b/.dat).
  • In the bottom left of Blender's window, there's a panel of Import Options.
  • The first option is the LDraw Parts Library directory. Type the full filepath to the 'ldraw' directory you unzipped to.
  • To save that directory and try it out, choose a file to import.

Tugboat

History

This plug-in is by Toby Nelson ([email protected]) and was initially written in May 2016.

It was inspired by and initially based on code from LDR-Importer but has since been completely rewritten.

Marina Bay Sands

License

Import LDraw is licensed under the GPLv2 or any later version.

Thanks

Thanks to BertVanRaemdonck for the 'concave walls' feature, and for the useful feedback and suggestions.

External References

Blender logo

Blender™ is the free and open source 3D creation suite.

LDraw logo

LDraw™ is an open standard for LEGO CAD programs that allow the user to create virtual LEGO models and scenes. You can use it to document models you have physically built, create building instructions just like LEGO, render 3D photo realistic images of your virtual models and even make animations. The possibilities are endless. Unlike real LEGO bricks where you are limited by the number of parts and colors, in LDraw nothing is impossible.

LDraw™ is a trademark owned and licensed by the Estate of James Jessiman. This plug-in is not developed or endorsed by the creators of The LDraw System of Tools.

Bricksmith logo

Bricksmith allows you to create virtual instructions for your Lego creations on your Mac.

LSynth example

LSynth is a program that synthesizes bendable parts for LDraw files.

LEGO logo

LEGO® is a registered trademark of the Lego Group

importldraw's People

Contributors

tobylobster avatar cuddlyogre avatar bertvanraemdonck avatar ali1234 avatar bskaggs avatar acui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.