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.
265
questions
1
vote
1
answer
439
views
In Blender, how do I programmatically display a viewport rendering in a window just like if you pressed F12?
I know I can call bpy.ops.render.opengl() and that will create the render, but what I want to do is to create and then view the render, just like what happens when ...
3
votes
3
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?
...
0
votes
1
answer
234
views
OpenGL 3D ViewPort frame capture with transparency (no checkered pattern)
I attempt to use Blender 2.82 (currently I cannot change version), to render a robot hand holding an object, so that the hand creates an occlusion on the object, but the hand itself should not be ...
1
vote
0
answers
556
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.
...
0
votes
0
answers
564
views
Can shaders created in Blender Shader Editor be exported as OpenGL shaders in versions of Blender 2.9x?
I have created a shader in the Blender Shader Editor, since I find it very powerful and easy to use. I would like to export this shader so I can use it outside Blender. Is this possible for versions ...
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:
...
0
votes
0
answers
122
views
How can i use OpenGL/Viewport render in rendered mode on cycles?
Whenever I do it on Eevee, it works. and I find it to be a great way to render faster, but whenever I do it on Cycles, I just get nothing besides a grey screen, Help? My render settings are on the ...
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.
...
0
votes
1
answer
87
views
why bgl meshes flip when nothing is selected?
As described in API the following script will create a mesh from active object using bgl module:
...
1
vote
1
answer
694
views
Blender 2.9 Python GPU Module, drawing lines in the wrong position
I have problems with the GPU Module and rendering custom geometry in Blender. When I run the example code from the Blender docs, it works as expected. Running the first line drawing example produces ...
0
votes
0
answers
407
views
capture data from different cameras
I need this for my video game that I want to start on in Blender Game Engine.
I have not figured out how to use multiple cameras and make them give data out without them being active cams or without ...
0
votes
1
answer
77
views
Getting wires displayed in OpenGL MeasureIt render
I'm trying to get a "CAD-like" 2D render of a model in Blender (2.79, sorry old OSX version so can't upgrade) using MeasureIt for dimensions. Some dimensions are to edges within faces.
I've ...
0
votes
0
answers
662
views
Using Blender's GUI application from WSL2 (repost from stackoverflow)
This is a repost from StackOverflow, I was recommend to post this here by a friend
Recently a fellow intern finished his internship. For this internship, he wrote some automated fluid simulations in ...
0
votes
1
answer
780
views
Face values in obj file is more than vertex count
When I exported the cone.obj from Blender. I got 33 vertices. But the face values specified in the .Obj files seem to included vertex till 65. How can i device what will be the vertex coordinates for ...
0
votes
1
answer
1k
views
Radeon RX 570 not rendering correctly using Eevee [Linux (Ubuntu), AMD]
Recently got my GPU setup, and after a bit of trial and error, I was able to get it to work with everything, until I decided just a bit ago to use EEVEE in blender instead of cycles; I was presented ...