Staredit Network > Forums > SC2 Assistance > Topic: Tutorial: Changing Textures
Tutorial: Changing Textures
Apr 26 2012, 12:01 pm
By: Ahli  

Apr 26 2012, 12:01 pm Ahli Post #1

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Changing Textures of a unit:

1. Get the name of the texture from model previewer. It's something like "marine_diffuse_blood".



2. Go to the model, edit the texture declarations, add an entry in the top box, select it, add an entry in the middle box. Then edit the "Trigger on Substring" to use the texture name you just looked up. Set the slot to "main". If you have different areas in the model (for example thor), you can switch to use other slot names like hair or body. Sadly I've no list of these names and I don't know how to find all slot names. :(



3. You need to create a new texture object in the editor, too. You need to set the slot to the slot you used before like "main" and then you can append the usage of the texture as diffuse or specular or normal with this information as a suffix added after a "." as seen on the screenshot. So you just write "main.diffuse" to change the diffuse texture in the main slot. Don't forget to select your new texture that should be applied.



4. You can trigger the texture change whenever you want in actors. You just need an event. If the unit should always have another texture, you can use "ActorCreation" as the event. Else you could trigger it with a behavior.



5. Test the map and check out your result.


Further knowledge:
- Textures can only used by one unit type at one slot at once. So you might need to create multiple textures to overcome this issue.
- These changes aren't seen in the terrain module of the editor, you need to test the map to see the changes.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet