ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Graphics Help (https://www.esoui.com/forums/forumdisplay.php?f=176)
-   -   Can I use the blend mode to mask one texture with another? (https://www.esoui.com/forums/showthread.php?t=7184)

Elsys 07/01/17 12:40 AM

Can I use the blend mode to mask one texture with another?
 
Masking one texture with another texture like say I have a circular mask texture can I overlay it on-top of another control and mask a portion of the underlying texture?

ZOS_ChipHilseberg 07/06/17 09:33 AM

No, the GUI doesn't support masking from Lua.

Shinni 07/06/17 10:44 AM

The closest thing to masking is probably to split your image into multiple texture controls.
You can let each control display a subportion of the image via SetVertexUV, so you can create a grid of controls to display the entire image.
Then you can set the alpha of some corners of some controls to 0 via SetVertexColors (or hide an entire control via SetHidden) to create a poor man's version of a mask.
That's how i did the "masking" in TrueExploration:
http://www.esoui.com/downloads/info5...ploration.html
Here I display a parchment image above the map and mask the areas that were already visited by the player to create some kind of Fog-of-War effect.


All times are GMT -6. The time now is 07:46 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI