Skip to main content

Vertex Buffer Editor

Buffer Editor

It is possible to select the type of imported geometry as ArrayBuffer or IndexBuffer according to different geometrical topologies.
The first delivers higher renders performance (caching, sequentially read) but with the cost of more memory used, as vertices cannot be shared; the last is the best way to use less memory.

A vertex buffer should be selected in the Solution Explorer in order to make those two types of VertexBuffer elements available.

drawing-4-1676439496.png

After the first step, in the Properties panel a new category of properties becomes available: "Asset Vertex Buffer".

drawing-4-1676439508.png

Further, the VertexGeometry is modifiable. Meaning attributes are readable ("Imported"), discardable ("Removed") or added ("Regenerated", "Generated") or signalized as missed ("Missing"). It is possible to convert all Float32 to Float16 selected attributes from vertex buffers. Any possible conversion is indicated in parentheses.

If "Is Indexed" is enabled, the vertex buffer will be converted to an index array buffer, by selecting the optimal index size. Therefore, depending on vertex count, an 8bit, 16bit or 32bit index buffer will be created. BufferType property in AssetData section will specify the effective buffer type.

The following vertex buffer properties can be edited:

  • Normal: Imported (Float 32) / Imported (Float32 => Float16) / Regenerated (Float16) / Regenerated (Float32) / Removed
  • BiNormal: Missing / Generated (Float16) / Generated (Float32)
  • Tangent: Missing / Generated (Float16) / Generated (Float32)
  • Texture Coordinate: Imported (Float32) / Imported (Float32 => Float16) / Regenerated (Float16) / Regenerated (Float32) / Removed
drawing-4-1676439521.png

If the meaning attributes do not fit together, am error message will be given in the Output: "Error Asset Library generation failed..."

As any other properties, the asset vertex buffer properties can be reset if necessary by pressing the "R" button near each of the properties.

According to the changes upon the asset vertex buffer properties, the new values for properties like Vertex Stride, Vertex Count, Vertex Format, etc. will be updated and displayed in the Asset vertex Buffer category from the Properties panel.