The Abridged Version
For my 3rd year Procedural Methods module, I used a Lindenmayer System (L-System) to procedurally generate cacti loosely modelled after the iconic saguaro cactus. My method was as follows:
- Code the L-System (axiom, grammar and reproduction rules.)
- Write code to translate the L-System into 3D geometry.
- Evaluate the results (partly from an artistic perspective.)
- Tweak the L-System (i.e. the axiom and reproduction rules) to modify the resulting geometry.
- Repeat steps 3 and 4 until I got a result I deemed acceptable.
It wasn’t always easy to predict the effects small changes to the L-System would have on the output geometry, and the whole process felt quite unintuitive. This left me wondering how the process could be improved, which lead me to Inverse Procedural Modelling.
Inverse Procedural Modelling (IPM) is the practice of writing an application that:
1. Receives some form of input data
2. Analyses that data
3. Creates an algorithmic representation of that data
4. Generalises that algorithm
…to procedurally generate new data/objects that are in the same vein as the initial input data. Potentially, this process could allow an artist to hand-model a single tree and then generate more members of that tree’s species at lightning speed.
Across all the IPM research papers I read, I noticed that a lot of development time and processing time is spent on analysing the input data. This typically branches over into computer vision, artificial intelligence, or complex multi-dimensional spatial analysis.
For my research, I investigated a simpler approach to tree IPM by rigging the input tree, as if for animation, and using that skeleton as the focal point for the IPM algorithm. The questions my project sought to answer were as follows:
- Is skeletal analysis a valid approach to Inverse Procedural Tree Modelling?
- How does the application perform when compared to other related applications?
- How does the inclusion of the skeleton affect the speed with which the application can be developed?
Is it a valid approach?
To answer that first question, I set out to prove that the algorithm could both re-create the structure of the input tree, and produce sensible randomised variations of the input tree.

Pictured above is the algorithm’s direct recreation of an input tree, modelled using the Sapling ad-on for Blender. The number of branches and overall structure is preserved, making this a positive result in favour of my hypothesis. You may also have noticed that the branches curve upwards in the input tree, and couter clockwise in the output. I believe this is a result of the difference in coordinate systems between Blender and Unreal Engine.
You’ll also notice that there are gaps in the trunk of the generated model on the left. I believe this is a problem with how I’m scaling the primitives used to construct the models, and not with the underlying principle.

It’s difficult to determine how “tree-like” a model is, and probably impossible to do so objectively. So, dear reader, I’ll let you be the judge as to how much the structures on the right look tree-shaped, and how much they resemble the input tree.
Personally, I’m quite happy with this result as I believe it supports my hypothesis, although it must be said that the randomisation is very simple and mostly a proof of concept. It’s quite unreliable as a result, and it works on a per-branch-segement basis and doesn’t currently capture the overall shape of branch structures. Going forward, I believe the incorporation of more sophisticated statistical algorithms, more comprehensive data clustering and context-aware branch generation will drastically imrprove this application.
How does the performance compare?
I tested the applications performance for varying numbers of output models. From the graph below, I found that the application is of order O(N) with regard to the number of output models generated.

I then measured the application’s performance as the complexity of the input trees varies (complexity, in this case, being proportional to the number of bones in the input skeleton.) From the graph below, I determined the application’s performance to be of order O(N^2).
How did it affect development time?
It’s difficult to know for certain how development time for this project compares to other similar projects, as I don’t have access to the full development histories of the key papers that I refferenced in this projects development. However, those key papers and their accompanying applications were developed by teams of researchers at Post-Graduate level. Considering, then, how far this approach was able to take one undergad student, I believe that the skeleton-based approach does show a positive affect on development time.
How might the application be improved?
I’ve touched on some of these points already, so I’ll stick with a bullet pointed list.
- The scaling and local rotation bugs need to be fixed.
- The data clustering could be improved with additional clusters, multidimensional clustering or fuzzy clustering.
- The creation of new branches should be made context sensetive.
- The output trees need fully-fledged procedural meshes that re-create the topology of the input tree rather than simple primitives. I beleive this could be done by exploiting the fact that when a model is rigged, each vertex is bound to a specific bone.
- Procedural texturing would improve the appearance of the output models drastically. Alternatively, perhaps IPM would be a suitable approach to handle the texturing; either in the form of a seperate algorithm or oncorporated into a single larger IPM tree algorithm.
- Additional tools could be addded to give the user greater control over the generated models.
- The cherry on top would be a system to export select generated models for use in other applications. Ideally, a user would be able to choose wether to export the models with skeletons or without.
What other applications could this approach have?
The most obvious alternative use of the skeletal analysis approach to IPM would be to create procedural people or animals. In all honesty, while there may be some potential in this area, there would be a lot of extra work and fine-tuning required to faithfully generalise an input without the results looking too Eldritch. I suspect this last step would be overkill for most games, but it may warrant exploration for the purposes of simulations, or games where procedurally generated content is a core feature.