Skip to main content

All Questions

Tagged with
1 vote
0 answers
277 views

Python BGL Draw text in the node editor

I have an operator (MyOperatorTest). How can I make it so that when this operator is run, text is printed on the screen to the top left corner of the node editor? (The operator is in the node editor)
John Roper'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
1 vote
0 answers
176 views

Get error when python script in use bgl is running

My script got error when it ran python script in use blender opengl(bgl). Below python script. ...
tomoyaigarashi's user avatar
1 vote
0 answers
1k views

Blender error on startup [closed]

When I start Blender, I get this error in the CMD: COLOR MANAGEMENT : USING FALLBACK MODE FOR MANAGEMENT BLT_LANG_INIT: 'LOCALE' DATA PATH FOR TRANSLATIONS NOT FOUND, CONTINUING AL LIB: ...
ankit's user avatar
  • 11
2 votes
1 answer
139 views

How do you create a KX_PolygonMaterial?

I try to attach a PyOpenGL Shader to an object using the setCustomMaterial() command but It raises an error: 'KX_BlenderMaterial' object has no attribute '...
Yvain's user avatar
  • 722
2 votes
1 answer
793 views

Materials modified with GLSL in bge, return to original material (using only python)

I'm a noob and probably this is a completely silly question... Started using BGE two days ago... I'm using GLSL to visualize a distance field while running in standalone player. I'm doing it using ...
Matteo Ragni's user avatar
3 votes
0 answers
175 views

Could not Render Loaded Texture in 3D View by bgl module

I wrote below scripts to render texture already loaded by blender. However, no images are rendered on 3D View. This code works correctly when I run this script on blender 2.70. But, this script ...
nutti's user avatar
  • 459
3 votes
1 answer
637 views

Using the z-depth buffer when drawing from bgl draw callbacks?

I'm investigating making some simple widgets using bgl and finding it difficult to use the depth buffer without making a mess of the area I'm drawing in. Enable depth testing: ...
batFINGER's user avatar
  • 84.6k
8 votes
1 answer
3k views

Using OpenGL in blender python

It seems that blender python exposes very limited functionality of OpenGL. I currently want to draw additional information in every edge of a mesh by using OpenGL. Basically the edge direction is what ...
Swoorup's user avatar
  • 339
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
4 votes
3 answers
3k views

Is possible to draw over render image and save it?

I would like to draw on top of render image and save it. For example, I would like to draw a text or a line and then save the final image as PNG. I was thinking to use something like this: Is it ...
Antonioya's user avatar
  • 492
4 votes
1 answer
181 views

Why do (bgl) exceptions in modal crash blender

No matter what I type into the console, or execute from the text buffer, blender shows an error but continues on as usual. However, I recently noticed that many exceptions (involving bgl callbacks) ...
Ludwik's user avatar
  • 675
0 votes
0 answers
66 views

Able to transport the rendered opengl frame to byte array with python script? [duplicate]

I'd like to render a frame with OPENGL and I want to save to a byte array variable without file save/load. What can I do?
Gábor Horváth's user avatar
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
1 vote
0 answers
417 views

How can I get a list with the 2D screen coordinates of visible Vertices in 3D view without having to convert 3D to 2D? [duplicate]

The bgl module allows us to obtain various information displayed in 3D Blender view. For example, I made a script that gets the 3D coordinate where the mouse cursor hits a object: ...
Mano-Wii's user avatar
  • 426

15 30 50 per page