Forum: Poser - OFFICIAL


Subject: Layered trans maps??

RCT opened this issue on Feb 19, 2004 ยท 30 posts


Spanki posted Sat, 21 February 2004 at 8:41 AM

Hmm... Wordpad might do it, though I'd be a little leary about that. You might want to download an eval copy of TextPad ( http://www.textpad.com/ ) or one of the other freeware/shareware editors. TextPad works great on huge files and has line-numbering display (handy). Anyway, you open the file, scroll all the way down past the 'v' and 'vt' lines and then copy everything below there and paste it back in again. Note that you'll need SOME way to determine where the newly pasted stuff starts, so you either need to take note of the line number of where it will be, or leave a big gap (a bunch of blank lines) so you can find it again after the paste... Then go to the start of the pasted section and rename every material below there. Do NOT rename the groups. You want the new polygons to be in the same groups as the original ones. Group name control how polygons bend, material names are the only thing that control which material is used in the material window. Hmmm... I just checked out the V3 .obj file and mentally walked through doing this task... because of the size of the file (and the way it's laid out) it might be tricky unless you're pretty careful. In the version I'm looking at, you'd copy everything from line 147569 (starts with "g chest") down to the bottom of the file (line 225321). Assuming that your editor lets you copy and paste that much data at once (you may need to break it up into chunks), the next problem will be the way the file is laid out... you'll see something like this at the start of the new section... g chest usemtl SkinTorso f 1894/1943 1316/2658 1293/26 1893/1939 f 1314/2450 1925/1970 1924/1971 1297/25 f 1313/1677 1314/2450 1297/25 1298/24 g neck f 1958/1 1320/1678 1299/23 1957/2004 g chest f 1948/1992 1299/23 1320/1678 1949/1994 g neck f 1967/2 1958/1 1957/2004 1968/3 f 1968/3 1300/2011 1312/1686 1967/2 ...etc. ...note that it starts with the 'chest' group for just a few lines, then switches to the 'neck' group, then back to the 'chest', etc. Again, we're not concerned with changing the group names, but it does the same thing with material names, so you will have to change multiple instances of each material name, being careful not to loop back to the top of the file and changing the original ones. If it were me doing this, I'd use my S.T.O.M.P. program to re-order the facets before doing the copy/paste... I'd sort them by material, so each material would only be listed once. This would also allow me to (easily) ONLY duplicate the materials I was interested in, instead of the entire mesh (you could leave out the fingernails, toenails, various eye materials, tongue, teeth, gums, lacrimals, lashes, brows, etc and only do the various skin materials, for example). Once you pasted the new section(s) in, you'd then only need to change ONE instance of each new material name. Anyway, all of this is speculation, based on good understanding of the .obj format, etc. But if you want to wait a bit, I'll go try some things and report back whether any of this actually works or not ;). - Keith

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.