SpeedTree
    Show / Hide Table of Contents

    SpeedForest files (.instances files)

    SpeedForest is an internal population tool used by the SpeedTree development team. It was used to populate the .stsdk instances in the reference application example forest.

    It uses the .instances file extension and a very simple file format. It's text-based and each line represents a single instance. The format for a single line is:

    <pos.x> <pos.y> <pos.z> <up.x> <up.y> <up.z> <right.x> <right.y> <right.z> <scalar>
    

    The instance's normalized orientation vectors are "up" and "right".

    Here's an example .instances file with three instances:

    4691 3426 53 0 0 1 0.442758 0.896641 0 2.5
    4592 3465 63 0 0 1 -0.850994 -0.525175 0 3.2
    4505 3403 59 0 0 1 0.847678 -0.530511 0 2.5
    

    Example code for loading .instances files can be found in CMyPopulate::GetSpeedForestFileInstances() in the reference application.

    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.