DocMatter opened this issue on Jul 02, 2015 · 13 posts
Morkonan posted Fri, 03 July 2015 at 6:50 PM
Since I only have Poser and Photoshop, is there a way I can more easily line up the panties on the dress? (Of course their UV maps don't line up, so I've been trial and error... lots of error!... so far.)
Well, yes... Sort of. :)
First, you need a good UV Seamguide/Map for your dress object. It's all going to be about how well that dress was UVMapped. If it's a crappy UV Map, it's going to be difficult to get "right", much less perfect.
Did the dress come with a "blank" UV Map? If not, download this program, UVMapper - http://www.uvmapper.com/ (The free version.) This is almost a necessity for any Poser user to have, so even if you don't use it with this project, you'll be glad you had it.
Next up, install the program and run it. Find the Dress model and load its .obj file into UVMapper. If it's all one, flat, UV, then that's great. But, if you see that it has multiple UVs assigned to different materials,
then it's a bit more complex... We'll start with an object with multiple maps,first, just in case:
1)Multiple materials with different maps
Here's an example of an object with multiple materials in it, each with its own UVMap. In UVMapper, they'll be stacked on top of each other like this:
http://i.imgur.com/8dgWoNP.jpg (This is Victoria 4)
I have chosen to Color by Materials under Edit->Color->by Material in order to show you all the different UVMaps a bit better. If your dress object has multiple UVMaps, one for each Material, which is common, then this is what you will see. To get a usable UVMap out of this, what you need to do is to select Materials in the Edit->Select->by Material section, scroll to a material that you DON'T think you'll be using (like "buttons" or "zipper" or something) in order to apply your displacement map, and then shrink those materials down until they're just a squiggly black smudge and their UVMap is out of the way, so you can see the material map you'll be working with. Like so:
http://i.imgur.com/NFnJcKI.jpg
See how I have squished all the uvmapped materials I didn't want to work with over to the lower right-hand corner? I've left three maps untouched - The Torso, Hips and Neck materials. It's these materials I'll be working with.
Now, you're going to export your UVMap from UVMapper using the appropriate ratio, but with good resolution for the fine details you'll be adding. To do that, go to File-Save Texture Map and then input the size of the map according to the ratio of the object's texture map. You want good resolution, so don't be afraid to even double the size of the map you're exporting from UVMapper! It's only going to be a few shades of grey, so it will be fairly lightweight. Export the .bmp image file to someplace you can find it. Note: Be sure to NOT choose to "Save Model!" Don't overwrite your original model's UV maps! :)
a) Load up Poser and load your object into the scene. Go to the material room and apply one of these two texture-checker patterns to the difuse node of the material you'll be creating the displacement map for. (ie: The Dress or Skirt or main Cloth material of the dress) The patterns, in two different resolutions, depending upon your needs, are here. (Gleaned from this quick link: http://www.terathon.com/forums/viewtopic.php?f=13&t=548 )
https://i70.photobucket.com/albums/i113/Huidafa/UVTextureChecker2048.png (2048x2048)
https://i70.photobucket.com/albums/i113/Huidafa/UVTextureChecker4096.png (4096x4096)
Important Note: Remember that bit about "ratios?" Yes, the texture-checker image must be the same ratio as the difuse texture you'll be using. So, if you're using something like a Dress_blue.jpg image at 2000x2000 resolution ratio, your dispacement map will have to be that same ratio (1:1) and your texture check must also be that same ration, just to be sure you've got everything exactly lined up. But, while it all has to be the same ration, it doesn't have to be the same resolution. If the original maps are 1:1 ratio, then you can load these texture checkers as they are. If they're at a different ratio, you'll have to resize them accordingly in Photoshop or whatever image editing software you're using.
Delete all the other node materials other than the difuse node. Make sure it is at 1, white base color, and leave Gamma Correction as determined by render settings. You should see something like this in the Pose Scene window:
http://i.imgur.com/4oInX7I.jpg
Ah... You can see where I'm going with this, right? :) NOW, you have an exact coordinate system you can match up with your UVMap in order to create your custom displacement map for the panty-lines you want!
b) Conform the skirt/dress to your figure and conform the panties/whatever that you're creating the displacement map to simulate. Leave Poser open, for ease of reference, then open up Photoshop.
(Note: Because both of these images are in uncompressed indexed color formats, you will have to change them both to something you can work with. I suggest using Image-> Mode -> RGB color for both. Now you can edit/muck with them in relative comfort.)
Now, create a new layer to work on. Reduce the Texture Checker Layer's Opacity to something managable, like 50% and maybe the Fill value at 50% as well, and put that layer above the UVMap. Put your new, blank, layer above that. So, at this point, you'll have something like this:
http://i.imgur.com/H3X0I0N.jpg
Now, you can truly start work!
I'm using some old stuff, so I don't have my in-progress files, since I was just doing this for funsies, to see if I could. But, here's my final result for a displacement texture:
http://i.imgur.com/1yHbxWk.jpg
The texture you come up with can be combined with a blend node with the dress's current displacement texture, if you wanted. That way, you can keep some of the fabric texture displacement. Or, even better, you can use this new displacement texture and overlay it with the dress's displacement/bump texture and then lower the contrast for that original displacement/bump texture in the region where you have your new displacement map texture. Save as a new image and apply that one.
http://i.imgur.com/PPTZPP4.jpg
I turned the bump/displacement up a great deal, so you could see the obvious effect. With this sort of displacement, it's critical to get a realistic shape to the "pantylines" or whatever else you're simulating. That means that areas where they wouldn't press up against and distort the cloth don't get any effects and you should gradually reduce the effect of the stresses on the fabric with your displacement map, fading that out gradually.
Remember - The higher the resolution of your displacement map, the more detail the final product will show. There is no dependency on mesh density, here, just texture resolution. But, if you're worried about memory overhead, which shouldn't be much of an issue with a B&W displacement map, compared to color texture maps, then plan your maps according to the resolutions at which you expect them to be rendered.
Good luck!
PS - I'd have composed a nice and neat post with embedded images, but I hate Renderosity's forum software and I am not going to muck about with it anymore than I have to. :) This post was proudly composed in Notepad!