Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jarikomppa/proctree
Procedural tree mesh generator (and editor)
https://github.com/jarikomppa/proctree
Last synced: 3 months ago
JSON representation
Procedural tree mesh generator (and editor)
- Host: GitHub
- URL: https://github.com/jarikomppa/proctree
- Owner: jarikomppa
- Created: 2015-01-14T19:12:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-18T14:54:33.000Z (about 9 years ago)
- Last Synced: 2024-05-02T20:14:01.901Z (6 months ago)
- Language: C
- Size: 2.74 MB
- Stars: 190
- Watchers: 20
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- AwesomeCppGameDev - proctree
README
# ProcTree
This is a liberally licensed procedural tree generator in c++, along with an editor HappyTree.
[![Quick walkthrough of 20150123 version](http://img.youtube.com/vi/XLBvkVMxdS0/0.jpg) (youtube video)](http://www.youtube.com/watch?v=XLBvkVMxdS0)
The procedural generation itself is a port from https://github.com/supereggbert/proctree.js/
see http://snappytree.com for an online demonstration of the original proctree.js (with webgl). The c++ port is several orders of magnitude faster than the original, and also fixes the UV mapping.## Binaries
Download win32 binaries at:
http://iki.fi/sol/zip/happytree_20150123.zipAdditional (not mandatory) 400 megs of trunk / twig textures
http://iki.fi/sol/zip/happytree_20150118_tex.zipIf you opt to download the additional textures, just unzip both zips in the same place. HappyTree will work without the additional textures (it'll actually be faster), so if you're just trying it out, I recommend NOT downloading the additional stuff.
All of the textures are CC0 / public domain material (primarily, if not completely, by nobiax.deviantart.com). The additional textures do let you make more varieties of trees though; the base package only comes with one trunk and twig texture.
The happytree editor requires OpenGL 3.3, but seriously, who doesn't have that?
Usage should be pretty intuitive, you can rotate the camera by dragging and zoom in and out with the mouse wheel.
## Motivation
I wanted a tree generator I can use to generate trees at runtime in C.
## License
The generator itself is licensed under 3-clause BSD license (personally I'd have opted
for something even more liberal, but that's what the original proctree.js used). See
the source file for the actual license.The editor's sources and support libraries are under variety of bsd and zlib liceses.
See legal_notes.txt in the happytree directory for details.## Dependencies
The generator itself has no dependencies, and was designed to be easily plugged into whatever.
The editor (HappyTree) has a bunch of dependencies:
- proctree (naturally)
- GLee opengl extension library (included)
- stb_image image loading library (included)
- My modified opengl framework (included)
- Ocornut's ImGui library (included)
- SDL 1.2 cross-platform library
- glm gl math library
## NotesThe ported proctree.cpp does not generate exactly the same output as the original proctree.js.
This may be partially due to the different math accuracy used, but it's possible that I
managed to slip a bug or two into the algorithm. (Feel free to debug..)## Anything else?
Feel free to contact me, http://iki.fi/sol/