How to make transparent mods?
- Objects are opaque when the alpha channel is missing at all, or the alpha value at a specific pixel is black (has a value of 0). On the other hand, fully transparent parts are marked with white pixel (a value of 255). Grey values make the objects see-through.
Changing .txf Files
- The game does not know by default, what it should do with the images alpha channel. This is because the values may be treated in different ways. To solve this ambiguity we use .txf files.
- .txf files are text files. When changing the contents of those files, a text editor must be used. Winword is not a text editor by means. So to change the contents of .txf's use notepad (or any other the like).
- The game recognizes various txf file settings. The most important one's are (please note the quotes)
- "RGB_888" "Opaque"
- "RGBA_8888" "AlphaMask"
- "RGBA_8888" "AlphaBlend/WriteZ"
What do those settings mean?
Textures are uploaded to graphics board using 24bit depth. The alpha channel gets totally discarded, no transparency is used at all. Use this mode when no transparency is wanted.
Textures are uploaded to the graphics board using 32bit depth. Alpha values below 128 indicate that the object is visible, values above mark full transparency. Use this settings to hide parts of normally opaque textures. This is recommended for textures that do not have an alpha channel by default.
- "RGBA_8888" "AlphaBlend/WriteZ"
Textures are uploaded to the graphics board using 32bit depth. The alpha value indicates see-through intensity. Use this mode to make textures partly transparent.
Important Notices
- Semi-transparent objects need to be drawn in a specific order (from back to front). Sorting groups of objects is partly done automatically, but mostly artists need to sort them by hand (assign engine specific layers, etc). Thus, objects that are not transparent by default will sometimes behave a bit odd in regards to drawing (flickering, disappearing parts,...).
- At the time of writing this guide, there's an issue with reloading .txf's. So to say, .txf's are only loaded once when a modded texture is applied, Alt-R will not work for them.
|
| Rating: |
|
| Category: |
Gamerotica Guide
|
| Views: |
5767 |
| Date Added: |
Apr 17, 2009 |
| Last Modified: |
Apr 17, 2009 |
|
I want to create a dress through which you can see any type of active underwear...
i can make the see trough but not the whole area,if i use like 60% of a certain filling it goes to a hundred in game, and if i use 30 % its completely gone in game
You must register to comment, registration is free & easy. Register or login to comment