Skip to main content

All Questions

Tagged with
1 vote
1 answer
50 views

Unable to read depth from buffer when offscreen rendering

I'm trying to read the depth buffer from a frame buffer during offscreen rendering using the gpu.types.GPUFrameBuffer.read_depth() function from the gpu module. No ...
Sandroid's user avatar
2 votes
1 answer
93 views

Drawing a circle that faces towards the view with GPU/BGL?

Im trying to draw a circle using the GPU/BGL module that appears on a given certain 3D position (in my example, the cursor's location) and, when drawing, it points towards the current view. I'm using: ...
Ommadawn's user avatar
  • 668
4 votes
3 answers
415 views

How to draw a specific color with gpu shader

This is a bulid-in shader of gpu module to display a 2D rectangle in viewport, if you check the color of the rectangle via photoshop/MSpaint or use ...
X Y's user avatar
  • 6,023
0 votes
0 answers
36 views

Custom render pass

I'm looking to develop a post-render diagnostics overlay and am not quite sure how to go about it. I can add an opengl overlay to the viewport fine with the SpaceView3D draw_handler_add, but this of ...
Mr MinimalEffort's user avatar
1 vote
0 answers
214 views

Custom render engine - creating material previews with OpenGL?

I'm working on a custom render engine through a Python addon that uses the bgl module for most of its rendering. bl_use_preview ...
hayden0729's user avatar
0 votes
1 answer
324 views

How to force draw_handler_add?

I have a draw function inspired from this answer: ...
cak3_lover's user avatar
9 votes
1 answer
779 views

Anti-Aliasing in GPU shader Module(OpenGL)

How to smooth the bound of the shape? If you run the following script in blender, you can see the Jagged Edge in that shape. ...
X Y's user avatar
  • 6,023
0 votes
1 answer
87 views

why bgl meshes flip when nothing is selected?

As described in API the following script will create a mesh from active object using bgl module: ...
MohammadHossein Jamshidi's user avatar
0 votes
0 answers
407 views

capture data from different cameras

I need this for my video game that I want to start on in Blender Game Engine. I have not figured out how to use multiple cameras and make them give data out without them being active cams or without ...
user104998's user avatar
1 vote
1 answer
708 views

Fast streaming camera view to video for linux (v4l) system device

What i'm trying to achieve is to stream an arbitrary camera view in blender to a v4l device. What i've done so far After reading the community post about streaming the Eevee view on Windows and linux, ...
g3n35i5's user avatar
  • 63
4 votes
1 answer
1k views

Is there a way to render depth buffer into a texture with GPU/bgl python modules?

I need to render depth buffer of Blender's scene into a texture to further use it my shaders. I tried using the common OpenGL recipes for doing that, but none of them worked as it seems there is ...
D. Skarn's user avatar
  • 695
2 votes
1 answer
642 views

How to draw RGBA 2D image in 3d_view with gpu module (or without)?

I just copied and pasted from https://docs.blender.org/api/current/gpu.html#d-image: ...
Cyril Blake's user avatar
1 vote
0 answers
351 views

Render order of triangles is wrong with custom draw handler

Example code from GPU Shader Module (gpu) "Mesh with Random Vertex Colors" renders faces in wrong/weird order, what might be the cause? ...
KJS's user avatar
  • 237
6 votes
1 answer
507 views

How to make voronoi move like living ants?

In Twitter link below, I saw this work by Joe Gatling a few days ago. His voronoi moves like live bugs. How do you create that in Blender? Moving ants with voronoi. Edit. I'm back. I've just ...
Rita Geraghty's user avatar
-3 votes
1 answer
268 views

blf is a module or a parameter?

blf is a module or a parameter? I have read the documentation of blender, and I do not understand well what blf matters, or if it is only a parameter. I ...
user avatar

15 30 50 per page