Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mattatz/unity-procedural-flower

Procedural flower generator for Unity.
https://github.com/mattatz/unity-procedural-flower

Last synced: 8 days ago
JSON representation

Procedural flower generator for Unity.

Awesome Lists containing this project

README

        

unity-procedural-flower
=====================

Procedural flower generator for Unity.

![Demo](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Demo.png)

## Example

### PFTester in Demo.scene

![Petals](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Petals.gif)

![Height](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Height.gif)

![Leaves](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Leaves.gif)

### Garden.scene

ProceduralFlower can animate.

![Garden](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Garden.gif)

## Usage

### PFShape

ProceduralFlower needs 3 PFShape(ScriptableObject) for petal and leaf shapes.

PFShape has control points and you can design its outline by the editor.

![Editor](https://raw.githubusercontent.com/mattatz/unity-procedural-flower/master/Captures/Editor.gif)

### PFCombine

PFCombine enables to combine meshes of ProceduralFlower into one mesh.

```cs

public ProceduralFlower flower;
void Start () {
var mesh = PFCombine.Combine(flower);
GetComponent().sharedMesh = mesh;
}

```

## Sources

- The Algorithmic Beauty of Plants - http://algorithmicbotany.org/papers/#abop