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.
[02:10 am]
Ultraviolet -- :mad:
[03:40 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider False hope, unacceptable! https://addons.mozilla.org/en-US/firefox/addon/6984/
my bad, didn't check the validity, but there's definitely other options. Something I found quickly (not tested) https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/?search
[03:36 pm]
Ultraviolet -- l)ark_ssj9kevin
l)ark_ssj9kevin shouted: ClansAreForFriends
Gays are friendly!
[03:35 pm]
NudeRaider -- l)ark_ssj9kevin
l)ark_ssj9kevin shouted: ClansAreForFriends
:wub:
[03:34 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Hate it when that happens
preventable though https://superuser.com/questions/79164/how-to-retrieve-a-lost-text-after-your-browser-didnt-submit-the-text#79166
[2024-10-21. : 4:35 am]
l)ark_ssj9kevin -- ClansAreForFriends
[2024-10-21. : 12:36 am]
Vrael -- think I can donate $15.00 to get CAFG cancelled?
[2024-10-20. : 10:33 pm]
ClansAreForGays -- Ultraviolet
Ultraviolet shouted: ClansAreForGays "ClansAreForGays has donated $14.00." Hefty price you paid
That's like 50$ in today's money
[2024-10-20. : 10:03 pm]
Ultraviolet -- ClansAreForGays
ClansAreForGays shouted: NudeRaider Never was. I donated $ to SEN to allow it.
"ClansAreForGays has donated $14.00." Hefty price you paid
Please log in to shout.


Members Online: Excalibur