View Full Version : How do you re-order Polygon vertices?
Rick Davidson 02-27-2005, 09:35 AM Hi guys
I have a problem in my blend shape creation. Having created all the shapes I now see the vertex order is different on some, resulting in 'mushed' blends. To prevent redoing all the shapes, I need to reorder the vertices.
I've trawled the forums and found Mr Homer's solution 'ReconstructMesh' on HighEnd3d (thanks John). Perfect! Unfortunately it only works on 5.0 (using 6.0). No luck exporting as obj or converting to SubD and back. Anyone have a solution?
|
|
Dialector
02-27-2005, 06:13 PM
Please pardon me if this is off track as Im just winging a guess.
As the obj format is just in a text file, and if all you need to do is renumber all the vertices, then it might be relatively simple to write a script to parse the text file and reorder the vertices directly.
Of course "relatively" is the key word. If you dont know how to script at all this is not an option. However you might be able to find some kind of VB script, python or some other type of script that can read text files and make changes, then adapt that.
The difficult part is that I dont belive the vertice index is actual info in the file but dependent on the order in which vertices are defined in the text. The actual index numbers would be created by Maya when it reads the file. Thus, you would have to write a script capable of reordering the vertice data. This might would be more difficult than a simple renumbering of an existing list of numbers.
You might also want to check out the newest version of UVmapper. I heard it can reorder vertices. Below is text from the website:
-------------------
Many tools included:
- Vertices: weld, split, reorder, displace.
- Normals: smooth, fix seams.
- UVs: stitch, weld, relax, align.
- Facets: concave, degenerate, collinear, align, invert, triangulate, two sided.
- Model: spherify, subdivide.
--------------------------------
Thier URL is: http://www.uvmapper.com/
Then again there may be some way of doing it in MEL. But Im not familiar enough with Maya to know.
Rick Davidson
02-27-2005, 08:33 PM
Thx Dialector, I didn't consider reworking the obj file. Nice idea. UV Mapper could be an option, looks like only available in the Pro version tho.
I'm suprised there isn't a standard method of doing this in Maya, as it would make creating blendshapes and other processes a breeze. Wouldn't have to worry about flipped shapes etc. I see a lot of people on the forums having the same problems, and most seem to have remade the shapes again. Painful.
I've mailed the creator of ReconstructMesh, Changmin Heo to see if he has plans on updating for ver 6.
RedFish
09-03-2005, 11:26 PM
hey Rick
did Changmin Heo ever get back to you? is there a version for 6?
Blue Bird
09-04-2005, 01:49 AM
There is a plugin called Reconstruct Mesh Tool that you can download from highend3d, but only available for Maya 4.x & 5. So if you still has an old version of Maya around, then you are in luck.
Bird
stallion151
09-04-2005, 02:59 AM
yeh i emailed that guy regarding this very issue about 7months ago, i don't recall getting a response.
Nicool
09-04-2005, 02:36 PM
Don't the guy provide his sources for free downloads anywhere?
About hte reordering vertices problem, it is due to the Maya specific engine architecture (as I read in posts of coding skilled guys around here).
As Dialector mentionned, a preprocessing of the obj file could do the trick, but maybe maya would destroy the reordering on importing this file (whatever modifications were). So, but we still don't know what your coding skills are, you could code (simply in mel) your obj importer by yourself. Some parsing and a big usage of polyCreate function are only what you need. Creating face by face.
Otherwise, why don't try other formats like .3ds to see if verteices ordering and importign are issues too?
There is a classic (maybe free) version of UVmapper on donwloads page : http://www.uvmapper.com/downloads.html (check if the reordering tool is featured in this bundle)
Rick Davidson
09-04-2005, 11:09 PM
Yeah, when I contacted the creator of Reconstruct Mesh he wasn't able to provide an updated version because he didn't have the later apps. Don't know if anyone out there with coding skills wants to try him again for his code? I doubt it means much to him now. Was a very useful tool, meant you didn't have to worry too much about how you created your blend shape, as long as the end result had the right number of verts.
I've tried UV Mapper and 3ds export imports, no good from what I tried. I did look at the structure of the obj txt file, I think it could be worked but would need some clever manipulation.
stallion151
09-16-2005, 01:10 AM
do you know if i can get my hands on the source code for that...are you still in contact with him?
CGTalk Moderation
09-16-2005, 01:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.