Sunday, July 10, 2022

Implementation: 3D Mesh

Overview 
In this post we shall deep dive and understand implementing a mesh.

Details
IGeometryMesh
This defines the abstract class that every 3D mesh object must override. It defines methods for generating vertices for the 3D object and populating VBO and EBO buffers of the GPU.  
Methods
NameDescription
GenerateVerticesData


Populates vertex data buffer based on the input.
parameter att contains bitwise Ored type of vertex data. e.g, POS|CLR parameter vaoutl stores generated data in the corresponding buffer.

IGeometryMeshIndexed
This structure defines the abstract class that every 3D object must override. This interface is derived from IGeometryMesh class. It defines methods for generating vertices for the 3D object and populating VBO and EBO buffers of VAOUtil object.

Methods
NameDescription
GenerateIndicesData Populates index data buffer. Index data buffer contains locations number of the vertices.
GenerateVerticesDataIndexedPopulates vertex data buffer based on the input.
parameter att contains bitwise Ored type of vertex data. e.g, POS|CLR parameter vaoutl stores generated data in the corresponding buffer.




No comments:

Post a Comment