1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 12:09:43 +00:00

Increase default recast scale factor

To make 4 voxels fit into sStepSizeUp = 34:
"recast scale factor" = 4 * "cell size" / sStepSizeUp
This commit is contained in:
elsid 2019-10-07 21:29:41 +02:00
parent cbf8deeb31
commit bfe6005ed4
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
2 changed files with 4 additions and 4 deletions

View file

@ -176,12 +176,12 @@ recast scale factor
:Type: floating point :Type: floating point
:Range: > 0.0 :Range: > 0.0
:Default: 0.017647058823529415 :Default: 0.023529411764705882
Scale of nav mesh coordinates to world coordinates. Recastnavigation builds voxels for world geometry. Scale of nav mesh coordinates to world coordinates. Recastnavigation builds voxels for world geometry.
Basically voxel size is 1 / "cell size". To reduce amount of voxels we apply scale factor, to make voxel size Basically voxel size is 1 / "cell size". To reduce amount of voxels we apply scale factor, to make voxel size
"recast scale factor" / "cell size". Default value calculates by this equation: "recast scale factor" / "cell size". Default value calculates by this equation:
sStepSizeUp * "recast scale factor" / "cell size" = 3 (max climb height should be equal to 3 voxels). sStepSizeUp * "recast scale factor" / "cell size" = 4 (max climb height should be equal to 4 voxels).
Changing this value will change generated nav mesh. Some locations may become unavailable for NPC and creatures. Changing this value will change generated nav mesh. Some locations may become unavailable for NPC and creatures.
Pay attention to slopes and roofs when change it. Increasing this value will reduce nav mesh update latency. Pay attention to slopes and roofs when change it. Increasing this value will reduce nav mesh update latency.

View file

@ -642,8 +642,8 @@ enable = true
# Scale of NavMesh coordinates to world coordinates (value > 0.0). Recastnavigation builds voxels for world geometry. # Scale of NavMesh coordinates to world coordinates (value > 0.0). Recastnavigation builds voxels for world geometry.
# Basically voxel size is 1 / "cell size". To reduce amount of voxels we apply scale factor, to make voxel size # Basically voxel size is 1 / "cell size". To reduce amount of voxels we apply scale factor, to make voxel size
# "recast scale factor" / "cell size". Default value calculates by this equation: # "recast scale factor" / "cell size". Default value calculates by this equation:
# sStepSizeUp * "recast scale factor" / "cell size" = 3 (max climb height should be equal to 3 voxels) # sStepSizeUp * "recast scale factor" / "cell size" = 4 (max climb height should be equal to 4 voxels)
recast scale factor = 0.017647058823529415 recast scale factor = 0.023529411764705882
# The z-axis cell size to use for fields. (value > 0.0) # The z-axis cell size to use for fields. (value > 0.0)
# Defines voxel/grid/cell size. So their values have significant # Defines voxel/grid/cell size. So their values have significant