All Questions
31
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:
...
4
votes
3
answers
422
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 ...
1
vote
0
answers
218
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 ...
0
votes
1
answer
326
views
How to force draw_handler_add?
I have a draw function inspired from this answer:
...
9
votes
1
answer
781
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.
...
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:
...
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 ...
1
vote
1
answer
709
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, ...
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 ...
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:
...
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?
...
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 ...
-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 ...
1
vote
1
answer
1k
views
For Blender, which is the better language to learn - OpenGl or OSL? And why?
I have only yesterday started to learn OSL. Since OSL tutorials are scarce in Youtube, I am beginning to wonder if OSL is becoming obsolete as I get the impression that it is overshadowed by OpenGl. I ...