SpeedTree
    Show / Hide Table of Contents

    Units and scaling

    The SpeedTree system, from the Modeler through to the Runtime SDK, is unitless. However, trees in the SpeedTree model library are modeled where one unit represents approximately one foot. If a conversion is necessary, there are a few possible approaches:

    1. Scale the model upon export to the .stsdk format. The Modeler's export dialog has a geometry scalar text box to support this.

    2. When creating instances of a given tree, multiply the value assigned to SInstance::m_fScalar to compensate for the units difference. The tree will still be in the same units, but the culling and shader systems will interpret them with the correct scale value.

    3. Scale the tree in the Modeler using either Tools > Scene unit conversion or Tools > Arbitrary scene scale.

    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.