gpu-drawing-and-overlays SKILL.md skillB
gpu-drawing-and-overlays from tmhsdigital/blender-developer-tools is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add tmhsdigital/blender-developer-tools/gpu-drawing-and-overlays@git:20261012.83b09cfPins git:20261012.83b09cf in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- tmhsdigital/blender-developer-tools
- Path
skills/gpu-drawing-and-overlays/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261012.83b09cf, committed Oct 12, 2026
- Size
- 11,195 bytes
- Repository stars
- 17
- License
- a license file GitHub does not identify
Draw viewport overlays and offscreen images with the gpu module instead of the removed bgl: SpaceView3D.draw_handler_add/remove symmetry, gpu.shader.from_builtin names, gpu_extras.batch.batch_for_shader, gpu.state for blending, depth and line width (POLYLINE shaders), blf text, tag_redraw, and GPUOffScreen with gpu.init() for --background on 5.2. Use when the user wants a viewport overlay, measurement readout, guide lines, debug visualization or an offscreen render from Python, or hits…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# GPU Drawing and Overlays
## Trigger
Use this skill when the user:
- Wants to draw lines, points, shapes or text over the 3D viewport or an image editor from an add-on
- Has add-on code with `import bgl`, `bgl.glEnable`, `bgl.glLineWidth`, or gets `ModuleNotFoundError: No module named 'bgl'` on 5.x
- Wants to render something with the GPU into an image from a script, including headless
- Sees `SystemError: GPU functions for drawing are not available in background mode`
## `bgl` is gone
`bgl` wrapped raw OpenGL calls, which Blender's Metal and Vulkan backends cannot honour. It is deprecated on 4.5 LTS and removed in 5.x. Measured: `importlib.util.find_spec('bgl')` is `None` on 5.0.1, 5.1.2 and 5.2.1, and still present on 4.5.14. Code that imports it does not register on 5.x at all. Everything below uses `gpu`, `gpu_extras` and `blf`, which work on both 4.5 and 5.x, so no version branch is needed for drawing itself. The `no-bgl` rule flags leftovers.
## The overlay pattern: register, draw, unregister
```python
import bpy
import gpu
from gpu_extras.batch import batch_for_shader
_handle = None
def draw_guides():
obj = bpy.context.active_object
if obj is None:
…Read the whole file at its exact version.
How to install
mdr add tmhsdigital/blender-developer-tools/gpu-drawing-and-overlays@sha256:4b3cb2b2a9dde524The line at the top of this page pins the label git:20261012.83b09cf, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_clrxsdeqpisht6qi)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 12, 2026.
Audit of the latest version
- fail: No script tag (matched: <script)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (11195 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
tmhsdigital/blender-developer-tools · 17 stars · license a license file GitHub does not identify · pushed 2026-10-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_clrxsdeqpisht6qi GET https://markdownregistry.com/api/v1/resolve?ref=tmhsdigital/blender-developer-tools/gpu-drawing-and-overlays GET https://markdownregistry.com/api/v1/blob/4b3cb2b2a9dde524e0e25073729bb151541d39d71c4e95150866571347dc83f2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.