Hello everyone,
I have loaded two meshes with same polygons & vertices, but with different materials on it and different texture coordinates. I succeeded to get all the vertices from both meshes and save their indices, UV texcoords, normals and position into two arrays of my custom struct. But now, I want to create a new mesh with two texture coordinates channels. I planned on doing a search between these two arrays to find matching vertices in both meshes and then save 'em to the new one.
For doing that, I need to create meshbuffers, but I don't know how. So can anyone explain me how to create a mesh, create a meshbuffer, fill it with data and append it to the mesh? I wasn't able to find it using the documentation.
Also, how do I save that mesh into a file?
Thanks in advance,
Geomaster