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.

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,251
10 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
  • 158k
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
779 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,023
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
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.9k
7 votes
1 answer
713 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

15 30 50 per page
1
2 3 4 5
18