combinig meshes to a single one

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
TheGameMaker
Posts: 275
Joined: Fri May 12, 2006 6:37 pm
Location: Germany

combinig meshes to a single one

Post by TheGameMaker »

Hi,
Is there a easy way to combine different Meshes to a big one?
I've got something like 2500 Copys of a very simple mesh...
At this amount of meshes the overhead takes quite a whole bunch of time...
(reseting & calculating the matrices etc.) So I Would like to combine them to a few bigger ones... (they got about 8 different textures, so I would have to use 8 different Meshes.)
Is there a way of doing that, easier than using an own scenenode??

thx in advance tgm

sry, stupid me...
IMeshBuffer::Append(); just seems to be what I was looking for... but is there a way of easily adding transformation before combining two buffers?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Check the mesh manipulator. You have to create a copy of the mesh first, then apply transformation, finally either add to the meshbuffers (if only a few vertices) or just add the meshbuffers directly.
TheGameMaker
Posts: 275
Joined: Fri May 12, 2006 6:37 pm
Location: Germany

Post by TheGameMaker »

thx ;)
Post Reply