Skip to main content

Questions tagged [opengl]

Questions about OpenGL (Open Graphics Library) OpenGL is an API used to render real-time 2D and 3D graphics. Blender uses OpenGL for drawing the user interface, 3D view, and the game engine.

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
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
2 answers
1k views

Working in 3D stereo in the 3D view - hardware requirements?

I want to run out and buy a pair of active shutter 3D glasses so I can watch and adjust animations in the 3D viewport using time sequential mode, but the part about the graphics card supporting Quad ...
uhoh's user avatar
  • 2,667
4 votes
1 answer
364 views

Is the Network Render addon able to render with openGL?

I would like to render an openGL preview using my rendering network, but there is no such option in the rendering engines dropdown. What can I do? I built the rendering network with "Network Render" ...
Gábor Horváth's user avatar
4 votes
1 answer
2k views

Can I access the render screen size in a custom filter 2D in the game engine?

I am using Blender Game Engines Filter 2D to make a post effect with GLSL. In an fragment shader applied on the frame buffer, I want to access the size in pixels of that buffer in GLSL. ...
lubosz's user avatar
  • 231
4 votes
1 answer
3k views

How to display the current frame number as part of the open GL render?

I'm amazed I can't find anything that displays the current frame which is helpful to study test timing and adjusting and knowing where it went wrong. Ideally I would like to show seconds and minutes ...
Eric Huelin's user avatar
  • 2,251
4 votes
1 answer
357 views

2D 'POST_VIEW' drawing with gpu.types.GPUShader(vertex_shader, fragment_shader)

I can use gpu.shader.from_builtin("2D_UNIFORM_COLOR") to draw a square to a view (the nodeview), and give it a single color, but I want to use a custom shader. Does ...
zeffii's user avatar
  • 39.7k
4 votes
1 answer
1k views

How to blur part of the screen in the game engine?

I'm making an FPS game, and for some of my guns, i want to be able to zoom in so that i can see farther. This isn't the problem. What i really want is to make the rest of the screen (The part not ...
christai's user avatar
  • 793
4 votes
1 answer
7k views

How to access the window width/height inside a GLSL Shader?

Inside a Python script defining a GLSL shader used on the game engine, how do I access the width/height of the game window?
Dokkat's user avatar
  • 275
4 votes
1 answer
6k views

White edge around objects with alpha

I have a simple texture, of a bush (for a billboard plane) There are very annoying white artifacts around the edge of the plane. I am using GLSL shading in the BGE.              UV/Image Editor      ...
X-27 is done with the network's user avatar
4 votes
0 answers
1k views

Blender won't start - GPUShader: compile error - AWS Elastic Graphics [closed]

I am looking to run a Blender workload in Amazon Web Services (AWS). I am testing on a Windows Server image on a non-GPU compute resource. Instead of GPU I am attaching AWS Elastic Graphics to the ...
Luther's user avatar
  • 141
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
4 votes
0 answers
695 views

Viewport widgets with draw handler

Is it possible to create viewport widgets with draw handler? I have an operator which produces simple mesh geometry, I use operator redo properties panel to edit the result as shown in animation ...
Mikhail Rachinskiy'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

15 30 50 per page
1 2
3
4 5
18