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.
103
questions with no upvoted or accepted answers
2
votes
0
answers
205
views
Rendering depth buffer to texture using BGL fails on FBO drawing
I am writing a custom render engine for a level editor addon with GPU / bgl modules. I need to render a depth buffer to texture to later use in my shaders. I tried the way it is usually done with ...
2
votes
0
answers
363
views
blender 2.8 glRectf() not there
I'm trying to convert a 2.79 add-on to 2.80. I'm running into a problem with openGL function glRectf(). The code that's currently in the add-on draws the menu as follows
...
2
votes
0
answers
454
views
How to draw custom, complicated ui element
Is it possible to add custom drawn elements to UI? e.g. access OpenGL and draw shapes from code, create some "canvas" in UI and draw on it.
e.g. I'd like to create a complicated interface, something ...
2
votes
0
answers
406
views
How do I set output video file name using python script?
I'm using a python script to render my scene using the OpenGL render to get more speed, as the quality I'm getting is enough for my purposes.
I'm using this script:
...
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.
...
2
votes
0
answers
275
views
Limit selection to visible doesn't work properly
I made a realistic aborygen bust portrait and wanted to make an OpenGL viewport render of it. But when I zoom out from the object the wireframe of the eyeball is getting more and more visible.
I want ...
2
votes
0
answers
196
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:
...
2
votes
0
answers
687
views
Display Images with bgl
I'm trying to display an image external to blender in the 3d view with python and bgl. Is it possible not to load an image in data.images and display it?
The following code display an image from the ...
2
votes
0
answers
227
views
Modal operator to highlight
Ok. I'm a bit stuck on this. I accept defeat and am asking for advice. Here is a portion of the larger addon. The purpose of this snippet is to show the area user is working on. Basically, user inputs ...
2
votes
0
answers
152
views
Combining OpenGL and Blender Render (For Lightsabers)
I'm working on another lightsaber video. For the clashes this time, I've decided to utilize a lens flare pack by cfirwin3 here and it's super awesome. However, it appears that they only render ...
2
votes
0
answers
272
views
opengl flat shading in blender
i'm trying to render my scene from a script. i've got some objects with materials that are Shadeless, and when rendering with the blender renderer in my script, they show up as expected: no shading. ...
1
vote
0
answers
25
views
Blender and Active Stereo Display (3D Vision or similar)
I am new to Blender. I am drawn to it because of 1) its drawing capability and 2) its supposed support of stereoscopic display.
I have an "Nvidia 3D Vision" system that works under either ...
1
vote
0
answers
218
views
Custom render engine - creating material previews with OpenGL?
I'm working on a custom render engine through a Python addon that uses the bgl module for most of its rendering. bl_use_preview ...
1
vote
0
answers
617
views
Blender 3.4 won't run citing unsupported graphics card but 3.3 works
I have 3 computers I primarily run Blender on, 2 of which are giving me this error:
...
1
vote
0
answers
172
views
How can I make objects created with the GPU Module visible in the final render?
I used the code example for creating a triangle with custom shader from the official docs:
...