11 KiB
VoxelLodTerrain
Inherits: VoxelNode
Voxel volume using variable level of detail.
Properties:
Type | Name | Default |
---|---|---|
int |
collision_lod_count | -1 |
bool |
generate_collisions | true |
int |
lod_count | 4 |
float |
lod_split_scale | 3.0 |
Material |
material | |
VoxelMesher |
mesher | |
bool |
run_stream_in_editor | true |
int |
view_distance | 512 |
AABB |
voxel_bounds | AABB( -5.36871e+08, -5.36871e+08, -5.36871e+08, 1.07374e+09, 1.07374e+09, 1.07374e+09 ) |
Methods:
Return | Signature |
---|---|
int | debug_dump_as_scene ( String path ) const |
int | debug_get_block_count ( ) const |
Dictionary | debug_get_block_info ( Vector3 block_pos, int lod ) const |
Array | debug_get_octrees ( ) const |
Array | debug_print_sdf_top_down ( Vector3 center, Vector3 extents ) const |
Array | debug_raycast_block ( Vector3 origin, Vector3 dir ) const |
int | get_block_region_extent ( ) const |
int | get_block_size ( ) const |
int | get_process_mode ( ) const |
Dictionary | get_statistics ( ) const |
VoxelTool | get_voxel_tool ( ) |
void | save_modified_blocks ( ) |
void | set_process_mode ( int mode ) |
Vector3 | voxel_to_block_position ( Vector3 lod_index, int arg1 ) const |
Enumerations:
enum ProcessMode:
- PROCESS_MODE_IDLE = 0
- PROCESS_MODE_PHYSICS = 1
- PROCESS_MODE_DISABLED = 2
Property Descriptions
-
int collision_lod_count = -1
-
bool generate_collisions = true
-
int lod_count = 4
-
float lod_split_scale = 3.0
-
Material material
-
VoxelMesher mesher
-
bool run_stream_in_editor = true
-
int view_distance = 512
-
AABB voxel_bounds = AABB( -5.36871e+08, -5.36871e+08, -5.36871e+08, 1.07374e+09, 1.07374e+09, 1.07374e+09 )
Method Descriptions
-
int debug_get_block_count( )
-
Dictionary debug_get_block_info( Vector3 block_pos, int lod )
-
Array debug_get_octrees( )
-
Array debug_print_sdf_top_down( Vector3 center, Vector3 extents )
-
int get_block_region_extent( )
-
int get_block_size( )
-
int get_process_mode( )
-
Dictionary get_statistics( )
Gets debug information about how much time is spent processing the terrain.
The returned dictionary has the following structure:
{
"time_detect_required_blocks": int,
"time_request_blocks_to_load": int,
"time_process_load_responses": int,
"time_request_blocks_to_update": int,
"time_process_update_responses": int,
"remaining_main_thread_blocks": int,
"dropped_block_loads": int,
"dropped_block_meshs": int,
"updated_blocks": int,
"blocked_lods": int
}
-
VoxelTool get_voxel_tool( )
-
void save_modified_blocks( )
-
Vector3 voxel_to_block_position( Vector3 lod_index, int arg1 )
Generated on Apr 10, 2021