Programming C++/ python

April 2015

C++ and OpenGL

I created an L-system using C++ and OpenGL which reacted to changes in weather, such as wind, rain and sun. It grows when it rains; grows in a direction towards the sun (which can be moved by the user to show this further); the wind can blow at varied intensities so that the l-system sways in the breeze! After inputting axioms and rules to make the plant grow, the values can be written then read from a file. The on-screen display shows the fps and hit-count, which is the number of rain drops that collided with the pot, making it grow.

Screen Shot 2015-05-29 at 08.15.53 Screen Shot 2015-05-29 at 08.15.45

April 2014

Scripting with Pymel

I made an l-system using the python library in maya. This can be used to create fractals, terdragons, koch snowflakes and so forth. Additionally you can customise the colour, ass ‘blossom’ (for making trees at the end of a branch) and change scale.

Screen Shot 2015-08-13 at 18.07.40

Python L-system Sierpinski Triangle
Python L-system Sierpinski Triangle

Recursive method of creating trees using python

Screen Shot 2015-08-13 at 19.00.40

Screen Shot 2015-08-13 at 19.40.58

Adjust the leaf colour, branch colour, branch height, recursion depth, R1, R2, R3 are the min/max rotation amounts per branch.


Leave a Reply

Your email address will not be published. Required fields are marked *