Nice work Fabrice. Seems that i won't need to to manually add each face on the grid. The multiple material support was just what i needed. Thanks a lot, and keep the good work!
2011/5/11 Fabrice3D <[email protected]> > Hi all, > Many requested an update for the Merge class. As it was done in early days > of Broomstick existence, and lots has changed, it was kinda broken > at first, in few cases, lately it was totally useless. > > Now after a serious massage, so far I can test on my machine, it's now > doing the expected: > > - (new) respects of smoothing surface. (you can merge flat and smooth > shaded meshes) > - supports single and (new) multiple materials > - its even bits faster than previous version while doing more. > - (new) its filling submeshes up to their noses to prevent to submeshes > generation unless necessary for shared materials cases. > - supports auto generation of extra submeshes in case of bufferlimit hit. > > Thinks to know: where the previous one was adding submeshes as found in > source mesh, if you would want to keep track of the merged geometry, > it will be necessary for you to keep track of the submeshes/vertices > indices to id shapes where previously a simple submesh offset count was > required. > Reason is simply smaller memory footprint and less uploads. > > That having said, even if I've tested many combos of different meshes and > I'm pretty confident it should be robust. > Its still possible something might go wrong. So please if you have a case > where it fails, deliver me the code+sources so I can debug/enhance it. > > In meanwhile, I'll be updating/cleaning here and there few details and will > write a little demo code that I'll upload asap. > > The baby is in svn. > > Fabrice
