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.

Filter by
Sorted by
Tagged with
17 votes
0 answers
2k views

Per-Vertex lighting in GLSL?

How can I achieve per-vertex lighting (like in single/multi-texture shading) in GLSL with all of the other GLSL features (like buffer shadows, texture layers, etc.)? Bonus points if it can be done in ...
Nero1024's user avatar
  • 643
14 votes
4 answers
12k views

What version of OpenGL does Blender use?

I know that Blender makes extremely heavy use of OpenGL. What version of OpenGL does Blender use, and how difficult would it be to port it over to OpenGL ES?
fouric's user avatar
  • 3,261
11 votes
1 answer
4k views

Render with openGL from the command line?

Is it possible to use the openGL quick render for rendering from the command line? e.g. something like blender -b <file> -E opengl -f 1
gandalf3's user avatar
  • 157k
10 votes
2 answers
2k views

Copy framebuffer of 3D View into custom frame buffer

General question: Is there a reliable way to directly access the OpenGL framebuffer of a View3D for copying? (Please see the end of the post for more detailed questions) I need a very fast way to copy ...
reg.cs's user avatar
  • 488
10 votes
1 answer
2k views

Does a model exporter embedding materials as GLSL scripts exist?

as described in Blender Shader in OpenGL/GLSL, it is possible to export the (unoptimized) GLSL code generated by Blender for a given material. Since the viewport can use such GLSL for real-time ...
oparisy's user avatar
  • 357
9 votes
3 answers
11k views

Get indices of vertices of triangulated faces in python

I'm writing a python script to export triangulated meshes from Blender to an openGL application I am working on. I'm using text files, and I want to export my geometry data in the form of vertices, ...
darius's user avatar
  • 327
9 votes
1 answer
754 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
  • 5,323
8 votes
4 answers
17k views

How to run Blender through RDP on Windows Server 2008 R2 - opengl error

I want to render my blender project in rdp. But some error has appeared. What is the best solution for this problem? I've spent many hours trying to troubleshoot this problem.
Devz's user avatar
  • 81
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
2 answers
3k views

How to get screen color under mouse cursor?

I'm trying to figure out how to get the color of the screen pixel under the mouse with python like in this video: Python-scripted color picker I tried importing bgl and adding bgl.glReadPixels in to ...
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
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
8 votes
1 answer
2k views

Which parts of Blender use OpenGL?

This may seem like a stupid question, but I am really not clear about its answer. I want to know what role OpenGL plays inside Blender: is it just for displaying the user interface, or does the ...
ZeroGravity's user avatar
7 votes
1 answer
707 views

Can I OpenGL render a quad view?

Is it possible to playblast (openGL render) the quad view? In quad view if I launch playblast, only 1 of the views is rendered. Am I missing something for it to work (like an option in the user ...
Stan Paillereau's user avatar
6 votes
1 answer
3k views

Draw geometry on screen using BGL module

I am trying to use the bgl module to draw triangles on top of the Blender interface. My understanding is that glBegin/glEnd are deprecated, and vertex array or display list or VBO should be used ...
Mike Pan's user avatar
  • 11.7k
6 votes
2 answers
9k views

Add outline to object

When you select an object in blender a yellowish ring appears around it. And no matter how much your rotate your view or the object, the outline will only appear on the visible outline of the object. ...
Unnamed Sentient Being's user avatar
6 votes
1 answer
503 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
6 votes
1 answer
2k views

Why is "Smooth" shading slower than "Flat" shading in the viewport?

When I set a Mesh to shade as "Smooth" vs "Flat" on a high-poly Mesh Object (such as one with a subdivision modifier), it makes Blender much slower than normal, sometimes almost unusable. Why does ...
A Wild RolandiXor Has Appeared's user avatar
5 votes
3 answers
12k views

Blender 2.8 EEVEE render out viewport like old openGL render

In the older versions of blender 2.8 it used to be possible (I did it once and I saw videos of people doing it) to render out the viewport (I think it was with an OpenGL render option), in rendered ...
B''H Bi'ezras -- Boruch Hashem's user avatar
5 votes
1 answer
780 views

Removing Anti-Aliasing from shadows in the BGE

How do I fix the anti-aliasing in edges of shadows in BGE?
Rogerio Gomes's user avatar
5 votes
4 answers
26k views

A graphics card and driver with support for OpenGL 3.3 or higher is required error

I can't execute newest Blender 2.80, it says that I need a graphics card that supports OpenGL 3.3 or higher ...
Pedro Toriality's user avatar
5 votes
4 answers
6k views

Blender 2.8 How do i make objects with Render View disabled to not be visible on Viewport / OpenGL Rendering?

I have some objects which i do not want to be disible on the Viewport nor the OpenGL rendering previews, back in 2.79 it worked just fine by disabling render view on the outliner and enabling the '...
Zophiekat's user avatar
  • 769
5 votes
1 answer
21k views

Where is openGL render options in 2.8?

Here what options in 2.7x: Where is OpenGL render options in 2.8?
Crantisz's user avatar
  • 35.3k
5 votes
1 answer
2k views

How to render the movie texture in the Open GL viewport rendering?

I try to render animation using Open GL render animation option. I added a movie clip as a texture to a plane. When I change the keyframes manually (in Material viewport shading ) the following ...
Paul Gonet's user avatar
  • 33.4k
5 votes
0 answers
646 views

PyOpenGL and VBO Indexes

Long story short, I'm trying to do a modal handler that draws using OpenGL into the viewport. Immediate mode through BGL works fine, but is dog slow. I tried using VBOs through BGL but there seems to ...
Kiki W.'s user avatar
  • 606
4 votes
2 answers
2k views

Fastest way copying from bgl.Buffer() to numpy array

I have some rendered or processed pixel data in a bgl.Buffer() object and need it in a numpy array but that proccess seems to take very long. Here is what I have tried so far: ...
Gottfried Hofmann's user avatar
4 votes
2 answers
2k views

How to make a VSE scene strip render with the openGL render?

Is it possible to have a scene strip in the VSE render using the OpenGL renderer? I know you can make it render using viewport shading/OpenGL in the preview, but can you do this for the final render, ...
gandalf3's user avatar
  • 157k
4 votes
2 answers
1k views

What are these items that are showing up in the viewport render

I have a model that has animation and I am rendering out to a png sequence. This animation will be used in a web page. I noticed that there are some items that are showing up in the render that are ...
user7992's user avatar
4 votes
3 answers
355 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
  • 5,323
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
  • 482
4 votes
1 answer
179 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
350 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.6k
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
308 views

Custom shader script in compositor (de-linearize depth buffer)

Some months ago I wrote a minimal opengl 2.5d game engine with pre-rendered backgrounds (such old Resident evil, Alone in the dark and Final fantasy games). Depth is managed through a grayscale image ...
NickRay1184's user avatar
4 votes
0 answers
604 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
665 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
3 votes
2 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? ...
Karan's user avatar
  • 1,984
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
2 answers
4k views

Visible seams on tangent normal maps

I'm having a small issue with visible seams on normal maps. The map was painted on Substance Painter and has no weirdness around seams. When I plug it into a Normal Map node set to Tangent Space this ...
Rhaenys's user avatar
  • 1,374
3 votes
1 answer
4k views

Import GLSL-Shader into blender

I have a shader written in GLSL, I would like to import into Blender. I have already gathered, that I have to import it into BGE. Is it also possible for Cycles or BI (preferred)? In any case, how do ...
schustudrai's user avatar
3 votes
3 answers
8k views

Is OpenCL possible within Blender either via cycles or internal?

I have the Radeon R9 280X video card and was wondering if there was anyway at all to enable GPU rendering with this card? I know Nvidia has CUDA cores and that works. That's good and all, BUT I don't ...
Starius's user avatar
  • 1,114

1
2 3 4 5 6