Create a triangle GUI by using 3 given vertexes

How would you make a GUI that could be a polygonal shape? Now the only thing I see possible for creating a triangle is using an image label but if you used an image label then how could you position the vertex? I guess the only way is to use multiple triangle guis and then make them fill out the triangle.

Any help here?

1 Like

Personally I would use three nested invisible Frames, each with ClipsDescendants enabled and rotated/positioned a certain way, then a fourth colored Frame as the ultimate descendant of the frame pile, as the visible triangle. That’s how I’ve thought about doing it, at least.

Hope this helps,

hi.gi CheeseRespect2019 hi.gi

@CheeseRespect2019 Very interesting idea, however when I tried this, the frames did not clip with ClipDescendants on.

Strange, perhaps just have a mess around with the properties and rotation then find something you like.

image

Maybe something like this can help? There are two right triangles which should allow you to do what I believe your describing. There was an article on the wiki that had all the math to do this in the 3D space, but I can’t find it anymore.

Yes I think the best way is to fill in space using right triangles but the hard part is understanding the math behind it. I have never really focused math onto a game element for a specific thing.

I believe it’s trigonometry. I forget how to do it but look for trigonometry.

I managed to create triangles using frames based on given points by using their Udim2 offsets and filling them.However, the border edges are very poor in quality so it might need more fixing but really I dont know what way is the best way to do this type of thing.

Please tell me how exactly you did this