Jump to content

One mesh, many textures


nikoligrim

Recommended Posts

I'm looking for a simple way through Creation Kit to alter the in-game cigarette cartons and packs. What I would like to do is use the sixteen new textures I've made, (four for each of the cartons and four for each of the packs,) and insert them into the game-world using the same meshes (4). I know I can replace the existing ones but I would like to leave them be and just have the textures randomly applied to the mesh. Anyone have an idea how this can be done?

 

 

Link to comment
Share on other sites

I don't know how it is done, but I might be able to point you in the direction you want to go. There are a lot of clothing mods the use different textures with the same mesh.

 

I believe the texture changes are usually done through the use of a script in an .esp.

 

If you were to download a clothing mod that uses the same mesh but different textures, you could reverse engineer it.

Link to comment
Share on other sites

You can do material swaps to change textures on the same mesh, but I'm not sure how you could apply this worldspace wide randomly.

 

Let's say you make a Marlboro material swap, you would need a new cigarette carton record to call on that MSWP. If the carton was spawned on a leveled list it could be randomized by adding new records with your MSWP. Randomizing cartons would be easy for leveled list containers for example, but I don't know how this could be done for handplaced references in the worldspace.

Edited by Roentgens
Link to comment
Share on other sites

I at one time would have thought this might be impossible, HOWEVER, I use Harness Wardrobe, and the author had help from someone else write a script that injected a randomizer into the leveled lists, so that whenever a raider spawned with a harness, a 'call' would go out and the texture would be randomized. Thus, it can be done - the author of that mod is calyps, but the person who did the scripting for them was RustyXXL.

 

Although clothing works differently than static items on many levels, just the fact that the game can assign a type of (vanilla) outfit, and THEN a script can randomize the style of that particular outfit, means that this should also be able to be done. It would take some serious coding, but whenever the game 'calls' for a texture for a pack of cigarettes (or carton), that bit of code needs to be diverted to the randomizer first, and if it can be done for outfits, its theoretically possible for just about anything else.

 

EDIT: Really nice work on the packs and cartons, BTW. I would love to see this happen (I'd use it).

Link to comment
Share on other sites

Thanks for all the responses, I'm going to have to investigate this more. I'll upload what I have accomplished though, which adds everything to the games vendors and leveled lists.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...