All Questions
Tagged with opengl gpu-module
6
questions
1
vote
1
answer
52
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 ...
2
votes
1
answer
95
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:
...
2
votes
1
answer
545
views
Drawing to multiple render targets using the GPU module
Is there a way to draw to multiple render targets at once using the Blender's GPU module? I am looking for something similar to glDrawBuffers in OpenGL.
Say, for example, my fragment shader looks like ...
3
votes
3
answers
1k
views
How to make rounded corners for 2d rectangle with a custom shader?
Does anyone know how to make rounded corners for a 2d rectangle with a custom shader?
...
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:
...
2
votes
1
answer
644
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:
...