Hey, it’s been a long while since I made anything on roblox, but I am back with something exciting to share.
3D GUIs have been dreamt of for a long time, but roblox lacked features to accomplish it. Main issue was that you couldn’t draw proper polygons. But thanks to GUI rotation, this is actually now possible…
[center]So I present you my on going project.[/center]
[center][size=6]zGL - 3D user interface[/size]
[/center]
About:
zGL is a graphics library, that provides ability to have 3D user interface. This project is still work in progress, but it has features that shine above other 3D libraries, mainly the polygon support.
Features:
[ul]
[li]Let’s you draw any basic primitive(dot, line, triangle, quad)[/li]
[li]Renders in real-time[/li]
[li]Supports ScreenGUIs and SurfaceGUIs[/li]
[li]Usable with roblox camera or custom camera[/li]
[li]Has basic shading[/li]
[li]Unlimited depth(thanks to magnalite)[/li]
[/ul]
Screencaps:
Lines:
Triangles(webm)
Triangles2 + Custom camera(webm)
Magic behind triangles:
Basic triangle shading(webm version):
Quads:
Makes a neat loading GUI:
Some final words:
This will be public library, but it has several things to work on, to make it complete. That includes few more features, bug fixes and cleaner code, so other coders can expand on it.
As this is not really ready to be released, I am not going to give it to public just yet, but if you feel like giving it a try, I’ve made a git-hub repository: https://github.com/zars15/zGL-robloxUI
Feel free to leave suggestions,
Thanks!
EDIT:
I should give the main post more attention. I’ve posted bit more details on updates in replies, but the status of this library is nearly complete. It can now do proper 3D scenes, but it still needs smarter depth sorting, since right now it simply takes average depth of triangle.
I’ll try to write descriptive readme tomorrow, so it’s simple to get it running.
Also, I just checked performance of it’s current state. Frames are little jumpy, but lowest I recorded was 51, but it tends to jump around 55-60 frames.