I am working on various 3D demos and showcases using EditableImage as a “rendering backend” to showcase what is possible with the technology. While developing these demos, I discovered that EditableImage has it’s own function to draw a triangle called DrawTriangle.
This would be useful for making 3D in EditableImage and I tried to use it in my code. However, I got an error that my script was missing RobloxScript capabilities to use it. Why this is the case is beyond me, and frankly it makes no sense.
Eventually I wrote my own function to do this, which did work BUT had some other issues such as tearing in between triangles (see the video attached below for my attempt at “mocking” this function)
Today, I had looked back into why this function was behind this capability in the first place. Perhaps it was experimental? Maybe it had bugs? I had to modify Roblox Studio in order to execute code with RobloxScript capabilities, and I switched a single line in my demo code to use DrawTriangle instead of my custom function:
It doesnt have any apparent bugs that I could find and it fixed my other rendering issues that I had with my custom triangle rendering function including the tearing on the borders and between the edges of triangles.
This function has been in the API since version-1e5deb86743148f7 (released in September of 2024, about a year ago) and has not received any API changes since then.