Updated API classes

master
Marc Gilleron 2020-08-10 21:15:37 +01:00
parent 2a5d1f59c2
commit 66ce79de86
52 changed files with 1211 additions and 401 deletions

View File

@ -6,11 +6,11 @@ These classes are exposed to GDScript. This information is also available within
* [VoxelBoxMover.md](VoxelBoxMover.md)
* [VoxelBuffer.md](VoxelBuffer.md)
* [VoxelGenerator.md](VoxelGenerator.md)
* [VoxelGeneratorGraph.md](VoxelGeneratorGraph.md)
* [VoxelGeneratorHeightmap.md](VoxelGeneratorHeightmap.md)
* [VoxelGeneratorImage.md](VoxelGeneratorImage.md)
* [VoxelGeneratorNoise.md](VoxelGeneratorNoise.md)
* [VoxelGeneratorNoise2D.md](VoxelGeneratorNoise2D.md)
* [VoxelGeneratorTest.md](VoxelGeneratorTest.md)
* [VoxelLibrary.md](VoxelLibrary.md)
* [VoxelLodTerrain.md](VoxelLodTerrain.md)
* [VoxelMap.md](VoxelMap.md)
@ -25,7 +25,8 @@ These classes are exposed to GDScript. This information is also available within
* [VoxelStreamRegionFiles.md](VoxelStreamRegionFiles.md)
* [VoxelTerrain.md](VoxelTerrain.md)
* [VoxelTool.md](VoxelTool.md)
* [VoxelToolTerrain.md](VoxelToolTerrain.md)
---
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,14 @@
Inherits: Resource
_Godot version: 3.2.1_
_Godot version: 3.2_
## Class Description:
Represents a model to be used for voxels of a specific TYPE value. Such models must be contained within a `VoxelLibrary` to be used with `VoxelTerrain` or directly with a `VoxelMesherBlocky`.
Some other various properties also exist to make it easier to implements games based on this technique (such as Minecraft).
## Online Tutorials:
@ -11,47 +18,99 @@ _Godot version: 3.2.1_
## Constants:
#### » GeometryType.GEOMETRY_NONE = 0
#### » GeometryType.GEOMETRY_NONE = 0
#### » GeometryType.GEOMETRY_CUBE = 1
#### » GeometryType.GEOMETRY_CUBE = 1
#### » GeometryType.GEOMETRY_MAX = 2
#### » GeometryType.GEOMETRY_CUSTOM_MESH = 2
#### » GeometryType.GEOMETRY_MAX = 3
#### » Side.SIDE_NEGATIVE_X = 1
#### » Side.SIDE_POSITIVE_X = 0
#### » Side.SIDE_NEGATIVE_Y = 2
#### » Side.SIDE_POSITIVE_Y = 3
#### » Side.SIDE_NEGATIVE_Z = 4
#### » Side.SIDE_POSITIVE_Z = 5
#### » Side.SIDE_COUNT = 6
## Properties:
#### » Color color
#### » Array collision_aabbs
`set_collision_aabbs (value)` setter
`get_collision_aabbs ()` getter
#### » int collision_mask
`set_collision_mask (value)` setter
`get_collision_mask ()` getter
#### » Color color
`set_color (value)` setter
`get_color ()` getter
#### » int Voxel.GeometryType.geometry_type
#### » Mesh custom_mesh
`set_custom_mesh (value)` setter
`get_custom_mesh ()` getter
#### » int Voxel.GeometryType.geometry_type
`set_geometry_type (value)` setter
`get_geometry_type ()` getter
#### » int material_id
#### » int material_id
`set_material_id (value)` setter
`get_material_id ()` getter
#### » bool transparent
#### » bool random_tickable
`set_random_tickable (value)` setter
`is_random_tickable ()` getter
#### » bool transparent
`set_transparent (value)` setter
`is_transparent ()` getter
#### » String voxel_name
#### » String voxel_name
`set_voxel_name (value)` setter
@ -61,22 +120,25 @@ _Godot version: 3.2.1_
## Methods:
#### » int get_id ( ) const
#### » int get_id ( ) const
#### » Voxel set_color ( Color color )
#### » bool is_empty() ( ) const
#### » Voxel set_id ( int id )
#### » Voxel set_color ( Color color )
#### » Voxel set_material_id ( int id )
#### » Voxel set_id ( int id )
#### » Voxel set_transparent ( bool transparent=true )
#### » Voxel set_material_id ( int id )
#### » Voxel set_voxel_name ( String name )
#### » Voxel set_transparent ( bool transparent )
#### » Voxel set_voxel_name ( String name )
@ -87,4 +149,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -17,7 +17,13 @@ _Godot version: 3.2.1_
## Methods:
#### » Vector3 get_motion ( Vector3 pos, Vector3 motion, AABB aabb, Node terrain )
#### » int get_collision_mask ( ) const
#### » Vector3 get_motion ( Vector3 pos, Vector3 motion, AABB aabb, Node terrain )
#### » void set_collision_mask ( int mask )
@ -28,4 +34,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,12 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Class Description:
Dense voxels data storage. Works like a normal 3D grid. Organized in channels of configurable bit depth. Values can be interpreted either as unsigned integers or normalized floats. Arbitrary metadata can also be stored, at higher cost.
## Online Tutorials:
@ -11,46 +16,55 @@ _Godot version: 3.2.1_
## Constants:
#### » ChannelId.CHANNEL_TYPE = 0
#### » ChannelId.CHANNEL_TYPE = 0
#### » ChannelId.CHANNEL_SDF = 1
#### » ChannelId.CHANNEL_SDF = 1
#### » ChannelId.CHANNEL_DATA2 = 2
#### » ChannelId.CHANNEL_DATA2 = 2
#### » ChannelId.CHANNEL_DATA3 = 3
#### » ChannelId.CHANNEL_DATA3 = 3
#### » ChannelId.CHANNEL_DATA4 = 4
#### » ChannelId.CHANNEL_DATA4 = 4
#### » ChannelId.CHANNEL_DATA5 = 5
#### » ChannelId.CHANNEL_DATA5 = 5
#### » ChannelId.CHANNEL_DATA6 = 6
#### » ChannelId.CHANNEL_DATA6 = 6
#### » ChannelId.CHANNEL_DATA7 = 7
#### » ChannelId.CHANNEL_DATA7 = 7
#### » ChannelId.MAX_CHANNELS = 8
#### » ChannelId.MAX_CHANNELS = 8
#### » Depth.DEPTH_8_BIT = 0
#### » Depth.DEPTH_8_BIT = 0
#### » Depth.DEPTH_16_BIT = 1
#### » Depth.DEPTH_16_BIT = 1
#### » Depth.DEPTH_32_BIT = 2
#### » Depth.DEPTH_32_BIT = 2
#### » Depth.DEPTH_64_BIT = 3
#### » Depth.DEPTH_64_BIT = 3
#### » Depth.DEPTH_COUNT = 4
#### » Depth.DEPTH_COUNT = 4
#### » Compression.COMPRESSION_NONE = 0
#### » Compression.COMPRESSION_UNIFORM = 1
#### » Compression.COMPRESSION_COUNT = 2
@ -59,70 +73,100 @@ _Godot version: 3.2.1_
## Methods:
#### » void clear ( )
#### » void clear ( )
#### » void copy_channel_from ( VoxelBuffer other, int channel )
#### » void clear_voxel_metadata ( )
#### » void copy_channel_from_area ( VoxelBuffer other, Vector3 src_min, Vector3 src_max, Vector3 dst_min, int channel )
#### » void clear_voxel_metadata_in_area ( Vector3 min_pos, Vector3 max_pos )
#### » void create ( int sx, int sy, int sz )
#### » void copy_channel_from ( VoxelBuffer other, int channel )
#### » void downscale_to ( VoxelBuffer dst, Vector3 src_min, Vector3 src_max, Vector3 dst_min ) const
#### » void copy_channel_from_area ( VoxelBuffer other, Vector3 src_min, Vector3 src_max, Vector3 dst_min, int channel )
#### » void fill ( int value, int channel=0 )
#### » void copy_voxel_metadata_in_area ( VoxelBuffer src_min_pos, Vector3 src_max_pos, Vector3 dst_min_pos, Vector3 arg3 )
#### » void fill_area ( int value, Vector3 min, Vector3 max, int channel=0 )
#### » void create ( int sx, int sy, int sz )
#### » void fill_f ( float value, int channel=0 )
#### » void downscale_to ( VoxelBuffer dst, Vector3 src_min, Vector3 src_max, Vector3 dst_min ) const
#### » int get_channel_depth ( int channel ) const
#### » void fill ( int value, int channel=0 )
#### » Vector3 get_size ( ) const
#### » void fill_area ( int value, Vector3 min, Vector3 max, int channel=0 )
#### » int get_size_x ( ) const
#### » void fill_f ( float value, int channel=0 )
#### » int get_size_y ( ) const
#### » void for_each_voxel_metadata ( FuncRef callback ) const
#### » int get_size_z ( ) const
#### » void for_each_voxel_metadata_in_area ( FuncRef callback, Vector3 min_pos, Vector3 max_pos )
#### » int get_voxel ( int x, int y, int z, int channel=0 ) const
#### » Variant get_block_metadata ( ) const
#### » float get_voxel_f ( int x, int y, int z, int channel=0 ) const
#### » int get_channel_compression ( int channel ) const
#### » VoxelTool get_voxel_tool ( )
#### » int get_channel_depth ( int channel ) const
#### » bool is_uniform ( int channel ) const
#### » Vector3 get_size ( ) const
#### » void optimize ( )
#### » int get_size_x ( ) const
#### » void set_channel_depth ( int channel, int depth )
#### » int get_size_y ( ) const
#### » void set_voxel ( int value, int x, int y, int z, int channel=0 )
#### » int get_size_z ( ) const
#### » void set_voxel_f ( float value, int x, int y, int z, int channel=0 )
#### » int get_voxel ( int x, int y, int z, int channel=0 ) const
#### » void set_voxel_v ( int value, Vector3 pos, int channel=0 )
#### » float get_voxel_f ( int x, int y, int z, int channel=0 ) const
#### » Variant get_voxel_metadata ( Vector3 pos ) const
#### » VoxelTool get_voxel_tool ( )
#### » bool is_uniform ( int channel ) const
#### » void optimize ( )
#### » void set_block_metadata ( Variant meta )
#### » void set_channel_depth ( int channel, int depth )
#### » void set_voxel ( int value, int x, int y, int z, int channel=0 )
#### » void set_voxel_f ( float value, int x, int y, int z, int channel=0 )
#### » void set_voxel_metadata ( Vector3 pos, Variant value )
#### » void set_voxel_v ( int value, Vector3 pos, int channel=0 )
@ -133,4 +177,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelStream
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -17,7 +17,7 @@ _Godot version: 3.2.1_
## Methods:
#### » void generate_block ( VoxelBuffer out_buffer, Vector3 origin_in_voxels, int lod )
#### » void generate_block ( VoxelBuffer out_buffer, Vector3 origin_in_voxels, int lod )
@ -28,4 +28,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -0,0 +1,205 @@
# Class: VoxelGeneratorGraph
Inherits: VoxelGenerator
_Godot version: 3.2_
## Online Tutorials:
## Constants:
#### » NodeTypeID.NODE_CONSTANT = 0
#### » NodeTypeID.NODE_INPUT_X = 1
#### » NodeTypeID.NODE_INPUT_Y = 2
#### » NodeTypeID.NODE_INPUT_Z = 3
#### » NodeTypeID.NODE_OUTPUT_SDF = 4
#### » NodeTypeID.NODE_ADD = 5
#### » NodeTypeID.NODE_SUBTRACT = 6
#### » NodeTypeID.NODE_MULTIPLY = 7
#### » NodeTypeID.NODE_DIVIDE = 8
#### » NodeTypeID.NODE_SIN = 9
#### » NodeTypeID.NODE_FLOOR = 10
#### » NodeTypeID.NODE_ABS = 11
#### » NodeTypeID.NODE_SQRT = 12
#### » NodeTypeID.NODE_FRACT = 13
#### » NodeTypeID.NODE_STEPIFY = 14
#### » NodeTypeID.NODE_WRAP = 15
#### » NodeTypeID.NODE_MIN = 16
#### » NodeTypeID.NODE_MAX = 17
#### » NodeTypeID.NODE_DISTANCE_2D = 18
#### » NodeTypeID.NODE_DISTANCE_3D = 19
#### » NodeTypeID.NODE_CLAMP = 20
#### » NodeTypeID.NODE_MIX = 21
#### » NodeTypeID.NODE_REMAP = 22
#### » NodeTypeID.NODE_SMOOTHSTEP = 23
#### » NodeTypeID.NODE_CURVE = 24
#### » NodeTypeID.NODE_SELECT = 25
#### » NodeTypeID.NODE_NOISE_2D = 26
#### » NodeTypeID.NODE_NOISE_3D = 27
#### » NodeTypeID.NODE_IMAGE_2D = 28
#### » NodeTypeID.NODE_SDF_PLANE = 29
#### » NodeTypeID.NODE_SDF_BOX = 30
#### » NodeTypeID.NODE_SDF_SPHERE = 31
#### » NodeTypeID.NODE_SDF_TORUS = 32
#### » NodeTypeID.NODE_SDF_PREVIEW = 33
#### » NodeTypeID.NODE_TYPE_COUNT = 34
## Properties:
## Methods:
#### » void add_connection ( int src_node_id, int src_port_index, int dst_node_id, int dst_port_index )
#### » bool can_connect ( int src_node_id, int src_port_index, int dst_node_id, int dst_port_index ) const
#### » void clear ( )
#### » void compile ( )
#### » int create_node ( int type_id, Vector2 position, int id=0 )
#### » void debug_load_waves_preset ( )
#### » float debug_measure_microseconds_per_voxel ( )
#### » float generate_single ( Vector3 arg0 )
#### » Array get_connections ( ) const
#### » Variant get_node_default_input ( int node_id, int input_index ) const
#### » Vector2 get_node_gui_position ( int node_id ) const
#### » PoolIntArray get_node_ids ( ) const
#### » Variant get_node_param ( int node_id, int param_index ) const
#### » int get_node_type_count ( ) const
#### » int get_node_type_id ( int node_id ) const
#### » Dictionary get_node_type_info ( int type_id ) const
#### » bool is_compressing_uniform_channels ( ) const
#### » void remove_connection ( int src_node_id, int src_port_index, int dst_node_id, int dst_port_index )
#### » void remove_node ( int node_id )
#### » void set_compress_uniform_channels ( bool enabled )
#### » void set_node_default_input ( int node_id, int input_index, Variant value )
#### » void set_node_gui_position ( int node_id, Vector2 position )
#### » void set_node_param ( int node_id, int param_index, Variant value )
#### » void set_node_param_null ( int node_id, int param_index )
## Signals:
---
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelGenerator
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,21 +14,28 @@ _Godot version: 3.2.1_
## Properties:
#### » float height_range
#### » int VoxelBuffer.ChannelId.channel
`set_channel (value)` setter
`get_channel ()` getter
#### » float height_range
`set_height_range (value)` setter
`get_height_range ()` getter
#### » float height_start
#### » float height_start
`set_height_start (value)` setter
`get_height_start ()` getter
#### » float iso_scale
#### » float iso_scale
`set_iso_scale (value)` setter
@ -38,12 +45,6 @@ _Godot version: 3.2.1_
## Methods:
#### » int get_channel ( ) const
#### » void set_channel ( int channel )
## Signals:
@ -52,4 +53,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelGeneratorHeightmap
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,21 +14,14 @@ _Godot version: 3.2.1_
## Properties:
#### » bool blur_enabled
#### » bool blur_enabled
`set_blur_enabled (value)` setter
`is_blur_enabled ()` getter
#### » int VoxelBuffer.ChannelId.channel
`set_channel (value)` setter
`get_channel ()` getter
#### » Image image
#### » Image image
`set_image (value)` setter
@ -46,4 +39,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelGenerator
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,28 +14,28 @@ _Godot version: 3.2.1_
## Properties:
#### » int VoxelBuffer.ChannelId.channel
#### » int VoxelBuffer.ChannelId.channel
`set_channel (value)` setter
`get_channel ()` getter
#### » float height_range
#### » float height_range
`set_height_range (value)` setter
`get_height_range ()` getter
#### » float height_start
#### » float height_start
`set_height_start (value)` setter
`get_height_start ()` getter
#### » OpenSimplexNoise noise
#### » OpenSimplexNoise noise
`set_noise (value)` setter
@ -53,4 +53,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelGeneratorHeightmap
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,21 +14,14 @@ _Godot version: 3.2.1_
## Properties:
#### » int VoxelBuffer.ChannelId.channel
`set_channel (value)` setter
`get_channel ()` getter
#### » Curve curve
#### » Curve curve
`set_curve (value)` setter
`get_curve ()` getter
#### » OpenSimplexNoise noise
#### » OpenSimplexNoise noise
`set_noise (value)` setter
@ -46,4 +39,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -1,69 +0,0 @@
# Class: VoxelGeneratorTest
Inherits: VoxelGenerator
_Godot version: 3.2.1_
## Online Tutorials:
## Constants:
#### » Mode.MODE_FLAT = 0
#### » Mode.MODE_WAVES = 1
## Properties:
#### » int VoxelBuffer.ChannelId.channel
`set_channel (value)` setter
`get_channel ()` getter
#### » int VoxelGeneratorTest.Mode.mode
`set_mode (value)` setter
`get_mode ()` getter
#### » Vector3 pattern_offset
`set_pattern_offset (value)` setter
`get_pattern_offset ()` getter
#### » Vector3 pattern_size
`set_pattern_size (value)` setter
`get_pattern_size ()` getter
#### » int voxel_type
`set_voxel_type (value)` setter
`get_voxel_type ()` getter
## Methods:
## Signals:
---
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Resource
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -11,20 +11,20 @@ _Godot version: 3.2.1_
## Constants:
#### » MAX_VOXEL_TYPES = 65536
#### » MAX_VOXEL_TYPES = 65536
## Properties:
#### » int atlas_size
#### » int atlas_size
`set_atlas_size (value)` setter
`get_atlas_size ()` getter
#### » int voxel_count
#### » int voxel_count
`set_voxel_count (value)` setter
@ -34,10 +34,19 @@ _Godot version: 3.2.1_
## Methods:
#### » Voxel create_voxel ( int id, String name )
#### » void bake ( )
#### » Voxel get_voxel ( int id )
#### » Voxel create_voxel ( int id, String name )
#### » Voxel get_voxel ( int id )
#### » Voxel get_voxel_by_name ( String name )
#### » int get_voxel_index_from_name ( String name ) const
@ -48,4 +57,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Spatial
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,56 +14,56 @@ _Godot version: 3.2.1_
## Properties:
#### » int collision_lod_count
#### » int collision_lod_count
`set_collision_lod_count (value)` setter
`get_collision_lod_count ()` getter
#### » bool generate_collisions
#### » bool generate_collisions
`set_generate_collisions (value)` setter
`get_generate_collisions ()` getter
#### » int lod_count
#### » int lod_count
`set_lod_count (value)` setter
`get_lod_count ()` getter
#### » float lod_split_scale
#### » float lod_split_scale
`set_lod_split_scale (value)` setter
`get_lod_split_scale ()` getter
#### » Material material
#### » Material material
`set_material (value)` setter
`get_material ()` getter
#### » VoxelStream stream
#### » VoxelStream stream
`set_stream (value)` setter
`get_stream ()` getter
#### » int view_distance
#### » int view_distance
`set_view_distance (value)` setter
`get_view_distance ()` getter
#### » NodePath viewer_path
#### » NodePath viewer_path
`set_viewer_path (value)` setter
@ -73,34 +73,34 @@ _Godot version: 3.2.1_
## Methods:
#### » Dictionary debug_get_block_info ( Vector3 block_pos, int lod ) const
#### » Dictionary debug_get_block_info ( Vector3 block_pos, int lod ) const
#### » Array debug_get_octrees ( ) const
#### » Array debug_get_octrees ( ) const
#### » Array debug_print_sdf_top_down ( Vector3 center, Vector3 extents ) const
#### » Array debug_print_sdf_top_down ( Vector3 center, Vector3 extents ) const
#### » Array debug_raycast_block ( Vector3 origin, Vector3 dir ) const
#### » Array debug_raycast_block ( Vector3 origin, Vector3 dir ) const
#### » void debug_save_all_modified_blocks ( )
#### » int get_block_region_extent ( ) const
#### » int get_block_region_extent ( ) const
#### » int get_block_size ( ) const
#### » int get_block_size ( ) const
#### » Dictionary get_statistics ( ) const
#### » Dictionary get_statistics ( ) const
#### » VoxelTool get_voxel_tool ( )
#### » VoxelTool get_voxel_tool ( )
#### » void save_modified_blocks ( )
#### » Vector3 voxel_to_block_position ( Vector3 lod_index, int arg1 ) const
#### » Vector3 voxel_to_block_position ( Vector3 lod_index, int arg1 ) const
@ -111,4 +111,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -17,46 +17,46 @@ _Godot version: 3.2.1_
## Methods:
#### » Vector3 block_to_voxel ( Vector3 block_pos ) const
#### » Vector3 block_to_voxel ( Vector3 block_pos ) const
#### » int get_block_size ( ) const
#### » int get_block_size ( ) const
#### » void get_buffer_copy ( Vector3 min_pos, VoxelBuffer out_buffer, int channel=0 )
#### » void get_buffer_copy ( Vector3 min_pos, VoxelBuffer out_buffer, int channel=0 )
#### » int get_default_voxel ( int channel=0 )
#### » int get_default_voxel ( int channel=0 )
#### » int get_voxel ( int x, int y, int z, int c=0 )
#### » int get_voxel ( int x, int y, int z, int c=0 )
#### » float get_voxel_f ( int x, int y, int z, int c=1 )
#### » float get_voxel_f ( int x, int y, int z, int c=1 )
#### » int get_voxel_v ( Vector3 pos, int c=0 )
#### » int get_voxel_v ( Vector3 pos, int c=0 )
#### » bool has_block ( int x, int y, int z )
#### » bool has_block ( int x, int y, int z )
#### » void set_block_buffer ( Vector3 block_pos, VoxelBuffer buffer )
#### » void set_block_buffer ( Vector3 block_pos, VoxelBuffer buffer )
#### » void set_default_voxel ( int value, int channel=0 )
#### » void set_default_voxel ( int value, int channel=0 )
#### » void set_voxel ( int value, int x, int y, int z, int c=0 )
#### » void set_voxel ( int value, int x, int y, int z, int c=0 )
#### » void set_voxel_f ( float value, int x, int y, int z, int c=1 )
#### » void set_voxel_f ( float value, int x, int y, int z, int c=1 )
#### » void set_voxel_v ( int value, Vector3 pos, int c=0 )
#### » void set_voxel_v ( int value, Vector3 pos, int c=0 )
#### » Vector3 voxel_to_block ( Vector3 voxel_pos ) const
#### » Vector3 voxel_to_block ( Vector3 voxel_pos ) const
@ -67,4 +67,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -17,13 +17,13 @@ _Godot version: 3.2.1_
## Methods:
#### » Mesh build_mesh ( VoxelBuffer voxel_buffer )
#### » Mesh build_mesh ( VoxelBuffer voxel_buffer, Array materials )
#### » int get_maximum_padding ( ) const
#### » int get_maximum_padding ( ) const
#### » int get_minimum_padding ( ) const
#### » int get_minimum_padding ( ) const
@ -34,4 +34,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,12 @@
Inherits: VoxelMesher
_Godot version: 3.2.1_
_Godot version: 3.2_
## Class Description:
Produces a mesh by batching models corresponding to each voxel value, similar to games like Minecraft or StarMade. Occluded faces are removed from the result, and some degree of ambient occlusion can be baked on the edges. Values are expected to be in the [constant VoxelBuffer.CHANNEL_TYPE] channel. Models are defined with a `VoxelLibrary`, in which model indices correspond to the voxel values. Models don't have to be cubes.
## Online Tutorials:
@ -17,22 +22,22 @@ _Godot version: 3.2.1_
## Methods:
#### » VoxelLibrary get_library ( ) const
#### » VoxelLibrary get_library ( ) const
#### » float get_occlusion_darkness ( ) const
#### » float get_occlusion_darkness ( ) const
#### » bool get_occlusion_enabled ( ) const
#### » bool get_occlusion_enabled ( ) const
#### » void set_library ( VoxelLibrary voxel_library )
#### » void set_library ( VoxelLibrary voxel_library )
#### » void set_occlusion_darkness ( float value )
#### » void set_occlusion_darkness ( float value )
#### » void set_occlusion_enabled ( bool enable )
#### » void set_occlusion_enabled ( bool enable )
@ -43,4 +48,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,12 @@
Inherits: VoxelMesher
_Godot version: 3.2.1_
_Godot version: 3.2_
## Class Description:
Implements isosurface generation (smooth voxels) using `url=https://www.volume-gfx.com/volume-rendering/dual-marching-cubes/`Dual Marching Cubes`/url`.
## Online Tutorials:
@ -11,31 +16,31 @@ _Godot version: 3.2.1_
## Constants:
#### » MeshMode.MESH_NORMAL = 0
#### » MeshMode.MESH_NORMAL = 0
#### » MeshMode.MESH_WIREFRAME = 1
#### » MeshMode.MESH_WIREFRAME = 1
#### » MeshMode.MESH_DEBUG_OCTREE = 2
#### » MeshMode.MESH_DEBUG_OCTREE = 2
#### » MeshMode.MESH_DEBUG_DUAL_GRID = 3
#### » MeshMode.MESH_DEBUG_DUAL_GRID = 3
#### » SimplifyMode.SIMPLIFY_OCTREE_BOTTOM_UP = 0
#### » SimplifyMode.SIMPLIFY_OCTREE_BOTTOM_UP = 0
#### » SimplifyMode.SIMPLIFY_OCTREE_TOP_DOWN = 1
#### » SimplifyMode.SIMPLIFY_OCTREE_TOP_DOWN = 1
#### » SimplifyMode.SIMPLIFY_NONE = 2
#### » SimplifyMode.SIMPLIFY_NONE = 2
#### » SeamMode.SEAM_NONE = 0
#### » SeamMode.SEAM_NONE = 0
#### » SeamMode.SEAM_MARCHING_SQUARE_SKIRTS = 1
#### » SeamMode.SEAM_MARCHING_SQUARE_SKIRTS = 1
@ -44,31 +49,31 @@ _Godot version: 3.2.1_
## Methods:
#### » float get_geometric_error ( ) const
#### » float get_geometric_error ( ) const
#### » int get_mesh_mode ( ) const
#### » int get_mesh_mode ( ) const
#### » int get_seam_mode ( ) const
#### » int get_seam_mode ( ) const
#### » int get_simplify_mode ( ) const
#### » int get_simplify_mode ( ) const
#### » Dictionary get_statistics ( ) const
#### » Dictionary get_statistics ( ) const
#### » void set_geometric_error ( float error )
#### » void set_geometric_error ( float error )
#### » void set_mesh_mode ( int mode )
#### » void set_mesh_mode ( int mode )
#### » void set_seam_mode ( int mode )
#### » void set_seam_mode ( int mode )
#### » void set_simplify_mode ( int mode )
#### » void set_simplify_mode ( int mode )
@ -79,4 +84,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,12 @@
Inherits: VoxelMesher
_Godot version: 3.2.1_
_Godot version: 3.2_
## Class Description:
Implements isosurface generation (smooth voxels) using the `url=https://transvoxel.org/]Transvoxel[/url` algorithm.
## Online Tutorials:
@ -17,7 +22,7 @@ _Godot version: 3.2.1_
## Methods:
#### » ArrayMesh build_transition_mesh ( VoxelBuffer voxel_buffer, int direction )
#### » ArrayMesh build_transition_mesh ( VoxelBuffer voxel_buffer, int direction )
@ -28,4 +33,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,14 +14,14 @@ _Godot version: 3.2.1_
## Properties:
#### » Vector3 position
#### » Vector3 position
` (value)` setter
`get_position ()` getter
#### » Vector3 previous_position
#### » Vector3 previous_position
` (value)` setter
@ -39,4 +39,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Resource
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -17,13 +17,13 @@ _Godot version: 3.2.1_
## Methods:
#### » void emerge_block ( VoxelBuffer out_buffer, Vector3 origin_in_voxels, int lod )
#### » void emerge_block ( VoxelBuffer out_buffer, Vector3 origin_in_voxels, int lod )
#### » int get_used_channels_mask ( ) const
#### » int get_used_channels_mask ( ) const
#### » void immerge_block ( VoxelBuffer buffer, Vector3 origin_in_voxels, int lod )
#### » void immerge_block ( VoxelBuffer buffer, Vector3 origin_in_voxels, int lod )
@ -34,4 +34,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelStreamFile
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,7 +14,7 @@ _Godot version: 3.2.1_
## Properties:
#### » String directory
#### » String directory
`set_directory (value)` setter
@ -32,4 +32,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelStream
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,14 +14,14 @@ _Godot version: 3.2.1_
## Properties:
#### » VoxelStream fallback_stream
#### » VoxelStream fallback_stream
`set_fallback_stream (value)` setter
`get_fallback_stream ()` getter
#### » bool save_fallback_output
#### » bool save_fallback_output
`set_save_fallback_output (value)` setter
@ -31,7 +31,7 @@ _Godot version: 3.2.1_
## Methods:
#### » Vector3 get_block_size ( ) const
#### » Vector3 get_block_size ( ) const
@ -42,4 +42,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: VoxelStreamFile
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,35 +14,35 @@ _Godot version: 3.2.1_
## Properties:
#### » int block_size_po2
#### » int block_size_po2
`set_block_size_po2 (value)` setter
`get_region_size_po2 ()` getter
#### » String directory
#### » String directory
`set_directory (value)` setter
`get_directory ()` getter
#### » int lod_count
#### » int lod_count
`set_lod_count (value)` setter
`get_lod_count ()` getter
#### » int region_size_po2
#### » int region_size_po2
`set_region_size_po2 (value)` setter
`get_region_size_po2 ()` getter
#### » int sector_size
#### » int sector_size
`set_sector_size (value)` setter
@ -52,13 +52,13 @@ _Godot version: 3.2.1_
## Methods:
#### » void convert_files ( Dictionary new_settings )
#### » void convert_files ( Dictionary new_settings )
#### » int get_block_size_po2 ( ) const
#### » int get_block_size_po2 ( ) const
#### » Vector3 get_region_size ( ) const
#### » Vector3 get_region_size ( ) const
@ -69,4 +69,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Spatial
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -14,35 +14,35 @@ _Godot version: 3.2.1_
## Properties:
#### » bool generate_collisions
#### » bool generate_collisions
`set_generate_collisions (value)` setter
`get_generate_collisions ()` getter
#### » VoxelStream stream
#### » VoxelStream stream
`set_stream (value)` setter
`get_stream ()` getter
#### » int view_distance
#### » int view_distance
`set_view_distance (value)` setter
`get_view_distance ()` getter
#### » NodePath viewer_path
#### » NodePath viewer_path
`set_viewer_path (value)` setter
`get_viewer_path ()` getter
#### » VoxelLibrary voxel_library
#### » VoxelLibrary voxel_library
`set_voxel_library (value)` setter
@ -52,30 +52,46 @@ _Godot version: 3.2.1_
## Methods:
#### » Vector3 block_to_voxel ( Vector3 block_pos )
#### » Vector3 block_to_voxel ( Vector3 block_pos )
#### » Material get_material ( int id ) const
#### » Material get_material ( int id ) const
#### » Dictionary get_statistics ( ) const
#### » Dictionary get_statistics ( ) const
#### » VoxelTool get_voxel_tool ( )
#### » VoxelTool get_voxel_tool ( )
#### » void set_material ( int id, Material material )
#### » void save_block ( Vector3 arg0 )
#### » Vector3 voxel_to_block ( Vector3 voxel_pos )
#### » void save_modified_blocks ( )
#### » void set_material ( int id, Material material )
#### » Vector3 voxel_to_block ( Vector3 voxel_pos )
## Signals:
#### » block_loaded
Emitted when a new block is loaded from stream. Note it might be not visible yet.
#### » block_unloaded
Emitted when a block unloaded due to being outside view distance.
---
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -2,7 +2,7 @@
Inherits: Reference
_Godot version: 3.2.1_
_Godot version: 3.2_
## Online Tutorials:
@ -11,40 +11,40 @@ _Godot version: 3.2.1_
## Constants:
#### » Mode.MODE_ADD = 0
#### » Mode.MODE_ADD = 0
#### » Mode.MODE_REMOVE = 1
#### » Mode.MODE_REMOVE = 1
#### » Mode.MODE_SET = 2
#### » Mode.MODE_SET = 2
## Properties:
#### » int channel
#### » int channel
`set_channel (value)` setter
`get_channel ()` getter
#### » int eraser_value
#### » int eraser_value
`set_eraser_value (value)` setter
`get_eraser_value ()` getter
#### » int VoxelTool.Mode.mode
#### » int VoxelTool.Mode.mode
`set_mode (value)` setter
`get_mode ()` getter
#### » int value
#### » int value
`set_value (value)` setter
@ -54,25 +54,40 @@ _Godot version: 3.2.1_
## Methods:
#### » void do_point ( Vector3 pos )
#### » void do_box ( Vector3 begin, Vector3 end )
Operate on a rectangular cuboid section of the terrain. `begin` and `end` are inclusive. Choose operation and which voxel to use by setting `value` and `mode` before calling this function.
#### » void do_sphere ( Vector3 center, float radius )
#### » void do_point ( Vector3 pos )
#### » int get_voxel ( Vector3 pos )
#### » void do_sphere ( Vector3 center, float radius )
#### » float get_voxel_f ( Vector3 pos )
#### » int get_voxel ( Vector3 pos )
#### » VoxelRaycastResult raycast ( Vector3 origin, Vector3 direction, float max_distance=10.0 )
#### » float get_voxel_f ( Vector3 pos )
#### » void set_voxel ( Vector3 pos, int v )
#### » Variant get_voxel_metadata ( Vector3 pos )
#### » void set_voxel_f ( Vector3 pos, float v )
#### » void paste ( Vector3 dst_pos, Reference src_buffer, int src_mask_value )
#### » VoxelRaycastResult raycast ( Vector3 origin, Vector3 direction, float max_distance=10.0, int collision_mask=4294967295 )
#### » void set_voxel ( Vector3 pos, int v )
#### » void set_voxel_f ( Vector3 pos, float v )
#### » void set_voxel_metadata ( Vector3 pos, Variant meta )
@ -83,4 +98,4 @@ _Godot version: 3.2.1_
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Feb 16, 2020_
_Generated on Aug 10, 2020_

View File

@ -0,0 +1,31 @@
# Class: VoxelToolTerrain
Inherits: VoxelTool
_Godot version: 3.2_
## Online Tutorials:
## Constants:
## Properties:
## Methods:
#### » void run_blocky_random_tick ( AABB voxel_count, int callback, FuncRef batch_count, int arg3=16 ) const
## Signals:
---
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Aug 10, 2020_

View File

@ -1 +1,2 @@
Doc classes will appear here when generating
Doc classes will appear here when generating, using Godot's doctool.
See https://docs.godotengine.org/en/stable/development/cpp/custom_modules_in_cpp.html#writing-custom-documentation

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="Voxel" inherits="Resource" version="3.2.1">
<class name="Voxel" inherits="Resource" version="3.2">
<brief_description>
</brief_description>
<description>
@ -15,6 +15,12 @@
<description>
</description>
</method>
<method name="is_empty()" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="set_color">
<return type="Voxel">
</return>
@ -42,7 +48,7 @@
<method name="set_transparent">
<return type="Voxel">
</return>
<argument index="0" name="transparent" type="bool" default="true">
<argument index="0" name="transparent" type="bool">
</argument>
<description>
</description>
@ -57,12 +63,20 @@
</method>
</methods>
<members>
<member name="collision_aabbs" type="Array" setter="set_collision_aabbs" getter="get_collision_aabbs" default="[ ]">
</member>
<member name="collision_mask" type="int" setter="set_collision_mask" getter="get_collision_mask" default="1">
</member>
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
</member>
<member name="custom_mesh" type="Mesh" setter="set_custom_mesh" getter="get_custom_mesh">
</member>
<member name="geometry_type" type="int" setter="set_geometry_type" getter="get_geometry_type" enum="Voxel.GeometryType" default="0">
</member>
<member name="material_id" type="int" setter="set_material_id" getter="get_material_id" default="0">
</member>
<member name="random_tickable" type="bool" setter="set_random_tickable" getter="is_random_tickable" default="false">
</member>
<member name="transparent" type="bool" setter="set_transparent" getter="is_transparent" default="false">
</member>
<member name="voxel_name" type="String" setter="set_voxel_name" getter="get_voxel_name" default="&quot;&quot;">
@ -73,7 +87,23 @@
</constant>
<constant name="GEOMETRY_CUBE" value="1" enum="GeometryType">
</constant>
<constant name="GEOMETRY_MAX" value="2" enum="GeometryType">
<constant name="GEOMETRY_CUSTOM_MESH" value="2" enum="GeometryType">
</constant>
<constant name="GEOMETRY_MAX" value="3" enum="GeometryType">
</constant>
<constant name="SIDE_NEGATIVE_X" value="1" enum="Side">
</constant>
<constant name="SIDE_POSITIVE_X" value="0" enum="Side">
</constant>
<constant name="SIDE_NEGATIVE_Y" value="2" enum="Side">
</constant>
<constant name="SIDE_POSITIVE_Y" value="3" enum="Side">
</constant>
<constant name="SIDE_NEGATIVE_Z" value="4" enum="Side">
</constant>
<constant name="SIDE_POSITIVE_Z" value="5" enum="Side">
</constant>
<constant name="SIDE_COUNT" value="6" enum="Side">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelBoxMover" inherits="Reference" version="3.2.1">
<class name="VoxelBoxMover" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
@ -7,6 +7,12 @@
<tutorials>
</tutorials>
<methods>
<method name="get_collision_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_motion">
<return type="Vector3">
</return>
@ -21,6 +27,14 @@
<description>
</description>
</method>
<method name="set_collision_mask">
<return type="void">
</return>
<argument index="0" name="mask" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelBuffer" inherits="Reference" version="3.2.1">
<class name="VoxelBuffer" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
@ -14,6 +14,22 @@
<description>
</description>
</method>
<method name="clear_voxel_metadata">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_voxel_metadata_in_area">
<return type="void">
</return>
<argument index="0" name="min_pos" type="Vector3">
</argument>
<argument index="1" name="max_pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="copy_channel_from">
<return type="void">
</return>
@ -40,6 +56,20 @@
<description>
</description>
</method>
<method name="copy_voxel_metadata_in_area">
<return type="void">
</return>
<argument index="0" name="src_min_pos" type="VoxelBuffer">
</argument>
<argument index="1" name="src_max_pos" type="Vector3">
</argument>
<argument index="2" name="dst_min_pos" type="Vector3">
</argument>
<argument index="3" name="arg3" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="create">
<return type="void">
</return>
@ -100,6 +130,40 @@
<description>
</description>
</method>
<method name="for_each_voxel_metadata" qualifiers="const">
<return type="void">
</return>
<argument index="0" name="callback" type="FuncRef">
</argument>
<description>
</description>
</method>
<method name="for_each_voxel_metadata_in_area">
<return type="void">
</return>
<argument index="0" name="callback" type="FuncRef">
</argument>
<argument index="1" name="min_pos" type="Vector3">
</argument>
<argument index="2" name="max_pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_block_metadata" qualifiers="const">
<return type="Variant">
</return>
<description>
</description>
</method>
<method name="get_channel_compression" qualifiers="const">
<return type="int" enum="VoxelBuffer.Compression">
</return>
<argument index="0" name="channel" type="int">
</argument>
<description>
</description>
</method>
<method name="get_channel_depth" qualifiers="const">
<return type="int" enum="VoxelBuffer.Depth">
</return>
@ -160,6 +224,14 @@
<description>
</description>
</method>
<method name="get_voxel_metadata" qualifiers="const">
<return type="Variant">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_voxel_tool">
<return type="VoxelTool">
</return>
@ -180,6 +252,14 @@
<description>
</description>
</method>
<method name="set_block_metadata">
<return type="void">
</return>
<argument index="0" name="meta" type="Variant">
</argument>
<description>
</description>
</method>
<method name="set_channel_depth">
<return type="void">
</return>
@ -222,6 +302,16 @@
<description>
</description>
</method>
<method name="set_voxel_metadata">
<return type="void">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<argument index="1" name="value" type="Variant">
</argument>
<description>
</description>
</method>
<method name="set_voxel_v">
<return type="void">
</return>
@ -264,5 +354,11 @@
</constant>
<constant name="DEPTH_COUNT" value="4" enum="Depth">
</constant>
<constant name="COMPRESSION_NONE" value="0" enum="Compression">
</constant>
<constant name="COMPRESSION_UNIFORM" value="1" enum="Compression">
</constant>
<constant name="COMPRESSION_COUNT" value="2" enum="Compression">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGenerator" inherits="VoxelStream" version="3.2.1">
<class name="VoxelGenerator" inherits="VoxelStream" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -0,0 +1,297 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorGraph" inherits="VoxelGenerator" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_connection">
<return type="void">
</return>
<argument index="0" name="src_node_id" type="int">
</argument>
<argument index="1" name="src_port_index" type="int">
</argument>
<argument index="2" name="dst_node_id" type="int">
</argument>
<argument index="3" name="dst_port_index" type="int">
</argument>
<description>
</description>
</method>
<method name="can_connect" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="src_node_id" type="int">
</argument>
<argument index="1" name="src_port_index" type="int">
</argument>
<argument index="2" name="dst_node_id" type="int">
</argument>
<argument index="3" name="dst_port_index" type="int">
</argument>
<description>
</description>
</method>
<method name="clear">
<return type="void">
</return>
<description>
</description>
</method>
<method name="compile">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_node">
<return type="int">
</return>
<argument index="0" name="type_id" type="int" enum="VoxelGeneratorGraph.NodeTypeID">
</argument>
<argument index="1" name="position" type="Vector2">
</argument>
<argument index="2" name="id" type="int" default="0">
</argument>
<description>
</description>
</method>
<method name="debug_load_waves_preset">
<return type="void">
</return>
<description>
</description>
</method>
<method name="debug_measure_microseconds_per_voxel">
<return type="float">
</return>
<description>
</description>
</method>
<method name="generate_single">
<return type="float">
</return>
<argument index="0" name="arg0" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_connections" qualifiers="const">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_node_default_input" qualifiers="const">
<return type="Variant">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="input_index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_node_gui_position" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<description>
</description>
</method>
<method name="get_node_ids" qualifiers="const">
<return type="PoolIntArray">
</return>
<description>
</description>
</method>
<method name="get_node_param" qualifiers="const">
<return type="Variant">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="param_index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_node_type_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_node_type_id" qualifiers="const">
<return type="int" enum="VoxelGeneratorGraph.NodeTypeID">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<description>
</description>
</method>
<method name="get_node_type_info" qualifiers="const">
<return type="Dictionary">
</return>
<argument index="0" name="type_id" type="int">
</argument>
<description>
</description>
</method>
<method name="is_compressing_uniform_channels" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="remove_connection">
<return type="void">
</return>
<argument index="0" name="src_node_id" type="int">
</argument>
<argument index="1" name="src_port_index" type="int">
</argument>
<argument index="2" name="dst_node_id" type="int">
</argument>
<argument index="3" name="dst_port_index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_node">
<return type="void">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<description>
</description>
</method>
<method name="set_compress_uniform_channels">
<return type="void">
</return>
<argument index="0" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="set_node_default_input">
<return type="void">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="input_index" type="int">
</argument>
<argument index="2" name="value" type="Variant">
</argument>
<description>
</description>
</method>
<method name="set_node_gui_position">
<return type="void">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="position" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="set_node_param">
<return type="void">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="param_index" type="int">
</argument>
<argument index="2" name="value" type="Variant">
</argument>
<description>
</description>
</method>
<method name="set_node_param_null">
<return type="void">
</return>
<argument index="0" name="node_id" type="int">
</argument>
<argument index="1" name="param_index" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
<constant name="NODE_CONSTANT" value="0" enum="NodeTypeID">
</constant>
<constant name="NODE_INPUT_X" value="1" enum="NodeTypeID">
</constant>
<constant name="NODE_INPUT_Y" value="2" enum="NodeTypeID">
</constant>
<constant name="NODE_INPUT_Z" value="3" enum="NodeTypeID">
</constant>
<constant name="NODE_OUTPUT_SDF" value="4" enum="NodeTypeID">
</constant>
<constant name="NODE_ADD" value="5" enum="NodeTypeID">
</constant>
<constant name="NODE_SUBTRACT" value="6" enum="NodeTypeID">
</constant>
<constant name="NODE_MULTIPLY" value="7" enum="NodeTypeID">
</constant>
<constant name="NODE_DIVIDE" value="8" enum="NodeTypeID">
</constant>
<constant name="NODE_SIN" value="9" enum="NodeTypeID">
</constant>
<constant name="NODE_FLOOR" value="10" enum="NodeTypeID">
</constant>
<constant name="NODE_ABS" value="11" enum="NodeTypeID">
</constant>
<constant name="NODE_SQRT" value="12" enum="NodeTypeID">
</constant>
<constant name="NODE_FRACT" value="13" enum="NodeTypeID">
</constant>
<constant name="NODE_STEPIFY" value="14" enum="NodeTypeID">
</constant>
<constant name="NODE_WRAP" value="15" enum="NodeTypeID">
</constant>
<constant name="NODE_MIN" value="16" enum="NodeTypeID">
</constant>
<constant name="NODE_MAX" value="17" enum="NodeTypeID">
</constant>
<constant name="NODE_DISTANCE_2D" value="18" enum="NodeTypeID">
</constant>
<constant name="NODE_DISTANCE_3D" value="19" enum="NodeTypeID">
</constant>
<constant name="NODE_CLAMP" value="20" enum="NodeTypeID">
</constant>
<constant name="NODE_MIX" value="21" enum="NodeTypeID">
</constant>
<constant name="NODE_REMAP" value="22" enum="NodeTypeID">
</constant>
<constant name="NODE_SMOOTHSTEP" value="23" enum="NodeTypeID">
</constant>
<constant name="NODE_CURVE" value="24" enum="NodeTypeID">
</constant>
<constant name="NODE_SELECT" value="25" enum="NodeTypeID">
</constant>
<constant name="NODE_NOISE_2D" value="26" enum="NodeTypeID">
</constant>
<constant name="NODE_NOISE_3D" value="27" enum="NodeTypeID">
</constant>
<constant name="NODE_IMAGE_2D" value="28" enum="NodeTypeID">
</constant>
<constant name="NODE_SDF_PLANE" value="29" enum="NodeTypeID">
</constant>
<constant name="NODE_SDF_BOX" value="30" enum="NodeTypeID">
</constant>
<constant name="NODE_SDF_SPHERE" value="31" enum="NodeTypeID">
</constant>
<constant name="NODE_SDF_TORUS" value="32" enum="NodeTypeID">
</constant>
<constant name="NODE_SDF_PREVIEW" value="33" enum="NodeTypeID">
</constant>
<constant name="NODE_TYPE_COUNT" value="34" enum="NodeTypeID">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorHeightmap" inherits="VoxelGenerator" version="3.2.1">
<class name="VoxelGeneratorHeightmap" inherits="VoxelGenerator" version="3.2">
<brief_description>
</brief_description>
<description>
@ -7,22 +7,10 @@
<tutorials>
</tutorials>
<methods>
<method name="get_channel" qualifiers="const">
<return type="int" enum="VoxelBuffer.ChannelId">
</return>
<description>
</description>
</method>
<method name="set_channel">
<return type="void">
</return>
<argument index="0" name="channel" type="int" enum="VoxelBuffer.ChannelId">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="channel" type="int" setter="set_channel" getter="get_channel" enum="VoxelBuffer.ChannelId" default="1">
</member>
<member name="height_range" type="float" setter="set_height_range" getter="get_height_range" default="200.0">
</member>
<member name="height_start" type="float" setter="set_height_start" getter="get_height_start" default="-50.0">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorImage" inherits="VoxelGeneratorHeightmap" version="3.2.1">
<class name="VoxelGeneratorImage" inherits="VoxelGeneratorHeightmap" version="3.2">
<brief_description>
</brief_description>
<description>
@ -11,8 +11,6 @@
<members>
<member name="blur_enabled" type="bool" setter="set_blur_enabled" getter="is_blur_enabled" default="false">
</member>
<member name="channel" type="int" setter="set_channel" getter="get_channel" enum="VoxelBuffer.ChannelId" default="1">
</member>
<member name="image" type="Image" setter="set_image" getter="get_image">
</member>
</members>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorNoise" inherits="VoxelGenerator" version="3.2.1">
<class name="VoxelGeneratorNoise" inherits="VoxelGenerator" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorNoise2D" inherits="VoxelGeneratorHeightmap" version="3.2.1">
<class name="VoxelGeneratorNoise2D" inherits="VoxelGeneratorHeightmap" version="3.2">
<brief_description>
</brief_description>
<description>
@ -9,8 +9,6 @@
<methods>
</methods>
<members>
<member name="channel" type="int" setter="set_channel" getter="get_channel" enum="VoxelBuffer.ChannelId" default="1">
</member>
<member name="curve" type="Curve" setter="set_curve" getter="get_curve">
</member>
<member name="noise" type="OpenSimplexNoise" setter="set_noise" getter="get_noise">

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelGeneratorTest" inherits="VoxelGenerator" version="3.2.1">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="channel" type="int" setter="set_channel" getter="get_channel" enum="VoxelBuffer.ChannelId" default="1">
</member>
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="VoxelGeneratorTest.Mode" default="1">
</member>
<member name="pattern_offset" type="Vector3" setter="set_pattern_offset" getter="get_pattern_offset" default="Vector3( 0, 0, 0 )">
</member>
<member name="pattern_size" type="Vector3" setter="set_pattern_size" getter="get_pattern_size" default="Vector3( 10, 10, 10 )">
</member>
<member name="voxel_type" type="int" setter="set_voxel_type" getter="get_voxel_type" default="1">
</member>
</members>
<constants>
<constant name="MODE_FLAT" value="0" enum="Mode">
</constant>
<constant name="MODE_WAVES" value="1" enum="Mode">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelLibrary" inherits="Resource" version="3.2.1">
<class name="VoxelLibrary" inherits="Resource" version="3.2">
<brief_description>
</brief_description>
<description>
@ -7,6 +7,12 @@
<tutorials>
</tutorials>
<methods>
<method name="bake">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_voxel">
<return type="Voxel">
</return>
@ -25,6 +31,22 @@
<description>
</description>
</method>
<method name="get_voxel_by_name">
<return type="Voxel">
</return>
<argument index="0" name="name" type="String">
</argument>
<description>
</description>
</method>
<method name="get_voxel_index_from_name" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="name" type="String">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="atlas_size" type="int" setter="set_atlas_size" getter="get_atlas_size" default="1">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelLodTerrain" inherits="Spatial" version="3.2.1">
<class name="VoxelLodTerrain" inherits="Spatial" version="3.2">
<brief_description>
</brief_description>
<description>
@ -43,12 +43,6 @@
<description>
</description>
</method>
<method name="debug_save_all_modified_blocks">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_block_region_extent" qualifiers="const">
<return type="int">
</return>
@ -73,6 +67,12 @@
<description>
</description>
</method>
<method name="save_modified_blocks">
<return type="void">
</return>
<description>
</description>
</method>
<method name="voxel_to_block_position" qualifiers="const">
<return type="Vector3">
</return>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMap" inherits="Reference" version="3.2.1">
<class name="VoxelMap" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesher" inherits="Reference" version="3.2.1">
<class name="VoxelMesher" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
@ -12,6 +12,8 @@
</return>
<argument index="0" name="voxel_buffer" type="VoxelBuffer">
</argument>
<argument index="1" name="materials" type="Array">
</argument>
<description>
</description>
</method>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherBlocky" inherits="VoxelMesher" version="3.2.1">
<class name="VoxelMesherBlocky" inherits="VoxelMesher" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherDMC" inherits="VoxelMesher" version="3.2.1">
<class name="VoxelMesherDMC" inherits="VoxelMesher" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherTransvoxel" inherits="VoxelMesher" version="3.2.1">
<class name="VoxelMesherTransvoxel" inherits="VoxelMesher" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelRaycastResult" inherits="Reference" version="3.2.1">
<class name="VoxelRaycastResult" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStream" inherits="Resource" version="3.2.1">
<class name="VoxelStream" inherits="Resource" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStreamBlockFiles" inherits="VoxelStreamFile" version="3.2.1">
<class name="VoxelStreamBlockFiles" inherits="VoxelStreamFile" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStreamFile" inherits="VoxelStream" version="3.2.1">
<class name="VoxelStreamFile" inherits="VoxelStream" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStreamRegionFiles" inherits="VoxelStreamFile" version="3.2.1">
<class name="VoxelStreamRegionFiles" inherits="VoxelStreamFile" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelTerrain" inherits="Spatial" version="3.2.1">
<class name="VoxelTerrain" inherits="Spatial" version="3.2">
<brief_description>
</brief_description>
<description>
@ -35,6 +35,20 @@
<description>
</description>
</method>
<method name="save_block">
<return type="void">
</return>
<argument index="0" name="arg0" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="save_modified_blocks">
<return type="void">
</return>
<description>
</description>
</method>
<method name="set_material">
<return type="void">
</return>
@ -68,20 +82,18 @@
</members>
<signals>
<signal name="block_loaded">
<argument index="0" name="block_position" type="Vector3">
Position in block coordinates. Use [method block_to_voxel] to obtain its origin in voxels.
<argument index="0" name="position" type="Vector3">
</argument>
<argument index="1" name="voxels" type="VoxelBuffer">
<argument index="1" name="voxels" type="VoxelBuffer">
</argument>
<description>
Emitted when a new block is loaded from stream. Note it might be not visible yet.
Emitted when a new block is loaded from stream. Note it might be not visible yet.
</description>
</signal>
<signal name="block_unloaded">
<argument index="0" name="block_position" type="Vector3">
Position in block coordinates. Use [method block_to_voxel] to obtain its origin in voxels.
<argument index="0" name="position" type="Vector3">
</argument>
<argument index="1" name="voxels" type="VoxelBuffer">
<argument index="1" name="voxels" type="VoxelBuffer">
</argument>
<description>
Emitted when a block unloaded due to being outside view distance.

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelTool" inherits="Reference" version="3.2.1">
<class name="VoxelTool" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
@ -7,6 +7,17 @@
<tutorials>
</tutorials>
<methods>
<method name="do_box">
<return type="void">
</return>
<argument index="0" name="begin" type="Vector3">
</argument>
<argument index="1" name="end" type="Vector3">
</argument>
<description>
Operate on a rectangular cuboid section of the terrain. [code]begin[/code] and [code]end[/code] are inclusive. Choose operation and which voxel to use by setting [code]value[/code] and [code]mode[/code] before calling this function.
</description>
</method>
<method name="do_point">
<return type="void">
</return>
@ -25,17 +36,6 @@
<description>
</description>
</method>
<method name="do_box">
<return type="void">
</return>
<argument index="0" name="begin" type="Vector3">
</argument>
<argument index="1" name="end" type="Vector3">
</argument>
<description>
Operate on a rectangular cuboid section of the terrain. [code]begin[/code] and [code]end[/code] are inclusive. Choose operation and which voxel to use by setting [code]value[/code] and [code]mode[/code] before calling this function.
</description>
</method>
<method name="get_voxel">
<return type="int">
</return>
@ -52,6 +52,26 @@
<description>
</description>
</method>
<method name="get_voxel_metadata">
<return type="Variant">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="paste">
<return type="void">
</return>
<argument index="0" name="dst_pos" type="Vector3">
</argument>
<argument index="1" name="src_buffer" type="Reference">
</argument>
<argument index="2" name="src_mask_value" type="int">
</argument>
<description>
</description>
</method>
<method name="raycast">
<return type="VoxelRaycastResult">
</return>
@ -61,6 +81,8 @@
</argument>
<argument index="2" name="max_distance" type="float" default="10.0">
</argument>
<argument index="3" name="collision_mask" type="int" default="4294967295">
</argument>
<description>
</description>
</method>
@ -84,6 +106,16 @@
<description>
</description>
</method>
<method name="set_voxel_metadata">
<return type="void">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<argument index="1" name="meta" type="Variant">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="channel" type="int" setter="set_channel" getter="get_channel" default="0">

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelToolTerrain" inherits="VoxelTool" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="run_blocky_random_tick" qualifiers="const">
<return type="void">
</return>
<argument index="0" name="voxel_count" type="AABB">
</argument>
<argument index="1" name="callback" type="int">
</argument>
<argument index="2" name="batch_count" type="FuncRef">
</argument>
<argument index="3" name="arg3" type="int" default="16">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>