Git Product home page Git Product logo

critias-treesystem's Introduction

Critias Tree System

Would you like to see how it looks in a real game? Check out 'The Unwritten Critias', our upcoming game.

alt tag

The Critias tree system is an Unity addition that is used for an, currently in-development, open-world quest named 'The Unwritten Critias'. It was developed due to the poor performance of the Unity's built-in SpeedTree implementation.

Features:

  • Support for 100k+ tress with collisions
  • Painting trees on non-terrains
  • Being able to completely remove the terrain after editing the trees
  • Support for multiple tree types
  • CullingGroup API for cells
  • Instancing support
  • Tillable terrain support
  • Billboard rotation
  • Tree Y rotation
  • Tree wind
  • LOD System
  • Animated SpeedTree style CrossFade
  • Uber-fast billboard system with 400+ FPS at 200k+ trees

! IMPORTANT ! At runtime the managed terain's trees and foliage is turned off, so your terrain's grass will go away. In order to mitigate that I would recommend having two terrains, one for trees and the other for grass. A script, 'TerrainUtility' for that usage has been added.

HOWTO: Long story short, there are two important scripts. 'Treeifier' and 'TreeSystem'. Create an game object and add it these two scripts. The 'Treeifier' script is used for extracting the data required for each drawn tree type and generating the indexed and optimized data at edit-time. The 'TreeSystem' script is used for using the data that was generated at edit-time and rendering it in a very optimal manner.

For more details see the documentation. Is it quite difficult to understand, or you just don't like to read? No probs, just check out the example...

For any extra details, suggestions or questions and plans for the future, feel free to get in touch via the forum!

Forums link: https://forum.unity3d.com/threads/free-critias-speedtree-tree-system.437520/

Asset store link: - pending -

Is the system working great for you? Would you like to also have a detail or grass system in the future? Then consider donating! But there is absolutely no obligation for it, of course! It would just make me a little more motivated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.