Update to the latest version of OSGL here!
Featured: RADIUS, An advanced pathtracer for Roblox.
About
What is OSGL?
OSGL (Open-Source Graphical Library) is a fast and lightweight graphical library that makes it easy to render pixels onto EditableImage
objects. With support for drawing shapes, loading textures, and manipulating pixel data, OSGL was built from the ground-up for performance and simplicity.
Originally inspired by CanvasDraw, OSGL was created specifically for Roblox developers who need a reliable tool for pixel-based rendering. It focuses on doing one thing well: giving developers an efficient way to create graphics using the in-built EditableImage
.
Currently in beta, OSGL is already the fastest public EditableImage
library available. Whether you’re building pixel art, animations, or unique visual effects, OSGL will allow you to get what you need, done. If you’re among the users who can use OSGL in live games, we’d love to see what you create!
So, what can OSGL do?
In OSGL, a “Window” is just another name for an EditableImage; a canvas where you can draw anything. You can create shapes, color individual pixels, or load textures directly from your PC in multiple formats to use in-game.
OSGL also includes built-in error handling to make your life easier, catching common EditableImage issues, like the dreaded “buffer out of bounds” error! Scary!
Examples
OSGL v1.2b, v1.3b, v1.4b, v1.5b, v1.6, and currently have no examples.
OSGL v1.1b Examples
144P Shrek, sampled at 15FPS:
Minecraft Wireframe 3D Renderer (60FPS):
Live shading and rotating render:
Quick tutorial
We’re currently working on the tutorial here! For now, you can find documentation on the API on the documentation site.
Contribution
OSGL is an open-source project, and we welcome your contributions! You’re encouraged to edit the source code and share your ideas. Feel free to participate via GitHub, Discord, or even on the DevForum. Your involvement is greatly appreciated!
Credits
While you do not need to credit me for using OSGL, acknowledging the original creator is always appreciated but entirely optional. You are free to modify the source code as you wish, but please refrain from reuploading or claiming the asset as your own work.