TreeFieldRenderSpecDict: Difference between revisions

From The Colonists
Jump to navigation Jump to search
Created page with "placeholder - allows scaling and offset of TreeField assets"
 
clarify entries
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
placeholder - allows scaling and offset of TreeField assets
This entry in [[ModRender|'''render.json''']] allows scaling and offset of TreeField assets
 
See Orchard and CocoaFarm.
Example entry in render.json<br>
{
  "treeFieldRenderSpecDict": {
    "9": {  // treefield ID
      "minScale": 1.0, // minimum random scaling of 3D asset for any individual tree
      "maxScale": 1.0, // maximum random scaling of 3D asset for any individual tree
      "centreOffsetRange": {
        "x": 0.1,  // maximum random X offset of 3D asset for any individual tree
        "y": 0.1  // maximum random Y offset of 3D asset for any individual tree
      }
    }
  },
 
}

Latest revision as of 13:38, 14 June 2023

This entry in render.json allows scaling and offset of TreeField assets

See Orchard and CocoaFarm. Example entry in render.json
{

 "treeFieldRenderSpecDict": {
   "9": {   // treefield ID
     "minScale": 1.0, // minimum random scaling of 3D asset for any individual tree
     "maxScale": 1.0, // maximum random scaling of 3D asset for any individual tree
     "centreOffsetRange": {
       "x": 0.1,  // maximum random X offset of 3D asset for any individual tree
       "y": 0.1  // maximum random Y offset of 3D asset for any individual tree
     }
   }
 },

}