A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
1answer
435 views

Can't make the OpenGL Render Active Viewport work on Rendered Shade mode

I'm using the OpenGL Render Active Viewport to preview an animation, but even if I'm set the viewport shade to "Rendered", it switch the shade mode to "Solid". I can make it work with any other mode ...
1
vote
0answers
177 views

Apply 2D filters to camera output in the Game Engine

is it possible to apply custom GLSL shader like the shaders you can set in the logic bricks called "Filter2D" to a camera that is not the main camera? I am rendering the output of a camera in the ...
3
votes
1answer
76 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
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 ...
5
votes
0answers
428 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 ...
1
vote
1answer
442 views

Add an uv sphere 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 ...
0
votes
1answer
947 views

Blender exporting incorrect uv map for .obj

When exporting a mesh I've created in Blender, the (.obj) file does not contain the uv coordinates I have created in Blender. I made sure Blender recognizes my custom uv map along with the texture but ...
1
vote
0answers
102 views

Mouse event program freezes my Blender

recently I am trying this code for handling some clicks, mixed by bpy and bgl. However when I "Run script", then select it from ...
2
votes
2answers
598 views

OPENGL Blender Transparent PNG on top of video

I´m using a lot of OPENGL render animation for the sake of the rendering time, some motions quite simple that doesnt need any kind of raytrace like this one: First I´m using Blender Internal, cannot ...
0
votes
0answers
130 views

Can a python script open a blank image, draw with opengl commands and then save file to disc?

I want to use object vertex position data to draw 2D images using python
4
votes
0answers
427 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 ...
1
vote
2answers
554 views

Using PyOpenGL in Blender's Python API

I'm wondering if there was any way for me to use PyOpenGL in Blender's Python API? I would rather not use BGL, because I would like to render a lot of 3D objects and immediate mode is rather limiting.....
2
votes
1answer
176 views

Sequencer's OpenGL render crashes with Grease Pencil [closed]

I am trying to render a sequence in the sequencer. I want to add a scene strip and render an openGL animation (with the grease pencil), hence I have grease pencil strokes in the 3D view. Pressing ...
2
votes
0answers
250 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 ...
1
vote
0answers
472 views

Blender not starting on Windows Remote Desktop [duplicate]

I got a very tricky problem: Let's begin in the past. I got a Workstation. In the past it ran Blender 2.78b with a Nvidia Quadro FX1800 as Graphics Card. For Rendering, I used the CPU. I used another ...
2
votes
0answers
116 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
1answer
9k 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 ...
1
vote
0answers
114 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 ...
3
votes
1answer
484 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 ...
7
votes
1answer
1k 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. ...
2
votes
1answer
630 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 ...
2
votes
0answers
493 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 ...
0
votes
0answers
581 views

Open GL render active viewport: Sky color disappeared

I have got a sky color as well as a texture set, but since some time the viewport render only shows a transparent or black area behind all objects. I use game engine, but blender render does the same. ...
2
votes
0answers
184 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 ...
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 ...
0
votes
1answer
499 views

Lighting preview does not work in Blender 2.78?

It seems that the OpenGL light previews are not available in the material preview mode (neither cycles nor internal edit: only in cycles) with the most recent blender version. Was this intended or is ...
0
votes
1answer
883 views

Inserting keyframes from node editor is not working

I followed the following post to try keyframing assigned material to an object blender.stackexchange.com/questions/64986/keyframe-objects-active-material-from-material-slots I followed the steps ...
2
votes
0answers
133 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 ...
1
vote
1answer
431 views

Can I create an OpenGL 1.1 game on Blender 2.78 32-bit Game Engine?

Not Just OpenGl ES 1.1, is there a way to limit which OpenGL ES Blender will use, a warning of what the game is going to require or disable certain features so if a game Required OpenGL 2.0, with in-...
1
vote
1answer
375 views

PBR, Viewport more quality than openGL render

Im using Clément Foucault's latest PBR Blender build and I noticed that what I see in the viewport does not appear on the OpenGL render and they are not similar. What might be the problem?
2
votes
1answer
921 views

How to UV-Map for a OpenGL Game

I hope to find some answers here to my problem. For an OpenGl Game, i want to have some "good" textures, that are equal in display size. We designed a building, whereas in the picture above, you can ...
1
vote
1answer
746 views

blender with openGL 1.3 or lower

is there a way to bypass this openGL support, i just need to run this program on low spec computer in purpose. or maybe there's another suggestion about what program that i can use with OprnGL 1.3 ...
1
vote
0answers
221 views

Convert materials from cycles to bge as visible in viewport material shading mode

In 2.78 the material viewport shading mode of cycles is greatly improved. In fact it is even better than BI in some aspects - for example it now correctly displays cube projection textures, something ...
1
vote
2answers
870 views

How can I show the GLSL code generate by node?

Sorry for my english. how can i show the code generate by the node and can i write my own node Element? Can i add a uniform float var? in order to comunicate with the fragment shaders?
1
vote
0answers
176 views

Python BGL Draw text in the node editor

I have an operator (MyOperatorTest). How can I make it so that when this operator is run, text is printed on the screen to the top left corner of the node editor? (The operator is in the node editor)
0
votes
1answer
151 views

Transparency on Linked Groups in OpenGL

I am attempting to render a scene in OpenGl with several linked groups which include objects with transparent textures. While the transparency appears in the original Blend file of each model by ...
2
votes
1answer
647 views

Is it possible to set the vertex shader without overriding the fragment shader?

I'd like to make vertices of an object randomly move around a little. To do this, I created a vertex shader. I assigned the vertex shader to the object's material with ...
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
2answers
1k 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?
1
vote
1answer
978 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 ...
0
votes
0answers
114 views

Recreating Edge Split Algorithm

Does anyone have any insight to how Blender's edge-split algorithm works? I need hard lighting for an OpenGL project I'm working on that uses per-vertex normals to calculate shading, and I'd rather ...
1
vote
1answer
412 views

Why are the camera and lamp objects appearing in the OpenGL render? [duplicate]

I am new to blender. First time I tried rendering the animation using Cycles render it worked fine. After that I tried OpenGl render, and after that this problem has started. The objects including the ...
3
votes
1answer
161 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 ...
1
vote
0answers
2k views

How to correctly export from blender to opengl with a texture?

I am learning opengl from here and we are given an obj file for blender of crysis nanosuit. When I load this with opengl, it just loads fine. But then I imported the file to blender and added some ...
1
vote
0answers
126 views

Get error when python script in use bgl is running

My script got error when it ran python script in use blender opengl(bgl). Below python script. ...
1
vote
0answers
687 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: ...
2
votes
1answer
5k 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?)
2
votes
3answers
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 ...
1
vote
1answer
297 views

Why is texture colour changing in BGL?

I'm loading a texture into a simple GL_QUAD drawn with OpenGL with the help of bgl and ...
2
votes
1answer
865 views

How to render Compositing only by OpenGL?

I do not use any object in my scene. All my Nodes are in the compositor, but when I render compositing by OpenGL I get only an empty screen. I can use objects as simple trick, but I don't like that. ...