Palladio is a plugin for SideFX Houdini. It provides operator nodes which enable the execution of CityEngine ‘rules’ within Houdini networks. Therefore, a 3D environment artist does not have to leave their familiar Houdini toolset anymore to make use of CityEngine’s procedural modeling power. Complicated export-import pipelines are no longer needed, which also means that the procedural building models do not need to be “baked” anymore. The buildings stay procedural during the entire modeling workflow (optionally even at render time). Consequently, the 3D environment artist can change the height, style and appearance of buildings easily with a parametric interface at any point during production.
Palladio requires so-called rule packages (RPK) as input, which are authored in CityEngine. An RPK includes assets and a CGA rule file which encodes an architectural style. Comprehensive RPK examples are available below and can be used “out-of-the-box” in Palladio.
Palladio is well suited for managing the procedural generation of architectural 3D content in digital sets. However, Palladio is restricted to the procedural generation of single buildings / objects. Palladio does not include the city layouting and street network editing tools of CityEngine i.e. the rich CityEngine toolset to design a city from scratch (or based on geographic data) is still needed.
-
Download the latest Palladio binary from the release page.
-
Extract the archive into your
<home>\Documents\houdiniX.Y
(Windows) or<home>/houdiniX.Y
(Linux) directory, so that the files end up in the correspondingconfig
,dso
andpackages
sub-directories. -
Start Houdini and you will find the new
pldAssign
andpldGenerate
nodes in the OBJ operator menu undercustom
. -
In Houdini, create a quad as initial shape by setting up a
grid
node with 2 cols/rows. -
Open the geometry node in the network editor and connect the mesh output to a new
pldAssign
node. -
Create a new
pldGenerate
node and connect the input to the ouput of the previouspldAssign
node. -
Make the
pldGenerate
node the active render node. -
Download the Parthenon rule package. Or alternatively, in CityEngine, download Tutorial 9 and export the "Parthenon" CGA rule to a RPK (see Creating a Rule Package).
-
Select the
pldAssign
node and set theRule Package
parameter in the parameter editor to the path of the previously exported RPK. -
The model should generate and rule attributes should now be editable inside the parameter editor.
External documentation:
- CityEngine Tutorials
- CityEngine CGA Reference
- CityEngine Manual
- CityEngine SDK API Reference
- Houdini HDK Reference
Please refer to the release notes for the supported CityEngine version.
- Windows 10 or 11 (64bit)
- RedHat Enterprise Linux 8 or 9 and compatible (CentOS, Alma Linux, Rocky Linux, ...)
- Houdini 19.0, 19.5 or 20.0
- See release notes for compatible CityEngine versions and requirements for commercial work.
- Download the latest Palladio binary from the release page.
- Extract the archive into your
<home>\Documents\houdiniX.Y
(Windows) or<home>/houdiniX.Y
(Linux) directory, so that the files end up in theconfig
,dso
andpackages
sub-directories. - Start Houdini and you will find the new
pldAssign
andpldGenerate
nodes in the OBJ operator menu undercustom
.
Note: it is NOT necessary to modify the system PATH
environment variable.
- Build Palladio
- The
install
step should automatically copy all required files into your<home>\Documents\houdiniX.Y
(Windows) or<home>/houdiniX.Y
(Linux) directory and Palladio is ready to run.
Palladio adds the two new geometry (SOP) nodes pldAssign
and pldGenerate
to Houdini in the 'Custom' category. These can be created inside of any geometry object in the Network Editor
.
The pldAssign
node is designed to create the required metadata to the input geometry (as primitive attributes) such that the pldGenerate
operator can procedurally generate the geometry.
When selected, a RPK (rule package), seed and corresponding CGA attributes can directly be set in the parameter editor.
When evaluated, the pldAssign
node attaches the required metadata to the geometry (in the form of primitive attributes) and updates the CGA attributes in the parameter editor accordingly.
The primitive attributes can also be overwritten before the geometry is passed to a pldGenerate
node (i.e using an Attribute Create
node).
The pldGenerate
node is used to generate the final geometry. It takes an initial shape geometry with metadata as input (i.e. the output of a pldAssign
node) and executes the CityEngine rule to generate a 3D model. In the parameter editor we have the options to:
- Re-emit modified CGA attributes (off by default)
- Emit material attributes (off by default)
- Emit CGA reports (off by default)
- Triangulate polygons with holes (on by default). If disabled, Palladio will create "holes with bridges" similar to the Hole geometry node.
-
In CityEngine, create the following rule file and share it as a rule package (RPK) to disk somewhere (or download one of the provided examples and share it as a RPK (see Creating a Rule Package)):
attr height = 1 @StartRule Init --> extrude(height)
(Instead you can also directly use this RPK)
-
In Houdini, in a new scene, add a
grid
node. -
Enter the
grid
node, set theRows
andColumns
parameters to two and add the two Palladio nodespldAssign
andpldGenerate
. Connect them like this: -
Select the
pldAssign
node and set theRule Package
parameter to the path of the previously exported RPK in the parameter editor. -
Make the
pldGenerate
node the active render node, this will trigger a "cooking" of the assign and generate nodes and execute the CityEngine Rule. You should now see a cuboid:
In the previous section we've used the default value for the height
attribute. Let's use Houdini tools to modify the rule attribute prior to execution.
-
Make sure the
pldAssign
is evaluated by making the connectedpldGenerate
the active render node -
Edit the rule attribute in the parameter editor by changing the value in the generated handle (a rule attribute can be reset by calling
revert to Defaults
or pressingctrl + MMB
on the rule name)
-
Add an
AttributeCreate
node betweenpldAssign
andpldGenerate
. -
Set the attribute name to
height
and theClass
toPrimitive
. The extrusion vanishes because the default value is 0. -
Increase the value for
height
to see an actual extrusion:
Please note the steps for the general case:
- See the CGA file (or CityEngine) for the available attributes and their data types (number, string, boolean).
- In the
AttributeCreate
node, setname
to the name of the CGA attribute (make sure to checkEncode Invalid Attribute Names
). - Set
class
toPrimitive
. - Set
type
toFloat
for CGA number attributes,String
for CGA strings andInteger
with 8 bit precision for CGA booleans.
In this section, we are going to showcase how we can use multiple pldAssign
nodes with a single pldGenerate
node.
-
Duplicate the
grid
andpldAssign
nodes. -
Set the Center of the second
grid
node to (15, 0, 0). -
Add a new
Attribute Create
node between the newgrid
andpldAssign
nodes. -
Set the attribute name to "primCls", change the Class to primitive and change its value to 1. This value needs to be set such that the
pldGenerate
node later knows which initial faces should be generated together or separately. -
Merge the output of both assign nodes with a
merge
node and feed the output to the previous generate node like this: -
You can now change the rule files and attributes of both
pldAssign
nodes and it should generate them correctly
In this section, we are going to connect a material attribute generated by pldGenerate
with a Mantra shader (the same mechanism can also be used for Viewport materials).
-
Download the ready-made Houdini Digital Asset with a CityEngine Material for Mantra.
-
Import the HDA to your current project (
File
>Import
>Houdini Digital Asset
) and click install. -
Select the
pldGenerate
node and check theEmit material attributes
check box. Open the spreadsheet to observe a number of material primitive attributes now being emitted bypldGenerate
. -
Create a new PalladioCityEngineMaterial node and connect it to the
pldGenerate
node. Make it the active render node. -
Hit Mantra render and you should see a red box in the render view.
-
Extend the rule from the previous section with a
color
statement and re-export it:attr height = 1 @StartRule Init --> color(1,0,0) extrude(height)
(Instead you can also directly use this RPK)
-
In Houdini, select the
pldGenerate
node and check theEmit material attributes
check box. Open the spreadsheet to observe a number of material primitive attributes now being emitted bypldGenerate
. -
Add a
Material
node and connect it to thepldGenerate
node. Make it the active render node: -
In the
Material Palette
, create a newPrincipled Shader
instance (by dragging it from the navigator to the\mat
window) and rename it toCityEngineShader
: -
Enter the
CityEngineShader
node and connect aParameter
node to theSurface/basecolor
input: -
Set the name of the
Parameter
node todiffuseColor
and also set the type toColor
. This name will match the primitive attribute emitted bypldGenerate
. -
Back in the network of the
grid
node, select theMaterial
node and select/mat/CityEngineShader
for theMaterial
parameter. -
Hit Mantra render and you should see a red box in the render view.
This short CityEngine guide explains how to include the random seed and start rule assignments when exporting input geometry to Alembic.
-
Run the following Python script on your scene objects to assign the random seed as object attributes:
from scripting import * ce = CE() shapes = ce.getObjectsFrom(ce.scene(), ce.isShape) for s in shapes: seed = ce.getAttribute(s, "/ce/rule/randomSeed") ce.setAttribute(s, "seed", seed)
-
Assign this CGA script to the desired shapes to report out
seed
andrule
(the start rule):version "2019.0" attr seed = 0 Lot --> R LotInner --> R Street --> R Sidewalk --> R Crossing --> R OpenSpace --> R Joint --> R R --> report("seed", seed) report("rule", initialShape.startRule)
The
seed
rule attribute should have been connected to the previously assignedseed
object attribute. -
Export the shapes to Alembic, the two report values are now attached as user properties to the meshes.
It can be useful to put RPKs into an rpk
sub-directory of your current Houdini project. If you use $HIP
to refer to the RPK in the pldAssign node, your Houdini project will stay relocatable.
CITYENGINE_LOG_LEVEL
: controls the global (minimal) log level for all assign and generate nodes. Valid values are "debug", "info", "warning", "error", "fatal". The default is "error". Additionally, the log level can be controlled for eachpldAssign
andpldGenerate
instance.HOUDINI_DSO_ERROR
: useful to debug loading issues, see https://www.sidefx.com/docs/houdini/ref/env
- Windows 10 or 11 (64bit)
- RedHat Enterprise Linux 8 or 9 and compatible (CentOS, Alma Linux, Rocky Linux, ...)
- cmake 3.13 or later
- conan 1.20 or later
- Linux: GCC 11.2 or later
- Windows: Visual Studio 2022 (MSVC 14.37) or later
- Installation of Houdini 19.0, 19.5 or 20.0 (see https://sidefx.com/download)
The following will be automatically fetched via the bootstrap steps below:
- CityEngine SDK
- SideFX Houdini HDK
Default is Houdini 20.0. See below how to build for different Houdini versions.
The below steps will populate your local Conan repository with dependencies for the Palladio build system. You only need to work through this section once (or if you want to upgrade one of the dependencies).
- Checkout Palladio:
git clone git@github.com:esri/palladio.git && cd palladio
- Download CityEngine SDK:
conan create -pr conan/profiles/linux-gcc112 conan/cesdk cesdk/3.2.10211@esri-rd-zurich/stable
- Extract and package the HDK from your local Houdini 20.0 installation (adjust Z to your Houdini version):
conan create -pr conan/profiles/linux-gcc112 conan/houdini houdini/20.0.Z@sidefx/stable
(Note: use the option-e HOUDINI_INSTALL=/path/to/your/hfs20.0.Z
, if Houdini is not installed at the standard location, e.g. at/opt/hfs20.0.Z
for Linux).
- Checkout Palladio:
git clone git@github.com:esri/palladio.git
- Open a Windows command shell and
cd
to the Palladio git repository - Download CityEngine SDK:
conan create -pr conan/profiles/windows-v143 conan/cesdk cesdk/3.2.10211@esri-rd-zurich/stable
- Extract and package the HDK from your local Houdini installation (adjust Z to your Houdini version):
conan create -pr conan/profiles/windows-v143 conan/houdini houdini/20.0.Z@sidefx/stable
(Note: use the option-e HOUDINI_INSTALL=C:/path/to/your/houdini/installation
, if Houdini is not installed at the standard location for Windows).
Note: to build for another Houdini version, add the cmake argument -DPLD_HOUDINI_VERSION=X.Y
.
- Ensure GCC 11.2 is active.
cd
into your Palladio git repositorymkdir -p build/release && cd build/release
cmake -DCMAKE_BUILD_TYPE=Release ../../src
make install
(the plugin will be installed into your~/houdini20.0/dso
directory)
- Open a MSVC 14.37 x64 shell (Visual Studio 2022) and
cd
to the Palladio git repository mkdir build/release
cd build/release
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ../../src
nmake install
(the plugin will be installed into your%USERPROFILE%/Documents/houdini20.0/dso
directory)
For the best debugging UX, please use the build type RelWithDebInfo
when running CMake (or in Visual Studio).
The Debug
mode does not work as it will result in incompatible ABI between Houdini, PRT and the Palladio client code.
See Quick Start how to launch Houdini with Palladio.
- Ensure GCC 11.2 is active.
cd
into your Palladio git repositorymkdir -p build/relTest && cd build/relTest
cmake -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src
make palladio_test
- Run
bin/palladio_test
- Open a MSVC 14.37 x64 shell (Visual Studio 2022) and
cd
to the Palladio git repository mkdir build/relTest
cd build/relTest
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src
nmake palladio_test
- Run
bin\palladio_test
- Compatible CityEngine versions: 2024.0 or older
- For commercial work, a license for CityEngine 2022.0 or later is required.
- Support for Houdini 20.0
- Support for Houdini 18.5
- Updated Procedural Runtime (PRT) to 3.2.10211 (corresponds to CityEngine 2024.0)
- Compatible CityEngine versions: 2023.0 or older
- For commercial work, a license for CityEngine 2022.0 or later is required.
- Option to disable default triangulation on polygons with holes
- Updated Procedural Runtime (PRT) to 3.0.8905 (corresponds to CityEngine 2023.0)
- Fixed lookup of textures within USDZ assets in RPKs
Required CityEngine version: 2022.1 or older
- Changed indexing of generated meshes: all vertex attributes now have separate indices. This improves mesh connectivity and sharing of points.
- Fixed rule attribute overrides for multiple initial shapes
- Fixed two bugs in the "FileSystem Helper" when reading textures from RPKs (fixes rendering with Mantra)
- Updated Procedural Runtime (PRT) to 2.7.8538 (corresponds to CityEngine 2022.1)
- Turned off optimization for config
RelWithDebInfo
to have better debugger experience - Added workaround for Conan/CMake and the Visual Studio CMake generator
- Added tests to generated Visual Studio solution. Tests can now be started and debugged in Visual Studio by setting the test project as startup project.
- Updated cmake-conan integration to 0.18.1
- Updated developer docs
Required CityEngine version: 2022.0 or older
- Support for Houdini 19 and 19.5
- Rule attribute parameters to directly edit them in the parameter editor of the
pldAssign
node- Rule attribute handles dynamically update when the
pldAssign
node is evaluated - Rule attribute values can be reset to the default value
- CGA annotations will create different UI widgets, for example a color picker or file browser
- Rule attribute handles dynamically update when the
- Seed parameter to change the seed value in the
pldAssign
node - Icon to Palladio nodes
- Updated Procedural Runtime (PRT) to 2.6.8300 (corresponds to CityEngine 2022.0)
- Rule attribute names can now be encoded using Houdini's string encoding
- Fixed issues with rule package paths containing white spaces
- Fixed loading of rule packages embedded in HDAs (Houdini Digital Assets)
- Updated and restructured user manual
- Updated compilers (now using C++ 17)
- Linux version is now compiled with GCC 9.3 by default
- Updated test framework and build system
- Cleaned up CMake files
- Support for Houdini 18.0 and older
- No functional changes compared to Beta 2.
- Updated doc section for "overriding rule attributes".
- General doc cleanup.
- Update default CityEngine SDK to 2.3 (CityEngine 2020.1).
- Added support for Houdini 18.5.
- Add error message to assign node in case of e.g. invalid rule package (#159).
- No functional changes compared to Beta 1.
- Update default CityEngine SDK to 2.2 (CityEngine 2020.0) (#146).
- Added support for CGA array attributes (#146).
- Added per-node control of log level (#30).
- At startup, print Palladio version on console if log level is "info" or lower.
- Development
- On Windows, building Palladio now requires MSVC 14.2 (#146).
- Various code cleanups and adoption of clang-format rules from Serlio.
- Pruned releasing for Houdini 17.0 (you can still build yourself for 17.0).
- Relaxed Python/Conan version requirements.
- No functional changes compared to Beta 1
- Added support for Houdini 18 and removed Houdini 16 (#143).
- Updated built artifacts to latest Houdini versions (#139).
- Filter unnecessary components of PRT from release (#141).
- Fixed pipeline to not install files outside of the install directory (#138).
- Improved setting start rule from primitive attribute (i.e. do not prepend style to start rule if it is already present).
- Improved installation experience (avoid setting OS PATH on Windows).
- Update default CityEngine SDK version to 2.1 (CityEngine 2019.1).
- Only pass non-default rule attribute values to PRT. This fixes setting inter-dependent rule attributes.
- Optimized cooking time of pldGenerate (e.g. Parthenon example from CityEngine tutorial 9 cooks 7x faster)
- Added "tips and tricks" section with guide how to export Alembics from CityEngine for Palladio
- Fixed broken texture coordinates in the generated Houdini geometry in case not all PRT meshes had any (#118).
- Added support for texture coordinates on incoming initial shapes (#112).
- Assign SOP: do not overwrite main attributes like pldStartRule if they are already present on the incoming geometry (#111).
- Assign SOP: fixed rule attribute default value evaluation (each primitive can have different main attributes) (#111).
- Fixed support for PolygonSoup primitives as initial shapes (#110).
- Added support for PRT 2
- Removed technical requirement for CityEngine license.
- Added support for new PRT PBR material attributes.
- Various build system improvements (supports both PRT 1.x and 2.x).
- No functional change to beta 2.
- Fixed crash in pldAssign node if no RPK is set.
- Added support for Rule Packages (RPK) embedded in Houdini Digital Assets (HDA)
- Added support for Houdini 17.5
- Always use UV set 0 as a fallback (mimics CityEngine behavior).
- Internal cleanup: Simplified UV coordinate transport between PRT and Palladio.
- Generated material primitive attributes now use the "generic names" instead of the "CGA names" (see PRT reference for file prtx/Material.h for details).
- Fixed wrong texture paths for assets that originated in another CityEngine project (e.g. ESRI.lib) at RPK creation time.
- Added a workaround to prevent a crash in PRT 1.9 when using an invalid CGB path in the assign node.
- Update build system to support both Houdini 16.5 and 17.0.
- For Houdini 17, use bundled boost libraries.
- Build System changes to improve continuous integration support (Jenkins).
- Updated required cmake version to 3.13 (preparation for Houdini 17 support).
- Added pipenv script for easier access to conan.
- Reduced Houdini package size.
- Support for inter-shape occlusion queries (#33).
- Fixed asset loading issues in Windows build (#88).
- Added support for Windows (#85).
- Raised minimal Houdini version to 16.5.x (#85).
- Added support to reload RPKs (#58).
- Renamed project to "Palladio" (#68).
- Updated documentation (#38).
- Published demo scene (#74).
- Add support for writing out primitive attributes from rule/generic CGA attributes (#40).
- Removed random seed parameter UI, read it from incoming primitive attributes instead. Added centroid-based random seed as fallback.
- Correctly update assign node parameters from RPK (#62).
- Make primitive group creation optional and based on primitive classifier (#67).
- Add support for CityEngine network licensing (#41).
- Fixed crash when handling invalid RPK paths.
- Remove style prefix on primitive attribute names.
- Added support for multiple UV sets (#36).
- Added support for CGA reports (#39).
- Properly use Houdini input mesh connectivity (make CGA operation "isClosedSurface" work correctly) (#49).
- Refactored assign node to correctly use incoming geometry to evaluate default rule attribute values.
- Proper support for UVs and material attributes.
- Introduced Conan to handle 3rd party packages in the build system (Houdini, CityEngine).
- Updated to CityEngine SDK 2017.1 (CE SDK 1.9).
- Split plugin into two SOPs ("assign" and "generate") to support proper evaluation of rule attribute default values.
- Abandoned rule param UI, purely rely on Houdini attribute tools (e.g. "AttributeCreate") to create/modify rule attributes (= no need for complicated UI on assign node).
- Updated to Houdini 16 and CityEngine 2017.
- Dropped Windows/macOS support temporarily.
- Support for rule attribute UI via Houdini multi-parameter.
- Experimental support for Windows/macOS.
- Updated to Houdini 15 and CityEngine 2016.
- Working geometry generation from CityEngine rule packages
- Support to read rule attributes from primitive attributes
- Implemented rule execution as single surface operator (SOP).
- Updated to Houdini 13 and CityEngine 2015.
- Early experiments with Houdini 12 and CityEngine 2014.
Palladio is maintained as an open-source project by Matthias Buehler (vrbn studios) and Simon Haegler (Esri R&D Zurich). Matthias is focusing on UX/UI topics and use-cases, while Simon is focusing on the implementation and procedural modelling technology.
Our goal is to bring as many Houdini and CityEngine users and developers on board as possible. Anyone is invited to submit issues and/or to fork and contribute to this project.
Join us on Slack at palladio-houdini-ce.slack.com!
Our thanks also go to the fine folks at Esri R&D Zurich and vrbn studios which provided valuable comments and feedback.
Palladio has been invented by Matthias Buehler and Simon Haegler in early 2015. It started out as a research project at Esri R&D Zurich to get to a tighter integration of CityEngine and Houdini than just via file-based import/export of assets. Early results were promising, so we slowly cooked the project to v1.0 in our spare time. In December 2017, we decided to open-source Palladio with an Apache 2.0 license.
Palladio is free for personal, educational, and non-commercial use. Commercial use requires at least one commercial license of the latest CityEngine version installed in the organization. Redistribution or web service offerings are not allowed unless expressly permitted.
Palladio is under the same license as the included CityEngine SDK. An exception is the Palladio source code (without CityEngine SDK, binaries, or object code), which is licensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.
All content in the "Examples" directory/section is licensed under the APACHE 2.0 license as well.
The "Favela" example data is copyrighted by vrbn studios. Please contact vrbn_studios for commercial licensing options.
For questions or enquiries, please contact the Esri CityEngine team (cityengine-info@esri.com).