Meshbuffers

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Geomaster
Posts: 71
Joined: Tue Oct 21, 2008 3:39 pm

Meshbuffers

Post by Geomaster »

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
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Well, this post should have been made sticky:
Add your own cube node
Should help.
Post Reply