Skip to content

stefanmuller/ldraw2houdini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDraw 2 Houdini

Import LDraw files directly into Houdini

Source individual parts or import entire models with a one-button shelf tool!

render of example scene

Watch YouTube Showcase Video

Features

  • Import individual bricks & entire models
  • Logo on studs
  • LDR, L3B & MPD file support: mpd files contain multiple sub models, referenced by a main model
  • Instancing support: duplicate bricks are automatically packed and the color is read from the point data
  • Imperfections: if importing a model, the bricks are not perfectly stacked/aligned to each other, for a more realistic look and bricks can randomly yellow due to age.
  • Injection points: Options to procedurally add injection marks either on stud or on walls (vintage bricks ~70s and older)
  • Gaps between bricks: bricks can be slightly squashed to get tiny gaps between them
  • Slope support slopes are automatically detected so they can get a grainy texture
  • Bevel and subdivison support: geometry is automagically cleaned up as much as possible and LDraw lines are used to determine edges that need to be beveled to allow proper subdivision
  • Auto caching Every imported part will automatically be cached in LDraw library; Importing times will decrease the more LDraw2Houdini is used.
  • Auto generate textures for prints/stickers for modern cg workflows
  • Auto uvs
  • Material properties: simple config file to define softness, graininess and roughness for individual parts
  • Solaris + Karma example scene contains MaterialX shader showcasing how to create high quality renderings
  • ACES colorspace: LDraw colors are converted to acescg

Requirements

  • Houdini 20
  • SideFX Labs for auto uv feature
  • OCIO ACES colorspace configuration for Houdini

Installation

  1. Download the latest release

  2. Unpack to a directory called ldraw2houdini

  3. Download LDraw parts library - (complete.zip)

  4. Unpack to a directory called ldraw

  5. Register ldraw2houdini.json (separate asset in release). Drop it for example here:

     # Windows
     C:\Users\<username>\Documents\houdiniXX.X\packages
     # Linux
     ~/houdiniXX.X/packages
    
  6. Adjust ldraw2houdini.json if needed.

    • LDRAW2HOUDINI needs to point to the path of this plugin

    • LDRAW_LIB needs to point to the LDraw library

    • Under Windows $HOME points to C:\Users\<username>\Documents

    • Under Linux $HOME is ~/

    • Set LDRAW_CACHE to 1 to enable caching. This will write bgeo files to $LDRAW_LIB/bgeo

            {
            "env": [
                    { "LDRAW2HOUDINI": "$HOME/git/ldraw2houdini" },
                    { "LDRAW_LIB": "$HOME/ldraw" },
                    { "LDRAW_CACHE": 0 }
            ],
            "path": [
                    "${LDRAW2HOUDINI}"
            ]
            }
      
  7. Optional - If you install a new release and want to upgrade your hdas in an existing scene run the Upgrade Brickini HDAs Shelf Tool

  8. Happy ldrawing!

Quickstart Guide

Import a single part

  1. Create a Brickini LDraw Part node in SOP context
  2. Type a cool part number into the Part parameter: 2546p01
  3. Change Material parameter to red
  4. Look at that awesome classic parrot

a parrot in the houdini viewport

Import an entire model

  1. Add the Brickini Shelf to your toolbar
  2. Click LDraw Model
  3. Choose a LDraw model file
  4. Behold the beauty

boutique hotel

Resources

If you like this and want to support me

You can buy me a coffee :) Buy Me a Coffee