Skip to content
/ LDD Public
forked from sttng/LDD

Code and scripts for LDD and Renderman

License

Notifications You must be signed in to change notification settings

m2mmbp/LDD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lego Digital Designer related scripts

The Python scripts have been tested to work on Python 2.7.10 on macOS 10.14 Mojave, Renderman 22.3, 22.4, 22.5, 22.6, 23.0, 23.1, 23.2

pyldd2obj

pyldd2obj.py developed by jonnysp (https://github.com/jonnysp) will read in a Lego Digital Designer .lxf scene file and construct a corresponding Alias|Waveform .obj and .mtl scene from it.

LifToObj

LifToObj.py uses LIFExtractor.py from JrMasterModelBuilder (https://github.com/JrMasterModelBuilder/LIF-Extractor) to extract the Lego Digital Designer LIF library first and then converts the LDD .g geometry files to Alias|Waveform .obj files.

ObjToRib2

ObjToRib2.py will read in a Alias|Waveform .obj file, construct geometry from it and write out a Renderman .rib file of it. It is an improved version of ObjToRib with support for groups.

LxfToRib

LxfToRib.py will read in a Lego Digital Designer .lxf scene file and construct a Renderman .rib file of the scene by using BrickReader.py and ObjToRib2.py to convert the bricks of the scenes (from .g to .obj and finally to .rib) and use the relevant scene information to place the bricks accordingly (rotation, translation).

prman commands

export RMANTREE=/Applications/Pixar/RenderManProServer-23.2/
export PATH="$PATH:$RMANTREE/bin"

prman -d it -t:-2 ribfile.rib

oslc Primvar.osl

USD commands

export PYTHONPATH=$PYTHONPATH:USD_INSTALL_ROOT/lib/python

Checkpointing

prman -checkpoint 2m,20m foo.rib

This tells prman to save a checkpoint file at every two minutes and stop rendering at 20 minutes. If you want to resume a render:

prman -recover 1 foo.rib

More info in the docs:

https://rmanwiki.pixar.com/display/REN22/Checkpointing+and+Recovery

Useful links

Lego plastic materials

About

Code and scripts for LDD and Renderman

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 86.5%
  • Python 13.5%