From ec60086109fa2706d5ac0ba022cda61d6061ffda Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 16 Jan 2024 18:50:02 -0800 Subject: [PATCH] ideas --- src/map.rs | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/map.rs b/src/map.rs index 81e73b6..df2d59b 100644 --- a/src/map.rs +++ b/src/map.rs @@ -12,16 +12,23 @@ u64 num_nodes for node_id in 1..num_nodes{ u64 parent_node } +//ideally spacial blocks are sorted from distance to start zone +//texture blocks are inserted before the first spacial block they are used in u64 num_spacial_blocks for spacial_block_id in 0..num_spacial_blocks{ u64 node_id u64 block_id //data block Aabb block_extents } -//ideally spacial blocks are sorted from distance to start zone -//texture blocks are inserted before the first spacial block they are used in +//if the map file references external resources, num_resources = 0 +u64 num_resources +for resource_id in 0..num_resources{ + u64 block_id + u128 resource_id +} BLOCK_MAP_RESOURCE: +Resource resource_type //an individual one of the following: - model (IndexedModel) - shader (compiled SPIR-V) @@ -30,12 +37,12 @@ BLOCK_MAP_RESOURCE: - video (AV1) - animation (Trey thing) -BLOCK_MAP_OBJECT: -//an individual one of the following: - - model instance - - located resource -//for a list of resources, parse the object. -//alternatively, BLOCK_MAP_REGION lists a group of objects to be decoded all at once +BLOCK_MAP_REGION: +u64 num_models +for model_id in 0..num_models{ + u128 model_resource_uuid + ModelInstance mode_instance +} */