Skip to main content

All Questions

Tagged with
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. ...
X Y's user avatar
  • 6,213
8 votes
1 answer
4k views

How do you remove a draw handler after it's been added?

I'm making an attempt to use batFINGER's method from this answer for drawing some text on screen without a modal operator, but I'm finding I can't get the text to go away once it's been drawn. ...
andyV's user avatar
  • 623
8 votes
1 answer
2k views

Render specific frames with opengl via python

When I run the following script, current_frame is set AFTER the render.opengl(): ...
Erik Bongers's user avatar
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
4 votes
3 answers
423 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,213
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
4 votes
0 answers
609 views

How to use bgl?

I want to render simple lines on the 3D viewport through a modal operator but not using glBegin/End because those commands are deprecated in opengl 3.3 and will not be avaliable on 2.8 leaving me ...
StackOverflowToxicityVictim's user avatar
3 votes
2 answers
3k views

How to draw shapes in the node editor with python bgl

I want to draw a diagram using shapes such as triangles and squares in the node editor. How can I do this?
John Roper's user avatar
3 votes
1 answer
1k views

How can I add a new object on mouse click?

I am looking for a code, that adds an uv sphere on a mesh when a mouse click happens. I saw the topic: Adding new object on mouse click? but there are no answers ...
Ilian Zapryanov's user avatar
3 votes
1 answer
272 views

How get drawing area in callback for quadview?

I need help with Quadview drawing. I know how get the quad using the mouse position, but the problem is get the drawing area in the callback. I have some code like this: ...
Antonioya's user avatar
  • 492
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: ...
Cyril Blake's user avatar
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: ...
Ommadawn's user avatar
  • 648
2 votes
0 answers
363 views

blender 2.8 glRectf() not there

I'm trying to convert a 2.79 add-on to 2.80. I'm running into a problem with openGL function glRectf(). The code that's currently in the add-on draws the menu as follows ...
Eternity Tomorrow's user avatar
2 votes
0 answers
454 views

How to draw custom, complicated ui element

Is it possible to add custom drawn elements to UI? e.g. access OpenGL and draw shapes from code, create some "canvas" in UI and draw on it. e.g. I'd like to create a complicated interface, something ...
Kowalski Paweł's user avatar
1 vote
2 answers
821 views

How to align modal draw to the middle of the 3d viewport?

I have a question about the opengl modal draw : How to align text from a modal draw to the middle of the viewport and and keep it automatic between Tool Shelf and Property Shelf, when i changing them?...
MKB's user avatar
  • 78

15 30 50 per page