ideas
This commit is contained in:
parent
fc1c9e843f
commit
ec60086109
23
src/map.rs
23
src/map.rs
@ -12,16 +12,23 @@ u64 num_nodes
|
|||||||
for node_id in 1..num_nodes{
|
for node_id in 1..num_nodes{
|
||||||
u64 parent_node
|
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
|
u64 num_spacial_blocks
|
||||||
for spacial_block_id in 0..num_spacial_blocks{
|
for spacial_block_id in 0..num_spacial_blocks{
|
||||||
u64 node_id
|
u64 node_id
|
||||||
u64 block_id //data block
|
u64 block_id //data block
|
||||||
Aabb block_extents
|
Aabb block_extents
|
||||||
}
|
}
|
||||||
//ideally spacial blocks are sorted from distance to start zone
|
//if the map file references external resources, num_resources = 0
|
||||||
//texture blocks are inserted before the first spacial block they are used in
|
u64 num_resources
|
||||||
|
for resource_id in 0..num_resources{
|
||||||
|
u64 block_id
|
||||||
|
u128 resource_id
|
||||||
|
}
|
||||||
|
|
||||||
BLOCK_MAP_RESOURCE:
|
BLOCK_MAP_RESOURCE:
|
||||||
|
Resource resource_type
|
||||||
//an individual one of the following:
|
//an individual one of the following:
|
||||||
- model (IndexedModel)
|
- model (IndexedModel)
|
||||||
- shader (compiled SPIR-V)
|
- shader (compiled SPIR-V)
|
||||||
@ -30,12 +37,12 @@ BLOCK_MAP_RESOURCE:
|
|||||||
- video (AV1)
|
- video (AV1)
|
||||||
- animation (Trey thing)
|
- animation (Trey thing)
|
||||||
|
|
||||||
BLOCK_MAP_OBJECT:
|
BLOCK_MAP_REGION:
|
||||||
//an individual one of the following:
|
u64 num_models
|
||||||
- model instance
|
for model_id in 0..num_models{
|
||||||
- located resource
|
u128 model_resource_uuid
|
||||||
//for a list of resources, parse the object.
|
ModelInstance mode_instance
|
||||||
//alternatively, BLOCK_MAP_REGION lists a group of objects to be decoded all at once
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user