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

Blender 2.8 Beta: OpenGL 3.3 Error?

Before I start, YES, I have done my own research - I know how annoying a repeat question is. Yet each answer is so specific to others... When I tried the beta 2.8 64 bit, it says "Blender requires a ...
Galaxy's user avatar
  • 324
2 votes
2 answers
6k views

Exporting cycles rendered models to be used in opengl

The cube in top left corner is the default cube with change in view port color. I added checker texture to it using nodes and got it rendered using cycles render. When I exported them to be used via ...
user3124361'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
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
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
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
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
2 votes
3 answers
3k views

Warning! Legacy WGL is unable to select between different OpenGL versions

I was using blender 2.76b on a Windows 7 Ultimate, and nothing really weird showed up when I opened blender and the cmd window appeared, before the blender window appeared. I updated it to 2.77a, and ...
Yubin Lee's user avatar
  • 249
1 vote
1 answer
2k views

How Do I Save 3d View as a Wireframe Image? (Blender Render)

I have some objects that I want to save their wireframe view as an image file. Someone told me to use the OpenGL render active viewport button on the 3d viewer's menu header, but I just get an error ...
Anthony Forwood's user avatar
0 votes
0 answers
620 views

I'm having trouble with gizmo lines getting glicht: rotating, moving or scaling

System: Windows 10 64 bit CPU I5-3470 GPU GT 630 Processor and Graphics do not matter because the same thing happens on different Graphics and Processor I found a fix but on ubunto I have windows
KALER's user avatar
  • 1
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
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
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
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
2 votes
1 answer
684 views

Window blurring or smearing down

When I move my mouse, the window in Blender blurs / smears down. Why is this is happening?
masterCameron101's user avatar
2 votes
1 answer
2k views

How to generate final texture image for complete designed scene

I designed a house interior, i used wooden texture and some other texture for walls and windows. How can i generate a final texture image so that i can use that image in open gles ? I added a example ...
Sachin Vani's user avatar
1 vote
2 answers
2k views

How to reset OpenGl for Solid lighting?

I read the original Reset OpenGL lights, I understand, but I don't do Python. How would I "reset" my settings as shown? I've had trouble with these forever, so my Solid lighting as I work is bizarre. ...
NeverGiveUp's user avatar
1 vote
3 answers
2k views

Draw a 2d box using Bgl in viewport

I have been trying read up a lot on opengl drawing using python and have been trying to create a script which display a text and a 2d shape on the viewport (a rectangle or square). From reading the ...
Retrax's user avatar
  • 1,490
1 vote
2 answers
812 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
1 vote
0 answers
175 views

Modal operator and opengl drawing update issue

For this question, I've coded a little script that draws mesh's elements indices with opengl. All is working well, except when in edit mode, some grab, scale, rotate is done. In these cases the ...
lemon's user avatar
  • 60.3k
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
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
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
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
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
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
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
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
3 votes
0 answers
405 views

.blend file size much larger after OpenGL Render

I am working on a detailed dialogue scene that is 600 mb. It is a very complex scene, with each part in single layers. I know that is a very big file size, but what my machine can handle it. What ...
user9626's user avatar
3 votes
1 answer
628 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.3k
2 votes
1 answer
5k views

Why is the smoke preview not showing in Blender's viewport?

I've been trying to put together a smoke sim in blender 2.74 using the quick smoke preset however have found that it does not show up in the viewport, yet will still render. Long story short i have ...
Hexbob6's user avatar
  • 2,038
2 votes
1 answer
798 views

How to acess and change solid OpenGL lights settings via python?

I have interested in create an addon to help on viewing models. the idea is the properties for solid OpenGL Ligths be found in tools panel so we can easily tweak the colors and light direction for ...
StackOverflowToxicityVictim's user avatar
2 votes
0 answers
2k views

Custom Render Engine with bgl

I need to code my own Render Engine to do specific rendering passes. I don't want to build my own Blender app by coding in c/c++, so i try to make it work in Python. But i need OpenGL functions. ...
minitoine's user avatar
2 votes
1 answer
16k views

How to set which graphics card is used by OpenGL render active viewport?

I whan to use 3D View OpenGL render with Blender Render. I have a laptop with two graphics card. Of course the NVIDIA card is the superior. I used the Blender Help / Save System Info to check the ...
Prag's user avatar
  • 1,038
2 votes
0 answers
192 views

How to activate smoothing in bgl (opengl)?

All is in the title. I'm not able to make smoothing work, when drawing on a texture. Here is the code before the drawing: ...
lemon's user avatar
  • 60.3k
2 votes
1 answer
6k views

How to speed up the OpenGL (viewport) rendering?

I made an animation in Cycles (about 1 minute long) using viewport render option (Render-->OpenGL Render Animation). There were some simple objects like hearts (with basic diffuse colour) and planes ...
Paul Gonet's user avatar
  • 33.4k
2 votes
1 answer
6k views

"Legacy WGL is unable to select between OpenGL versions" error [duplicate]

Is there a chance of fixing this? (the autodesk maya was working fine and I want to try this program, could someone help me with this?)
Exit's user avatar
  • 21
2 votes
1 answer
685 views

What is the substitute for gpu.export_shader in Blender 2.80?

I am trying to export GLSL from Blender materials in a scene. This call appears to have been removed from module "gpu" in Blender's Python API as of 2.80. Is there any substitute? How should I proceed?...
Daniel Almeida's user avatar
1 vote
0 answers
534 views

Drawing a rectangle using opengl in blender

I'm learning opengl in blender and successfully drew a triangle in 3d viewport. Now I'm trying to draw a rectangle using Element Object. Here is what I've tried. But it draws nothing. ...
Me BMan's user avatar
  • 75
1 vote
0 answers
3k views

How to run blender 2.77 on a virtual network render machine with no Opengl support on windows?

I have a server that runs multiple instances of virtual machines and is running windows 10... there is a cinema 4d farm clients running there...and I need to run blender 2.77 slave mode ...but the ...
Andries Robert'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
1 vote
0 answers
342 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? ...
KJS's user avatar
  • 237