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
321 stars 86 forks source link

Question: Material Definition #30

Closed Shtirlic81 closed 5 years ago

Shtirlic81 commented 5 years ago

Hello,

I'm trying to understand more deeply the format. Right now I'm focusing on the material.

In materialDefinition there are three parameters that I don't understand:

What do they mean and how should I use them? Why they are defined as array (boolean[])?

Thanks Three of them defined as boolean array (boolean[]). the question is why?

sreinhard commented 5 years ago

Hi @Shtirlic81

vertexRegion: This flag indicates that the geometry has uv region vertex attributes. These are used for adressing subtextures in a texture atlas. The uv coordinate are relative to this subtexture in this case.

vertexColors: This flag indicates that the vertex color attribute of the geometry should be used to color the geometry for rendering.

useVertexColorAlpha: This flag indicates that the alpha component of the vertex color attribute should be used for transparently rendering the geometry.

Why they are defined as array (boolean[])?

They should be defined as boolean. Thanks for bringing this up.

Shtirlic81 commented 5 years ago

Thanks

jfoster126 commented 5 years ago

@Shtirlic81 We updated the spec to include these details. Thanks.

https://github.com/Esri/i3s-spec/blob/master/docs/1.7/params.cmn.md