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
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
1k 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
117 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
441 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
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 ...
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
131 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
714 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
322 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
903 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. ...
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.
1
vote
1answer
120 views

How do you create a KX_PolygonMaterial?

I try to attach a PyOpenGL Shader to an object using the setCustomMaterial() command but It raises an error: 'KX_BlenderMaterial' object has no attribute '...
1
vote
0answers
3k views

How to run blender 2.77 on a virtual network render machine with no Opengl support on windows?

I have a server that runs multiple instances of virtual machines and is running windows 10... there is a cinema 4d farm clients running there...and I need to run blender 2.77 slave mode ...but the ...
0
votes
2answers
238 views

shader.setSample invalid uniform value

I'm having troubles with my "clouds" texture while trying to sample it into my shader, the error is "invalid uniform value: clouds" ...
2
votes
1answer
634 views

Materials modified with GLSL in bge, return to original material (using only python)

I'm a noob and probably this is a completely silly question... Started using BGE two days ago... I'm using GLSL to visualize a distance field while running in standalone player. I'm doing it using ...
1
vote
0answers
659 views

Bones and armature render

How can I make a simple animation render of an armature (to show all bones movements)? This is an OpenGL render, but if i try the OpenGL animation render, the bones disappear.
2
votes
1answer
155 views

How does Blender implement flat shading non-planar polygons?

Following up on my recent question on ComputerGraphics.SE — how is flat shading of non-planar polygons implemented in Blender? If polygons are rendered using ...
0
votes
1answer
248 views

How do I apply a Blend4Web module similar to the plane flight preview?

I am trying to make a load screen to fit my scene. This has a custom load screen to fit the scene: https://www.blend4web.com/en/demo/island/ This is the API: https://www.blend4web.com/api_doc/module-...
1
vote
0answers
2k views

Can I use Blender on Intel HD 530 dedicating an Nvidia GPU to Cycles?

I'm trying to specify the build for a new PC, my current one is 5 years old and starting to show its age. It's going to be a multi-use machine for Gaming, Virtualisation, Coding, Blender and possibly ...
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 ...
4
votes
2answers
745 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 ...
2
votes
1answer
1k views

Open GL Render. Anti-aliasing differences

I have a simple scene setup: Cube and a Sphere lighted decently. Blender Internal renderer. Shading - GLSL Viewport Shading - Material. I add the Scene in VSE and use Open GL Preview and Sequencer ...
5
votes
1answer
447 views

Removing Anti-Aliasing from shadows in the BGE

How do I fix the anti-aliasing in edges of shadows in BGE?
0
votes
2answers
425 views

Animate properties in GLSL shading

I'm new in this community. My name is Francesco and I am passionate about Blender. I hope to learn well. I have a problem I can not solve... I wish animate the alpha channel and all the material ...
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
420 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: ...
2
votes
1answer
479 views

Is render time, openGL, or memory affected whether a modifier is applied or not?

If I have an object looking exactly like I want it to using modifiers, is there any reason why I should "apply" the modifiers before rendering, or any other considerations? More specifically, is ...
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 ...
0
votes
1answer
257 views

Color is not applied when drawing fonts in BGE with blf and bgl

I am trying to get fonts rendered with different colors, but bgl.glColor4f (or any other variant of glColor) doesn't apply the color that I set with it. Please see https://github.com/eugenschindler/...
2
votes
0answers
220 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. ...
2
votes
2answers
708 views

3D Model mask? ID?

I'm working on making a video that looks like anime. I'm trying to use openGL viewport render to do the bulk of the work and it's going good, animation, characters, background and sky is all done and ...
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      ...
2
votes
1answer
387 views

Some materials aren't rendered in the Blender Game Engine

As I described in the title, some materials aren't rendered. I'm not sure, but I think it only happens if I "copy paste" or append objects with their materials. I can solve this problem by recreating ...
2
votes
1answer
3k views

Why is the smoke preview not showing in Blender's viewport?

I've been trying to put together a smoke sim in blender 2.74 using the quick smoke preset however have found that it does not show up in the viewport, yet will still render. Long story short i have ...
1
vote
1answer
173 views

How get drawing area in callback for quadview?

I need help with Quadview drawing. I know how get the quad using the mouse position, but the problem is get the drawing area in the callback. I have some code like this: ...
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 ...
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
1answer
144 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) ...
0
votes
0answers
54 views

Able to transport the rendered opengl frame to byte array with python script? [duplicate]

I'd like to render a frame with OPENGL and I want to save to a byte array variable without file save/load. What can I do?
4
votes
1answer
342 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" ...
5
votes
1answer
1k views

Render specific frames with opengl via python

When I run the following script, current_frame is set AFTER the render.opengl(): ...
0
votes
0answers
118 views

Show a objection reflection onto another surface in Blender internal

I will show a objection reflection onto another flat surface in Blender internal, Material viewport because I will like to try and use the opengl render. I tried using mirror but it wont show up in ...
2
votes
1answer
4k views

How to speed up the OpenGL (viewport) rendering?

I made an animation in Cycles (about 1 minute long) using viewport render option (Render-->OpenGL Render Animation). There were some simple objects like hearts (with basic diffuse colour) and planes ...
3
votes
1answer
854 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://...
1
vote
0answers
347 views

How can I get a list with the 2D screen coordinates of visible Vertices in 3D view without having to convert 3D to 2D? [duplicate]

The bgl module allows us to obtain various information displayed in 3D Blender view. For example, I made a script that gets the 3D coordinate where the mouse cursor hits a object: ...
2
votes
2answers
300 views

Why I am seeing patches of diffirent transparency in this model with GLSL

I am in GLSL mode and I have a material with transparency, my problem is that transparency is not displayed as it is in the final render of BI. Instead of a smooth result in transparency I get patches ...
1
vote
2answers
1k views

How to reset OpenGl for Solid lighting?

I read the original Reset OpenGL lights, I understand, but I don't do Python. How would I "reset" my settings as shown? I've had trouble with these forever, so my Solid lighting as I work is bizarre. ...