Quantcast Can I use the blend mode to mask one texture with another? - ESOUI
Thread Tools Display Modes
07/01/17, 12:40 AM   #1
Elsys
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 2
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?
  Reply With Quote
07/06/17, 09:33 AM   #2
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 459
No, the GUI doesn't support masking from Lua.
  Reply With Quote
07/06/17, 10:44 AM   #3
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 93
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.
  Reply With Quote

ESOUI » Developer Discussions » Graphics Help » Can I use the blend mode to mask one texture with another?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off