aquilegia: (Science!)
[personal profile] aquilegia
Using texture referencing with clothing saves space and, unlike copypasting, keeps the clarity of the original texture. It even saves some time, since you only have to create one project and import it as many times as you need.

It only works properly on clothes that use meshes with the same/similar mapping, so it's usually used with age and sometimes gender conversion.

What you'll need:

Files you want to texture reference from
Base files to copy via bodyshop
Knowledge of how to make bodyshop recolours
SimPE

For my example, I am making a TF top that texture references one of Bruno's t-shirts on HP's t-shirt mesh. The mesh I'm using is my fixed version of Migamoo's TF t-shirt.

Definitions--
Referenced file: the file that contains the textures another file references. In this case, it's an AF t-shirt by Bruno.
Referencing file: the file that takes its textures from another. In this case, it's a TF t-shirt.



1. Make a recolour in bodyshop like you normally would, but instead of changing the texture files, re-import it immediately. Since this file is going to texture reference another, its textures don't have to be touched. Give it useful name--here I chose tfbrunotop. This is useful so you have some idea of what it is if you come back to make more later. You can rename the finished files when you're done.






2. Quit Bodyshop and open your original file (the 'referenced' file, in this case, Bruno's AF top) in SimPE. Open the Material Definition (TXMT) resource by clicking on it in the Resource Tree pane. Make sure you're in plugin view or you won't see anything!






3. From here, you need to copy two things: The value of the stdMatBaseTextureName and the stdMatNormalMapTextureName. Highlight the string in the value field then right-click and select copy, or press ctrl-c.






Paste these into a text file. If there is no stdMatNormalMapTextureName, don't worry about it.

4. Close the referenced file and open the referencing file (the tf shirt). It'll be hanging out in your SavedSims folder.

5. Open the Material Definition (TXMT) of your referencing file (the TF t-shirt). Here, you want to copy the string ending in ~stdMatTextureName from your text file, and paste it into the appropriate field.






Copy the the string ending in ~stdMatNormalMapTextureName to its appropriate field.





Click Commit.






If your both your referenced file and your referencing file had a stdMatTextureName and a stdMatNormalMapTextureName, go on to step 6.

If your referencing file lacks a stdMatNormalMapTextureName, you don't have to worry about it; it just won't be bumpmapped. Go on to step 6.

If your referenced file lacks a stdMatNormalMapTextureName, but your referencing file has one, you need to remove the lines referring to it. Click on stdMatNormalMapTextureAddressingU, then click delete. Do the same for stdMatNormalMapTextureAddressingV, stdMatNormalMapTextureEnabled, and stdMatNormalMapTextureName. Click Commit.






6. If you didn't change the description that shows up in CAS and Bodyshop, you can do that now. Click the Test Lists (STR#) resource. If the description is blank, click Add, write your description in the String field, and click Commit.





7. Click the Texture Image (TXTR) resource. In the Resource List pane, click and drag to highlight both texture files. There will be a slight lag, since SimPE will insist on opening one of the textures. Once that's done, right click on one of the highlighted textures, and select delete.








Crossed out means deleted! Save, quit, and check out your file in Bodyshop. Make sure your referenced file is in your Downloads or Saved Sims, or you're going to get a skin-textured piece of clothing.





Tahdah!



Got a skin-textured piece of clothing anyway? You copied over a reference wrong, or forgot to commit your changes after copying over strings, or you didn't delete all of the previous string from the field and now it's garbled. open it up and doublecheck.

If the clothing has lines on it, like it's bumpmapped, you probably copied a stdMatNormalMapTextureName string into the stdMatTextureName field.

Re-name your referencing file to something descriptive. I usually use a variation on the referenced file's name, and I keep it in a folder with the referenced file. Remember, if you delete the referenced file, your referencing file won't have a texture any longer and will have the skin texture of whichever sim is wearing it.


When you're comfortable with this, it's simple to make clothes in batches--import the project as many times as you need files, open the original files one after another to copy strings, etc.

Extra bonus: TFShirtBumpmappedBase.package. This is a recolour of the fixed Migamoo TF tshirt mesh, with a bump map.

Date: 2009-12-12 12:10 am (UTC)
aelia: (Default)
From: [personal profile] aelia
Oh awesome, I was only wondering yesterday just how you did this! Thanks heaps, it'll come in very handy :D

Date: 2009-12-12 04:00 am (UTC)
cavilez: (Default)
From: [personal profile] cavilez
YES! I was wondering how we did this? I was trying so hard to figure it out, but I couldn't. So thank you ever so much for this! =D

Date: 2009-12-19 01:11 am (UTC)
From: (Anonymous)
This is awesome! I have one question - will I have to make a new Bodyshop project for each referencing file?

Date: 2009-12-19 08:46 pm (UTC)
From: (Anonymous)
Okay, I made a mistake - I made my first referencing file, and I made another recolor using the same file (from the SavedSims folder). I got up to step 7, and there was no Texture Image (TXTR) resource in the Resource Tree. So when I saved the file and loaded Bodyshop, the original referencing file was changed to the second file. What did I do wrong?

Date: 2009-12-20 02:39 am (UTC)
From: (Anonymous)
Okay, I see where I went wrong, and I fixed the problem. Thanks so much! I already finished making Bruno's casual layered tops into referencing files for teen female, and I'm working on the second set of casual tops.

Date: 2010-01-09 03:58 am (UTC)
From: (Anonymous)
Finished the first two sets! Bruno's layered and Xandher's weekender tops and recolors, made with the texture referencing technique. Find them here: http://lissasims.livejournal.com/879.html

Date: 2016-01-15 12:02 am (UTC)
ext_945697: (Default)
From: [identity profile] shastakiss.livejournal.com
Very belated thank you! I just wanted to tell you how much I appreciate this tutorial, it's so easy to follow :)

Profile

aquilegia: (Default)
Who's this douchebag?

May 2015

S M T W T F S
     1 2
3456789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 8th, 2025 03:19 am
Powered by Dreamwidth Studios