Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
12 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 ...
0
votes
1answer
32 views

Blender 2.80 not working on AMD Radeon HD 6470M GPU

I'm not able to open Blender 2.80, it tells me that it requires OpenGL 3.3 Core So i wanted to make sure that the problem is from my GPU and not from blender itself, so i wrote a simple OpenGL ...
0
votes
0answers
11 views

VSE Properties/ Scene Preview/Render it’s not showing Open GL Preview option

This is my problem VSE Properties/ Scene Preview/Render it’s not showing Open GL Preview option, there is no box to untick.
1
vote
0answers
47 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 ...
0
votes
0answers
22 views

OpenGL shading with normal maps, nodes

Is it possible to render a Blender Internal scene with OpenGL shading and attributes like nodes, normal maps, texture mirroring and so on fourth? OpenGL Render: (notice the shading compared to second ...
0
votes
2answers
106 views

Blender 2.8 OpenGL requirements and Render Farms

I am currently theory crafting with my IT team about getting Blender installed on our render farm. However the render blades we have do not have GPUs currently installed. I was wondering if this ...
0
votes
1answer
44 views

How would one animate blinking lights in viewport OpenGL render?

The goal: to animate blinking emission materials (Christmas Lights from a distance) in viewport materials view. My attempt: When I manually change the emission strength, the changes are visibly ...
1
vote
0answers
44 views

Blender is not launching [closed]

I downloaded blender 2.8 alpha. I tried launching it but it gives the error as shown in the image. This command stays on the screen for like milliseconds. I got the screenshot with great difficulties. ...
0
votes
0answers
17 views

Create a search bar with BGL

I'm adapting and expanding on top of the Asset Flinger Addon, which is drawn on top of the 3d viewport with BGL. I would like to add a search bar to that interface. How would I do that? Would I ...
0
votes
0answers
17 views

Changing object show_name font

I would like to have the option to show/hide the objects labels. Also, the labels should face the user point of view (not the camera). I'm trying to use the show_name property, but the font is really ...
3
votes
0answers
50 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 ...
0
votes
0answers
34 views

Normals messed up in OpenGL app

This is how my models look in Blender: https://youtu.be/TisUm5greSs And this is how it looks in my OpenGL program (ZGame Editor) https://youtu.be/U3QUXforWOo All normals are showing fine in ...
1
vote
2answers
29 views

Vertex count increases drastically when exporting to .FBX

I am trying to export FBX file from Blender so I could use it in my OpenGL app, but when I export it, the vertex count increases from ~6k to ~25k. I wouldn't really mind it, but I additionally have ...
0
votes
3answers
173 views

OpenGL error on startup - Blender 2.80 - bumblebee

i can't open Blender 2.80 since it tells me that it requires OpenGL 3.3 to run. Well, when i start it with my intel graphics adapter everything is fine, but it fails, if i want to start it via optirun ...
0
votes
0answers
20 views

OpenGL render transparency using mix shader node data

I'm using a Cycles mix shader node to animate transparency in some of my objects. I'd also like to animate the same transparency in OpenGL Render. Is there a way to link the viewport alpha to the ...
0
votes
1answer
16 views

How to turn off constraint lines drawn using OpenGL render?

When rendering my animation with OpenGL Render instead of the normal Render I see it's wonderfully extremely fast. But it draws object linking lines in each frame that normal render doesn't. How do ...
0
votes
0answers
66 views

Is there a way to make Blender 2.8 STOP checking my OpenGL version?

My OpenGL version is just fine, but when Blender checks, it gets a bad result because I'm running via Remote Desktop. This wasn't too bad in previous versions because Blender only checked once on ...
1
vote
0answers
36 views

Weird wireframe display on viewport when in camera (or certain angle maybe) [duplicate]

Weird wireframe display on viewport when in camera (or certain angle maybe) It happens with a certain camera, but it is not like this in perspective view, and I do not think this is overlapping ...
2
votes
0answers
107 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 ...
2
votes
1answer
186 views

How to chang matcaps light direction in blender 2.8

Hey everyone so with new matcaps in blender we are getting really cools shapes! I wanted to know if I can change matcaps light direction in an easy way! because I would like to use toon maptcap as a ...
0
votes
1answer
81 views

Cycles Preview Render takes too long

When I use in Cycles the Cycles Preview Render (Z) it takes way longer to render than in the normal Render (F12). E.g.the standard cube needs in normal Render (F12) 1.2 Seconds to Render but in the ...
0
votes
0answers
41 views

How to export dae with fresnel?

I'm currently working for a project that runs under openGL. If i export it to collada file (.dae) the fresnel is not added to .dae file. NOTE : Render engine is blender render.
0
votes
0answers
59 views

Getting more control of OPENgl render lighting in cycles

Alright, I'm in cycles and I often use Opengl render mode for my renders, the problem is light's don't seem to affect the render at all, And I want the lights to be shining on a specific part, Is ...
0
votes
0answers
27 views

No texture when using opengl renderer with python script

I am running a python script to render multiple FBX scenes in a folder. To do that I use the bpy module and load each scene with ...
1
vote
1answer
125 views

How to align modal draw to the middle of the 3d viewport?

I have a question about the opengl modal draw : How to align text from a modal draw to the middle of the viewport and and keep it automatic between Tool Shelf and Property Shelf, when i changing them?...
0
votes
1answer
79 views

Banding artifact on open GL Render

I'm currently working on an animation openGL project, and i have this "banding" artifacts on gradient induced by spotlights (see picture below) I'm aware it seems to be because of 8bits precision ...
1
vote
1answer
124 views

Blender throws Error: Exception_Access_Violation when Duet Display installed

As the title suggests, Blender would throw Error: Exception_Access_Violationand not load when I have Duet Display installed. Duet works fine with or without Blender,...
0
votes
0answers
364 views

Does Blender Internal Use OpenGL?

As I understand it, Blender uses OpenGL for viewport drawing and preview rendering, but not for full rendering. For a final render, it uses either OpenCL or CUDA (depending on your graphics card). A ...
2
votes
0answers
51 views

How do I use Bgl?

So my question is: I understand nothing about openGl api, that's super confuse to me, Where do I start? I did get that I need to append a callback to a draw handler and remove it to enable/disable my ...
0
votes
1answer
185 views

Screenshot the viewport - How do I adjust the quality of the OpenGL render?

I just need a simple screenshot of the viewport, the the "render" is all fuzzy. How do I adjust the samples for this kind of render? it's all blurry here
2
votes
0answers
58 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 ...
1
vote
0answers
268 views

eevee - get opengl to wait for all samples? [closed]

Version 2.80.4 - I have a spot lamp with volumetric lighting enabled and I've adjusted the samples and volumetric tile size to get a decent enough cone of light once the viewport finishes loading. ...
1
vote
0answers
72 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: ...
0
votes
0answers
41 views

How to highligth faces in object mode with python

I want to highlight certain faces via script while in object mode (I am running a modal operator to get the face index of the face under the cursor via raycast, now i want to highlight it). Are there ...
0
votes
0answers
29 views

HTML form to Blender

I'm starting a project, where I would like to use OpenGL to render real fast the dynamic content inside the file. Someone knows if an script to change the content from a text element inside blender ...
0
votes
1answer
96 views

Stuck in opengl render

I clicked opengl render in the drop down menu. Now I'm stuck and can't go back to full render. Can someone help me fix this please? Edit: Sorry, I really didn't give enough information. I meant that ...
2
votes
1answer
152 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 ...
0
votes
0answers
414 views

Long 'Loading render kernels' on openGL with AMD Pro Duo

I just purchased a AMD Pro Duo Polaris and was expecting great results with render times (based on posted benchmarks). But the time lag for 'loading render kernels' is coming in at 1-3 min. And it re-...
4
votes
1answer
354 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 ...
1
vote
0answers
35 views

How to handle drawing with multiple views

I want to draw in the screen space of each ImageEditor. The drawing itself works pretty good, each space has its own draw handle registerd with the correct "view_to_region" functions passed along. So ...
1
vote
1answer
329 views

How can I create an animation with a transparent background in the Material viewport?

Sorry if this is a repeat. I've had a lot of trouble explaining or putting this into words. Basically, I want to make an animation with a transparent background, but I want it to render with the ...
1
vote
1answer
596 views

Visible seams on tangent normal maps

I'm having a small issue with visible seams on normal maps. The map was painted on Substance Painter and has no weirdness around seams. When I plug it into a Normal Map node set to Tangent Space this ...
0
votes
0answers
152 views

Make Bgl 2d drawing coordinates stay relative to viewport

So i drew a 2d polygon and some blf text using a modal operator. But a problem arised. The 2d shape and text wouldnt stay relavant to the screen size of the 3d viewport. I would seem as if the vertex ...
1
vote
2answers
461 views

Draw a 2d box using Bgl in viewport

I have been trying read up a lot on opengl drawing using python and have been trying to create a script which display a text and a 2d shape on the viewport (a rectangle or square). From reading the ...
2
votes
0answers
405 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. ...
0
votes
0answers
112 views

opengl text display of custom properties?

I have a bunch of simple objects with custom properties, e.g. description, comments, etc. I would like to be able to be able to view this information somehow in the viewport attached per each object ...
1
vote
1answer
218 views

Python Opengl Render doesn't show texture

when I click opengl render button in the GUI of the 3D view, the rendered image contains texture. However, when I use python script to render the same thing, I only get solid image without texture. <...
1
vote
1answer
280 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
126 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
67 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 ...