Server will automatically create one or more simpler versions of
each asset, using a mesh simplification algorithm.
This could be done either at
- the parsing phase (eg. Collada parsing),
- to completed assets
- for each Geometry node
The first option would be the simplest, and would allow other
future auto-simplifications that would depend on parse-time
context. The simplification could be a strategy that is plugged
into the parser or the JSON builder (probably the parser). Eg.
jsonBuilder.openNode("geometry",
{
cfg: SceneJS.utils.simplifyMesh({ // SceneJS utility that can be used in scene definitions!
level : 2, // Simplification level
positions: [ ...],
indices: [ ... ],
//...
}
});
Second option would be hard - assets are JSON - probably
impossible.
Third option could involve a LOD state for Geometry nodes in
SceneJS.
Links