Open
Description
Summary
LOD
We will be adding a few properties under a "LOD" object for the "Model" entity type.
lod: {
mode: 'auto' // 'auto' or 'manual', if auto then the levels are disregarded and the engine / client's auto LOD system is used.
levels: [
0: { url: 'https://google.com/mymodel-slightly-decimated.glb', distance: 5 }, // Can use a new URL for separate models
1: { url: 'https://google.com/mymodel-very-decimated.glb#NewTree_LOD1', distance: 10 }, // Or you can access the index on that model
2: { url: '#NewTree_LOD1', distance: 25 } // This will access an index relative to the main model URL for the entity without having to repeat a URL
]
}
Engines
- Babylon.js - Auto LOD
- Unreal Engine - Nanite
Load Priority
loadPriority: 43
This property is applied to all entity types. It is a number from 1-255 (or whatever a good max integer is for the packet). This property is utilized by a client to determine which asset should be downloaded and loaded first.