Esri / i3s-spec

This repository hosts the specification for Scene Layers which are containers for arbitrarily large amounts of geographic data. The delivery and persistence model for Scene Layers, referred to as Indexed 3d Scene Layer (I3S) and Scene Layer Package (SLPK) respectively, are specified.
Other
319 stars 85 forks source link

How to adjust 1.7's texture #58

Closed intckarl closed 4 years ago

intckarl commented 4 years ago

There used to be shared resourse in each node to contorl material and texture, but in 1.7, the shared resourse is deprecated, now there is only one materialDefinitions in 3DSceneLayer.json.

So how does it control texture in every node?

ajuanr commented 4 years ago

In 3DSceneLayer.json, the materialDefinitions property is an array of materialDefinitions, which may contain multiple materialDefinitions

The nodepage may contain a mesh.material.definition with the index to the corresponding materialDefinition in the materialDefinitions array, for each node.

Within each materialDefinition some properties may contain a textureSetDefinitionId with the index of the texture in textureSetDefinitions.