Skip to content

Posts from How do you hide textures, change their transparency, and resize them?

No ratings yet — be the first to rate!
7 years ago
Auto-translated
Hello everyone. Could you please tell me how to completely hide specific textures from the game? The only method I've found is to set the value to "false" in the "ProjectOnTerrain" tag within the xdb file responsible for material settings. In most cases, this prevents the texture associated with that file from being displayed in the game. I need to hide the animated symbols displayed under the models of heroes and creatures on the global map. I've disabled this for all creatures and most heroes using "ProjectOnTerrain" in the xdb files (Material). However, for a few heroes, the textures with these symbols are located elsewhere (e.g., KnightSymbol.tga.dds), and they don't have their own xdb files (Material). Instead, there's a different xdb file. The problem is that this file doesn't contain the "ProjectOnTerrain" tag, and even if I add it myself, nothing changes. How can I hide textures in this case? What other methods are available?

Also, I'd like to know how to change the transparency of textures using the game engine itself, or is it only possible to do this in an external program?

Finally, I'm interested in changing the size of textures. Can I scale the size of the textures themselves, or do I need to change the size of the model that uses the texture to achieve this? As far as I understand, there are no models associated with the symbol textures. Or is there some geometry involved after all? How, for example, can I make the animated symbols under the models of heroes and creatures larger or smaller?
7 years ago
Auto-translated
Hello, you've made things more complicated. These symbols are disabled by a script function. Check the documentation. In any case, you can create a texture that only has a transparent background and insert it into the desired location.
In reply to the023
7 years ago
Auto-translated
the023
Hey, you made things more complicated. These symbols are disabled by a script function. Check the documentation. In any case, you can create a texture with only a transparent background and insert it into the desired location.
I found the missing xdb files for the separate textures of the remaining heroes and disabled them in the same way as the others. By using the value "false" in the ProjectOnTerrain tag. I immediately thought about using a texture with a transparent background, but decided to leave this method as a last resort, as it still feels like a workaround.

I haven't gotten around to studying script functions yet, and I don't even know if I'll need them. As far as I understand, it's a whole programming language. I'd like to understand simpler things first.

Statistics

Welcome our newest member: recijeb