Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mattatz/unity-procedural-flower
- Owner: mattatz
- License: mit
- Created: 2017-01-29T15:08:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-30T05:41:06.000Z (almost 8 years ago)
- Last Synced: 2024-10-23T00:05:18.064Z (17 days ago)
- Language: C#
- Size: 12.9 MB
- Stars: 236
- Watchers: 20
- Forks: 43
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - unity-procedural-flower - Procedural flower generator (Generator)
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