PDA

View Full Version : Exporting UV Maps for Better Clothing Recolours


HystericalParoxysm
30th Mar 2006, 1:32 AM
Clothing meshes may have strange texture mapping, and though the recolours of them you have may provide some clues to help in creating your own textures for those meshes, it is often helpful to have the uv map for that mesh, so that you can see exactly how the mesh is laid out, and get a much clearer picture of what distortion you may be dealing with.

It's also a great next step to take if you've been thinking about creating your own meshes at some point in the future, as you'll be looking in similar places in SimPE, and learning a little about uv maps, too. :)

You will need three free tools with to do this:


SimPE, to export the 3d model for the mesh.
The Managed Direct X Extensions, listed on the SimPE download page under "Needed Software to run SimPE" - this is different from the DirectX you've already installed for the game, and you will get an error when you try to open the mesh in SimPE if you haven't downloaded and installed this.
UV Mapper Classic, to view and export the uv map as an image.


You'll also need at least one recolour of the mesh you're recolouring.

This is an intermediate tutorial, written for people who are fairly comfortable with a computer, and have been successfully creating clothing recolours already; this should be considered yet another tool you can use to make your recolours that much better.

Note: many of the basic Maxis mesh uvmaps have already been extracted for you here (http://www.modthesims2.com/showthread.php?t=214890)

HystericalParoxysm
30th Mar 2006, 1:33 AM
Though most Maxis meshes have fairly intuitive mapping, if you're doing something tricky, it can be nice to be able to apply the UV map to the mesh and preview it in Body Shop, and/or overlay it as a multiply layer over your texture in Photoshop to see exactly what's going on.

If you're recolouring a Maxis mesh, check this thread (http://www.modthesims2.com/showthread.php?t=214890) to see if someone's already exported the UV map. May save you some time so you don't have to bother.

The way you'll find the 3d model to export differs if you're doing a Maxis mesh or a custom mesh.

To export the 3d model for a Maxis mesh, start by opening a recolour of that mesh in SimPE to find the name of the mesh it's recolouring.

http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403386-openpackage.jpg



A. Select the Property Set.

B. Look under the Plugin tab. You may have more or less tabs at the bottom of your SimPE than shown. If you don't have a Plugin tab there for some reason, you can bring it up through Window - Plugin View.

C. Select the line that starts with 'name (dtString)'

D. To the right, under Value, will be the name of the mesh for that recolour. Select and copy the name. Don't include the underscore or anything after it.

http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403387-findname.jpg

Now we need to locate the package file that holds the actual 3d model with that name.

Window - Resource Finder will bring up another docker that will allow you to search for models with that name. "In Namemaps" should already be selected for Find: and Match: should be already set to "Contains". Paste the name of the mesh we're looking for in the box below and click Start. If the Namemaps are not found for you then click on the little arrow (see redbox on picture) and select from the list.

http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403390-resourcefinder.jpg

It will take a few moments to search for a mesh with that name, and the search bar may run multiple times.

E. In the results, look under the list of resource names, and double-click the first Geometric Data container. Make sure you double-click the first one, not the one that includes 'LOD15' in the name.

If you need more room to see the names, you can always drag out the Resource Finder docker a little bit as shown.

http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403392-thisgmdc.jpg

SimPE will open the package file containing the 3d model for the mesh. The package files that hold the game's 3d models are very large files, containing many models, so it may take quite a while for it to open the file, and for SimPE to start responding again.

You can now close the Resource Finder by Xing the upper right corner on its docker. You can see the long list of 1500 geometric data containers (GMDCs) listed in the Sims03.package file now open, and we've got the particular GMDC we're looking for already selected.

F. Again, under the Plugin view, look under where it says Models. There should be only one item listed; this technique will only work properly if there is only one, but most body meshes only have one. You can still try it if the mesh has multiple groups, but the results are often not very useful (confusing overlapping, etc.)

G. Click Export to save your mesh as an .obj file. The name and where you save it don't matter much - put it somewhere you can find it easily, and name it something that makes sense to you. You can leave it the default filename if you want.

http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403394-export.jpg

HystericalParoxysm
30th Mar 2006, 1:35 AM
I'm going to assume that you know what meshes you have downloaded, and what meshes are used for what recolours. If you're recolouring clothing for redistribution, you'd better! :) If you're just disorganized, check out Loverat's guide to subfolders and get organized first, then come back.

Why do you need to be organized? For custom meshes, you have to be able to find the mesh file itself; the names in the recolours won't be correct.

Open the .package for the mesh itself in SimPE. For demonstrative purposes, I'm using this mesh by me here.

A. Select the Geometric Data Container
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403381-01.jpg
B. Look under the Plugin tab. You may have more or less tabs at the bottom of your SimPE than shown. If you don't have a Plugin tab there for some reason, you can bring it up through Window - Plugin View. Look under where it says Groups. There should be only one item listed; this technique will only work properly if there is only one, but most body meshes only have one. You can still try it if the mesh has multiple groups, but the results are often not very useful (confusing overlapping, etc.)
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403383-03.jpg
C. Click Export to save your mesh as an .obj file. The name and where you save it don't matter much - put it somewhere you can find it easily, and name it something that makes sense to you. You can leave it the default filename if you want.
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403382-04.jpg

HystericalParoxysm
30th Mar 2006, 1:38 AM
Open UV Mapper, and File - Import Load Model. Choose the .obj file you exported from SimPE. It will give you a screen with statistics about the model. Then, you may get a Warning that reads, "The model you have loaded contains out of range UV coordinate data. Would you like to correct this?" You may get this message if you try to import a mesh with multiple groups (which won't work for our purposes), or it may also occur with normal meshes with single groups. Telling it Yes should allow you to view the proper UV map.
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403385-07.jpg
File - Save Texture Map will allow you to export the uv map as a bitmap (.bmp) image, which you can then apply to your clothing mesh, and use as a guide for recolouring in your graphics program of choice. Most clothing textures export out of Body Shop at 1024x1024, so that's generally a good size to save your UV map at.
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403393-08.jpg
And this is the bitmap in Gimp:
http://thumbs2.modthesims2.com/img/3/1/3/3/7/MTS_HystericalParoxysm-1403391-09.jpg

:alarm: If you try to apply this technique to meshes with more than one group, or some Maxis/custom meshes with strange mapping, you may get unexpected results... Seams may not match perfectly, things may be distorted. Why this occurs, I don't know. It doesn't happen with all meshes, but several come out weird. My apologies if this is the case with the mesh you're working with, but I do hope this will still be useful for most meshes, and will at least make some things easier for you.

kishma_ash
30th Mar 2006, 2:13 PM
Thanks a million times over this is exactly what i was looking for !

mab3796
17th May 2006, 12:34 AM
Wow, that explains a lot. I was just guessing before. This should improve my recolours greatly!! Thankyou
PS How come you know so much about this stuff? LOL :)

princess_serenity14616
20th May 2006, 11:29 PM
:D Thank you so much for this tutorial. You answered in 5 minutes what I spent three hours looking for. I like your tutorial because it is well written and very easy to unstand. Well thanks again. :D

Darsky
1st Aug 2006, 3:17 AM
Thank you so much for the tutorial! You were very concise and straight forward. I'm pleased to report everything worked perfectly the very first time I tried it! (3 minutes ago... tee hee)

I read the "Beyond Photoskinning: Transformation and Displacement Mapping in Photoshop" first (Thanks Again!), and now I can't wait to apply the techniques from both tutes to a sundress recolor.

You are awesome, indeed!

Dara, aka Darsky
:D


Clothing meshes may have strange texture mapping, and though the recolours of them you have may provide some clues to help in creating your own textures for those meshes, it is often helpful to have the uv map for that mesh, so that you can see exactly how the mesh is laid out, and get a much clearer picture of what distortion you may be dealing with...

2Sim2Quit
1st Aug 2006, 3:11 PM
I was good until "copy and paste" looking for the mesh. I am not able to copy unless there is a trick I am not aware of. (right click or using "file" doesn't work) I typed the name in and it would appear there was a search, but my results window comes up empty every time. I am assuming I am missing something that is staring me in the face.

pixie
16th Aug 2006, 9:38 PM
2Sim2Quit: try ctrl+c to copy, then ctrl+v to paste. That works:)

I tried to export UV map for one of Maxis's skirt meshes. Not that it's a major problem, but still weird - the mesh was called "afbottomcaprisneaks". And when I got the UV map, capris was what it displayed. :blink: How can it be? I mean, the mesh I chose has semi-high heels and it's skirt after all.

tiggerypum
17th Aug 2006, 1:26 AM
Pixie,
I don't know how you determined the mesh was called 'afbottomcaprisneaks' -- because it sounds to me like you got the uvmap for exactly that. Maxis is odd, but their naming conventions are not that odd.

This is a Maxis skirt mesh? Not a user made mesh? Because a user made mesh will have the name of the Maxis mesh the creator originally used to build the recolor file with in the bodyshop file.

Assuming it is a USER MADE mesh, open the user made mesh package with simpe, click on the gmdc to make it show in the plugin view, then continue on with Step F.

pixie
17th Aug 2006, 3:00 AM
Ah, I think I know why this happened... The mesh was definitely Maxis's, I actually opened my own recolor of Maxis skirt (the one that is originally in plain red, slightly above knee). But back when I made the recolor, I also added a bump map to it - following Morague's tutorial - which Maxis skirt originally didn't have. I did it a while ago and can't recall exactly which mesh I used as source, but it could as well have been the capris mesh.
:rolleyes:

metalfenix
27th Aug 2006, 3:24 AM
Hysterical, I can't thank you enough for this tutorial!! I was having problems with a recolor right now, and the UV map that I did thanks to this tut is helping me a lot!! Maybe I can do a version of your tutorial in Word? it may be helpful if one is offline.

thehobbitwaffle
24th Oct 2006, 11:39 PM
Thank you! It will really help me, and it was amazingly simple to do ^^

kanno
26th Oct 2006, 12:43 PM
THANK YOU SO MUCHHH ... that's one of the most useful threads I've read about meshing and recolouring ...

nixie
2nd Dec 2006, 1:46 PM
Thanks alot for this tutorial. it is very useful. appreciate it alot.

tacos
19th Mar 2007, 12:53 AM
thank you for think tutorial

but i have a questionrecently ive been making major and my first career i never know how to make mesh. well anyway i have done everything correct but i still dont understand what im suppose to do with this. what is it for once its in my paint net. assuming i can use paint net because it has shown up in it? please help

HystericalParoxysm
19th Mar 2007, 8:31 PM
tacos, this tutorial merely teaches you how to export the uv map to do your recolours in whatever program you choose - it's not about editing textures, and only uses SimPE and UV Mapper. You can then use the uv maps in Paint.NET if that's what you use.

Mailman
3rd May 2007, 1:58 AM
Thanks A LOT! I just started making my own skins and this is exactly what Ive been looking for! :)

$RaMRoM$
31st May 2007, 1:39 PM
ThAnKs! thanks HP!

everWinter
30th Jun 2007, 8:42 AM
Hey thanks, this is very useful! But I tried to do this with H&M but it doesn't seem to find the base mesh.

HystericalParoxysm
30th Jun 2007, 8:51 AM
Yeah, it's not going to because your SimPE isn't set up for it. You have to go into the SimPE settings and under where you tell it where all your EPs are installed, you'll have no blank for H&M. However, what I did (as I'm working on an H&M mesh edit right now) is changed the entry for Celebration Stuff (which I don't have) to the directory for H&M Stuff and Resource Finder finds the stuff just fine. All that does is tell it "look in here for game files" - it doesn't care which they are.

everWinter
30th Jun 2007, 9:08 AM
I found another work around - if I open the H&M folder up in SimPE first I can then search for the mesh that way. Its in the 3D folder in one of the sims packages.
I have Celebrations as well so I don't really want to overwrite the path to it, I'll forget if I do that and then I'll be scratching my head thinking "but it worked before *scratch scratch) LOL

Thanks for the quick reply, I can move onto the next step of your great tute :D



OH GOD !!! thankyou thankyou!!!! :giggler:
It works! Now that I can make sense of whats what I can move on. LOL

billielith
10th Aug 2007, 5:03 AM
I came here in order to do your "Beyond Photoskinning" tut, but I think this will be useful for many cases. Thank you again.

Simcoatl
13th Nov 2007, 2:09 PM
THANK YOU SO MUCH!!
I've been looking so long for this and your tutorial is so easy to follow. You really helped me a lot :) thanks again

Buzzler
8th Apr 2008, 5:43 PM
Is there some kind of trick to get the uv map decently aligned to the texture? The uv mapper doesn't really cares about the borders and position, which is especially bad for recoloring bottoms or tops. The uv map is pretty much of no use when you have to guess where to put it and how to scale it...
TIA

Netgirl
9th Apr 2008, 10:52 PM
Thank you for the great Tutorial, it's amazingly helpful!

I still have a question: Is there a possibility to get an UV Map of a Sim's face? 'Cause I'm working on a patterned skintone, I've already found the Map for the full body, but I need the face map to know where exactly I can connect the parts together at the neck. I hope anyone can help me find it or export it by myself, I didn't find anything in the forums

RogueDragon
10th Jun 2008, 2:52 AM
I still have a question: Is there a possibility to get an UV Map of a Sim's face? 'Cause I'm working on a patterned skintone, I've already found the Map for the full body, but I need the face map to know where exactly I can connect the parts together at the neck. I hope anyone can help me find it or export it by myself, I didn't find anything in the forums

Have you had any luck finding a map for the face? I've been looking everywhere. My computer rejects Milkshape for some reason and all that, so I can't even make one.

Actually, all of my searching wasn't entirely fruitless; I found half of a face map somewhere and I can't figure out where! but since there was a copy on my computer, I posted it at my photobucket account:
http://i159.photobucket.com/albums/t144/RogueDragoness/Sims/UVMap4Face.jpg

I.want.blood
9th Aug 2008, 11:08 AM
thank you
[=

Ralol6
10th Aug 2008, 12:15 AM
Thanks so much! =) I've had some troubles with skinning and recoloring earlier. I'm wondering, can SimsPE also be used to resize the sim's clothing or skin sizes? Mabey you could make a tutorial on that too if you find out how.

drummer4life5439
7th Sep 2008, 10:15 PM
Oh my god! Thanks so much! I love you. :D

virahnica24
29th Oct 2008, 5:14 PM
Thank you. This was simple and easy to use and understand and will help me greatly.

jewelzforever
30th Dec 2008, 12:41 AM
This tutorial is very helpful! but...

On the "Exporting the 3d Model for a Custom Mesh" part:

What does it mean by: "Open the package for the mesh itself in SimPE" on step 1 ?

It wont let me open up the alpha file on SimPe

also

On the "Exporting the 3d Model for a Maxis Mesh" part:

nothing shows up for me after I copy and past the name, while i dont include the underscore and i copy from the "name (dtstring)" line. which is in step E

CatOfEvilGenius
18th Jan 2009, 11:52 PM
HP - In post #3, the small image is tutorial4.jpg (correct), but clicking on it takes you to tutorial1.jpg (bad link).

jewelz Please post your question in the Create forums. But while I'm here...

What does it mean by: "Open the package for the mesh itself in SimPE" on step 1 ?It means double click the mesh package. When you download custom clothing, and it comes with a mesh and recolors, the mesh is usually in its own package, and its name usually starts with "MESH".

It wont let me open up the alpha file on SimPEBodyShop separates color and alpha into two images. SimPE does not, it combines them in one image (color + alpha). That's the image in the TXTR resource. If you want just the alpha, export the image from TXTR with the Export button, then open it in GIMP, and do "add mask", then select "transfer layer transparency", then copy the mask.

On the "Exporting the 3d Model for a Maxis Mesh" part: nothing shows up for me after I copy and past the name, while i dont include the underscore and i copy from the "name (dtstring)" line. which is in step E What exactly are you searching for? Type the exact word you looked for, so we know why it didn't work.

sushigal007
4th Jun 2011, 12:58 AM
I know it's been years since this thread was last replied to, but I'm recolouring an outfit with a dodgy neckline and thought this tutorial might help, but all the images are down. Is there any chance of them being reuploaded?

fakepeeps7
4th Jun 2011, 1:09 AM
I know it's been years since this thread was last replied to, but I'm recolouring an outfit with a dodgy neckline and thought this tutorial might help, but all the images are down. Is there any chance of them being reuploaded?

First, check if the UV map you need is in this thread (http://www.modthesims.info/showthread.php?t=214890); then you won't have to export it yourself.

As for the images in the tutorial, they're not really necessary. It looks like all the instructions are there. Read carefully, and you should be able to follow it.

sushigal007
5th Jun 2011, 10:46 AM
It's a custom mesh, so I doubt it'll be there, but thank you, I can see that thread being very handy! I'll have a reread, I have to admit I stopped short as soon as I reached the first missing image.

sushigal007
7th Jun 2011, 2:15 PM
OK, I exported the OBJ file from the GMDC, but when I tried to open in in UV mapper, I got the error message "This OBJ file has no facet information." Does anyone know what that means?

ETA: Ah, ignore me. There was no tick on the model. Once ticked and exported, it worked.