insomniaworks opened this issue on Feb 09, 2004 ยท 11 posts
maclean posted Tue, 10 February 2004 at 2:57 PM
marty,
This is something that bugged me for a long, long time. I found a fix, but it's a bit klunky.
What you have to do is add a dummy part to the figure's obj file. I used a square made in uvmapper (with enough sub-divisions to cover as many materials as you require). In uv mapper, I assigned a material to each section of the square, then I added it to the figure obj. It must be the 1st part listed in the obj, and you also need to check the order of the materials. Sometimes uv mapper lists them differently.
Then you have to edit the cr2 to make the dummy part invisible in poser. I lock it, scale it to 1%, hide it from the menu, etc, etc. Oh, and make sure the material order in the cr2 matches the obj.
Once you've done all that, the figure will open with thematerials in the order you set them. Here's the text of the blank.obj I use for this. If you copy/paste this and save it with an .obj extension, you can import it to poser as an obj or open it in uv mapper. You can change the materials names to suit yourself.
# file generated by UVMapper
# NumVerts/NumTVerts/NumVNormals/NumFacets 50/144/0/36
# NumGroups/NumMaterials/NumRegions 1/32/0
# x/y/color/ppu 900/675/0/50.00000000
mtllib blank.mtl
v 0.03452630 0.05409500 0.06975000
v 0.03460380 0.05409500 0.06975000
v 0.03452630 0.05417250 0.06975000
v 0.03468120 0.05417250 0.06975000
v 0.03468120 0.05409500 0.06975000
v 0.03475880 0.05409500 0.06975000
v 0.03483630 0.05409500 0.06975000
v 0.03491380 0.05409500 0.06975000
v 0.03491380 0.05417250 0.06975000
v 0.03483630 0.05417250 0.06975000
v 0.03499120 0.05409500 0.06975000
v 0.03506880 0.05409500 0.06975000
v 0.03506880 0.05417250 0.06975000
v 0.03514630 0.05417250 0.06975000
v 0.03514630 0.05409500 0.06975000
v 0.03522380 0.05409500 0.06975000
v 0.03522380 0.05417250 0.06975000
v 0.03460380 0.05417250 0.06975000
v 0.03460380 0.05425000 0.06975000
v 0.03452630 0.05425000 0.06975000
v 0.03468120 0.05425000 0.06975000
v 0.03475880 0.05417250 0.06975000
v 0.03483630 0.05425000 0.06975000
v 0.03499120 0.05425000 0.06975000
v 0.03499120 0.05417250 0.06975000
v 0.03506880 0.05425000 0.06975000
v 0.03452630 0.05432750 0.06975000
v 0.03460380 0.05432750 0.06975000
v 0.03475880 0.05425000 0.06975000
v 0.03468120 0.05432750 0.06975000
v 0.03475880 0.05432750 0.06975000
v 0.03491380 0.05425000 0.06975000
v 0.03514630 0.05425000 0.06975000
v 0.03522380 0.05425000 0.06975000
v 0.03460380 0.05440500 0.06975000
v 0.03452630 0.05440500 0.06975000
v 0.03475880 0.05440500 0.06975000
v 0.03468120 0.05440500 0.06975000
v 0.03483630 0.05440500 0.06975000
v 0.03483630 0.05432750 0.06975000
v 0.03491380 0.05432750 0.06975000
v 0.03491380 0.05440500 0.06975000
v 0.03499120 0.05432750 0.06975000
v 0.03506880 0.05440500 0.06975000
v 0.03499120 0.05440500 0.06975000
v 0.03506880 0.05432750 0.06975000
v 0.03514630 0.05432750 0.06975000
v 0.03514630 0.05440500 0.06975000
v 0.03522380 0.05432750 0.06975000
v 0.03522380 0.05440500 0.06975000
vt 0.02328721 0.78391212
vt 0.10230273 0.78391212
vt 0.10230273 0.97392398
vt 0.02328721 0.97392398
vt 0.12398745 0.78391212
vt 0.20300257 0.78391212
vt 0.20300257 0.97392398
vt 0.12398745 0.97392398
vt 0.22223330 0.78391212
vt 0.30124840 0.78391212
vt 0.30124840 0.97392398
vt 0.22223330 0.97392398
vt 0.32613826 0.78391212
vt 0.40515336 0.78391212
vt 0.40515336 0.97392398
vt 0.32613826 0.97392398
vt 0.43965861 0.78391212
vt 0.51867425 0.78391212
vt 0.51867425 0.97392398
vt 0.43965861 0.97392398
vt 0.55072606 0.78391212
vt 0.62974119 0.78391212
vt 0.62974119 0.97392398
vt 0.55072606 0.97392398
vt 0.66584897 0.78391212
vt 0.74486411 0.78391212
vt 0.74486411 0.97392398
vt 0.66584897 0.97392398
vt 0.02328721 0.50000000
vt 0.10230273 0.50000000
vt 0.10230273 0.69001186
vt 0.02328721 0.69001186
vt 0.12398745 0.50000000
vt 0.20300257 0.50000000
vt 0.20300257 0.69001186
vt 0.12398745 0.69001186
vt 0.22223330 0.50000000
vt 0.30124840 0.50000000
vt 0.30124840 0.69001186
vt 0.22223330 0.69001186
vt 0.32613826 0.50000000
vt 0.40515336 0.50000000
vt 0.40515336 0.69001186
vt 0.32613826 0.69001186
vt 0.43965861 0.50000000
vt 0.51867425 0.50000000
vt 0.51867425 0.69001186
vt 0.43965861 0.69001186
vt 0.55072606 0.50000000
vt 0.62974119 0.50000000
vt 0.62974119 0.69001186
vt 0.55072606 0.69001186
vt 0.66584897 0.50000000
vt 0.74486411 0.50000000
vt 0.74486411 0.69001186
vt 0.66584897 0.69001186
vt 0.02328721 0.02607648
vt 0.10230273 0.02607648
vt 0.10230273 0.21608800
vt 0.02328721 0.21608800
vt 0.12398745 0.02607648
vt 0.20300257 0.02607648
vt 0.20300257 0.21608800
vt 0.12398745 0.21608800
vt 0.22223330 0.02607648
vt 0.30124840 0.02607648
vt 0.30124840 0.21608800
vt 0.22223330 0.21608800
vt 0.32613826 0.02607648
vt 0.40515336 0.02607648
vt 0.40515336 0.21608800
vt 0.32613826 0.21608800
vt 0.43965861 0.02607648
vt 0.51867425 0.02607648
vt 0.51867425 0.21608800
vt 0.43965861 0.21608800
vt 0.55072606 0.02607648
vt 0.62974119 0.02607648
vt 0.62974119 0.21608800
vt 0.55072606 0.21608800
vt 0.66584897 0.02607648
vt 0.74486411 0.02607648
vt 0.74486411 0.21608800
vt 0.66584897 0.21608800
vt 0.02328721 0.24738806
vt 0.10230273 0.24738806
vt 0.10230273 0.43739986
vt 0.02328721 0.43739986
vt 0.12398745 0.24738806
vt 0.20300257 0.24738806
vt 0.20300257 0.43739986
vt 0.12398745 0.43739986
vt 0.22223330 0.24738806
vt 0.30124840 0.24738806
vt 0.30124840 0.43739986
vt 0.22223330 0.43739986
vt 0.32613826 0.24738806
vt 0.40515336 0.24738806
vt 0.40515336 0.43739986
vt 0.32613826 0.43739986
vt 0.43965861 0.24738806
vt 0.51867425 0.24738806
vt 0.51867425 0.43739986
vt 0.43965861 0.43739986
vt 0.55072606 0.24738806
vt 0.62974119 0.24738806
vt 0.62974119 0.43739986
vt 0.55072606 0.43739986
vt 0.66584897 0.24738806
vt 0.74486411 0.24738806
vt 0.74486411 0.43739986
vt 0.66584897 0.43739986
vt 0.78097188 0.24738806
vt 0.85998696 0.24738806
vt 0.85998696 0.43739986
vt 0.78097188 0.43739986
vt 0.89609474 0.24738806
vt 0.97510993 0.24738806
vt 0.97510993 0.43739986
vt 0.89609474 0.43739986
vt 0.78097188 0.02607648
vt 0.85998696 0.02607648
vt 0.85998696 0.21608800
vt 0.78097188 0.21608800
vt 0.89609474 0.02607648
vt 0.97510993 0.02607648
vt 0.97510993 0.21608800
vt 0.89609474 0.21608800
vt 0.78097188 0.50000000
vt 0.85998696 0.50000000
vt 0.85998696 0.69001186
vt 0.78097188 0.69001186
vt 0.89609474 0.50000000
vt 0.97510993 0.50000000
vt 0.97510993 0.69001186
vt 0.89609474 0.69001186
vt 0.78097188 0.78391212
vt 0.85998696 0.78391212
vt 0.85998696 0.97392398
vt 0.78097188 0.97392398
vt 0.89609474 0.78391212
vt 0.97510993 0.78391212
vt 0.97510993 0.97392398
vt 0.89609474 0.97392398
g Figure 1
usemtl center_wall
f 27/1 28/2 35/3 36/4
usemtl center_fill_1
f 28/5 30/6 38/7 35/8
usemtl center_fill_2
f 30/9 31/10 37/11 38/12
usemtl center_fill_3
f 31/13 40/14 39/15 37/16
usemtl center_fill_4
f 40/17 41/18 42/19 39/20
usemtl center_fill_5
f 41/21 43/22 45/23 42/24
usemtl center_outer
f 43/25 46/26 44/27 45/28
usemtl left_wall
f 20/29 19/30 28/31 27/32
usemtl left_fill_1
f 19/33 21/34 30/35 28/36
usemtl left_fill_2
f 21/37 29/38 31/39 30/40
usemtl left_fill_3
f 29/41 23/42 40/43 31/44
usemtl left_fill_4
f 23/45 32/46 41/47 40/48
usemtl left_fill_5
f 32/49 24/50 43/51 41/52
usemtl left_outer
f 24/53 26/54 46/55 43/56
usemtl front_wall
f 1/57 2/58 18/59 3/60
usemtl front_fill_1
f 2/61 5/62 4/63 18/64
usemtl front_fill_2
f 5/65 6/66 22/67 4/68
f 6/69 7/70 10/71 22/72
usemtl front_fill_4
f 7/73 8/74 9/75 10/76
usemtl front_fill_5
f 8/77 11/78 25/79 9/80
usemtl front_outer
f 11/81 12/82 13/83 25/84
usemtl right_wall
f 3/85 18/86 19/87 20/88
usemtl right_fill_1
f 18/89 4/90 21/91 19/92
usemtl right_fill_2
f 4/93 22/94 29/95 21/96
usemtl right_fill_3
f 22/97 10/98 23/99 29/100
usemtl right_fill_4
f 10/101 9/102 32/103 23/104
usemtl right_fill_5
f 9/105 25/106 24/107 32/108
usemtl right_outer
f 25/109 13/110 26/111 24/112
usemtl floor
f 13/113 14/114 33/115 26/116
usemtl floor_outer
f 14/117 17/118 34/119 33/120
usemtl ceiling
f 12/121 15/122 14/123 13/124
usemtl ceiling_outer
f 15/125 16/126 17/127 14/128
usemtl Preview
f 26/129 33/130 47/131 46/132
f 33/133 34/134 49/135 47/136
f 46/137 47/138 48/139 44/140
f 47/141 49/142 50/143 48/144
------------------------------------ If you need any more info, let me know.
mac