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
14
votes
4answers
8k 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?
11
votes
1answer
3k 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
11
votes
1answer
1k 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 ...
8
votes
1answer
2k 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 ...
8
votes
1answer
1k 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 ...
8
votes
3answers
8k 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, ...
7
votes
4answers
14k 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.
7
votes
1answer
2k 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. ...
7
votes
0answers
1k 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 ...
6
votes
1answer
2k 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 ...
6
votes
1answer
531 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 ...
5
votes
1answer
452 views

Removing Anti-Aliasing from shadows in the BGE

How do I fix the anti-aliasing in edges of shadows in BGE?
5
votes
1answer
2k views

Render specific frames with opengl via python

When I run the following script, current_frame is set AFTER the render.opengl(): ...
5
votes
1answer
222 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 ...
5
votes
1answer
13k views

Where is openGL render options in 2.8?

Here what options in 2.7x: Where is OpenGL render options in 2.8?
5
votes
1answer
2k 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 ...
5
votes
4answers
3k 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 '...
5
votes
1answer
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 ...
5
votes
1answer
1k 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 ...
5
votes
0answers
454 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 ...
4
votes
2answers
10k 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 ...
4
votes
2answers
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, ...
4
votes
2answers
596 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 ...
4
votes
3answers
2k 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 ...
4
votes
2answers
749 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 ...
4
votes
1answer
146 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) ...
4
votes
1answer
343 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" ...
4
votes
1answer
1k 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. ...
4
votes
1answer
809 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 ...
4
votes
1answer
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 ...
4
votes
1answer
4k 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?
4
votes
0answers
43 views

Blender won't start - GPUShader: compile error - AWS Elastic Graphics

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 ...
4
votes
0answers
412 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 ...
4
votes
0answers
458 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 ...
3
votes
2answers
4k 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. ...
3
votes
1answer
2k 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 ...
3
votes
3answers
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 ...
3
votes
1answer
316 views

Solid OpenGL lights in Blend4Web?

I want to achieve object shading in Blend4Web equal to the default 'SOLID' shading in blenders viewport. Is it possible to use the solid OpenGL lights in Blend4Web? Or if not, how can I simulate it ...
3
votes
1answer
174 views

Turn Character Into a Sketch

I have a model of a man. I wanted to render it in some way so that it can turn into this "This" is a pencil and paper animation, with each frame drawn, photographed, and archived. I have seen someone ...
3
votes
2answers
347 views

Bezier Curve TILT or Normal exporting

I am currently trying to make a rollercoaster in OpenGL. To do this, I prepared the track in Blender (following a Bezier curve) and exported it along with the curve as .obj files in OpenGL. My ...
3
votes
1answer
517 views

OpenGL [realtime] 360 camera possible?

Is it possible to render a 360 equirectangular OpenGL view from camera? I already know to set it up on Cycles and BI, but I would like to know if it is possible to set this kind of camera to make a ...
3
votes
1answer
423 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: ...
3
votes
1answer
2k 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      ...
3
votes
1answer
857 views

Custom GLSL Filter for Viewport

Is it possible to add my custom GLSL filter to 3d viewport? Like my custom SSAO or custom fog based on depth and normal passes. I want to add my custom SSAO filter to a 3d viewport form here http://...
3
votes
0answers
260 views

Rendering with OpenGL in Blender does not show the intended rendered image or animation

I am trying to render animations and images fast using the OpenGL feature in Blender but even though I want it to render a fully rendered image or animation, it only renders the solid image, or the ...
3
votes
1answer
104 views

How to apply two different materials in Blender Internal on front faces and back faces, *while involving transparency*

Basically, I want to see through the transparent front faces to the opaque back faces. This isn't the same as flipping all normals and executing backface culling because I want the front faces to be ...
3
votes
1answer
78 views

Is possible to keyframe a mask textures as a factor for two other textures in realtime?

Is possible to keyframe a mask textures as a factor for two other textures in realtime? I have set up a blender internal materials node setup, basically two distinct materials mixed with a Mix RGB ...
3
votes
0answers
149 views

Could not Render Loaded Texture in 3D View by bgl module

I wrote below scripts to render texture already loaded by blender. However, no images are rendered on 3D View. This code works correctly when I run this script on blender 2.70. But, this script ...
3
votes
0answers
387 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 ...
3
votes
1answer
315 views

Add 3D content to an image using blender [duplicate]

I have an image of a scene and I extracted the projection matrix from that, so I have the camera calibration. Now, I want to add some 3D objects to this scene. I have already coded something with ...

1
2 3 4 5