Quantcast Circle texture - ESOUI
Thread Tools Display Modes
03/29/17, 01:07 AM   #1
Hoft
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 11
Circle texture

I can not find any function to set alpha for conners of square texture.
I just want to draw circle textures from existed square.
  Reply With Quote
03/29/17, 12:33 PM   #2
Dolgubon
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 81
I don't know of any languages that would let you set the alpha of the corner of a square. I think what you're looking for is a way to set how rounded the corners are, and unfortunately I don't know of any way to do so in ESO. I would look into the colour pickers to see how that gets a circle, since they do have the circular colour pickers.
  Reply With Quote
03/29/17, 01:19 PM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 381
I'm not sure, but I think you can bend the edges of a texture control with :SetVertexUV(*[VERTEX_POINTS|#VERTEX_POINTS]* _vertex_, *number* _u_, *number* _v_)
__________________
@votan73 (EU - megaserver)
  Reply With Quote
03/29/17, 02:39 PM   #4
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 66
Originally Posted by votan View Post
I'm not sure, but I think you can bend the edges of a texture control with :SetVertexUV(*[VERTEX_POINTS|#VERTEX_POINTS]* _vertex_, *number* _u_, *number* _v_)
I think you mean SetVertexColors(number vertexPoints, number red, number green, number blue, number alpha)

However, textures are rendered as 2 triangles, so setting the alpha of all corners to 0 will make the entire texture disappear.

It's possible to combine the two methods to render one image via multiple texture controls and blend individual parts of the image (see TrueExploration addon), but this can only approximate a circle.


edit:
Here is an example. There are gradients, but they are rather linear and the diagonals only work in one direction. Circles will be hard to apprximate.

Last edited by Shinni : 03/29/17 at 02:42 PM.
  Reply With Quote

ESOUI » Developer Discussions » Graphics Help » Circle texture

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