odf opened this issue on Oct 27, 2008 ยท 13933 posts
odf posted Wed, 02 November 2011 at 5:15 PM
Hey Spanki,
Like Cage said, I wrote some tools for this kind of thing, back in the day. They match mesh topology, not positions or orderings, so they should be pretty robust. Basically, you can take two meshes with the same topology and transfer any kind of information - vertex positions, UV positions, grouping - back and forth between them. I used this a lot while working on Antonia, particularly for propagating UV maps from the low-res to the high-res version and such.
I've never really bothered to give these tools a decent API or at least prettify the command line interface. But if you want them, and I can still get them to compile, you can have them. If you prefer source code, you can find that here: https://github.com/odf/scala-meshes
The code is pretty ugly, because it was my first exercise of programming in Scala (which I since have abandoned as a language). Otherwise, I'd have suggested that you could just study what I did and replicate it. :-)
Cheers,
O.
-- I'm not mad at you, just Westphalian.