Skip to main content

All Questions

Tagged with
-3 votes
1 answer
268 views

blf is a module or a parameter?

blf is a module or a parameter? I have read the documentation of blender, and I do not understand well what blf matters, or if it is only a parameter. I ...
user avatar
2 votes
1 answer
707 views

What is the substitute for gpu.export_shader in Blender 2.80?

I am trying to export GLSL from Blender materials in a scene. This call appears to have been removed from module "gpu" in Blender's Python API as of 2.80. Is there any substitute? How should I proceed?...
Daniel Almeida's user avatar
1 vote
1 answer
1k views

For Blender, which is the better language to learn - OpenGl or OSL? And why?

I have only yesterday started to learn OSL. Since OSL tutorials are scarce in Youtube, I am beginning to wonder if OSL is becoming obsolete as I get the impression that it is overshadowed by OpenGl. I ...
Rita Geraghty's user avatar
1 vote
0 answers
228 views

bgl Hello Triangle Blank Screen

This code should draw the "Hello Triangle" (1) that everyone starts off with but it's not showing up. Since it's in Blender, I used (3) as a reference for when to draw. That's why the code itself ...
Guilty Ghost's user avatar
0 votes
0 answers
139 views

displaying model in opengl

I am trying to depict the story of the thirsty crow using crow, pebbles and waterpitcher with different water levels in it. I have created a objects using blender. When i export these models and use ...
Yash Agrawal's user avatar
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 ...
Eternity Tomorrow's user avatar
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 ...
Kowalski Paweł's user avatar
1 vote
2 answers
1k 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 ...
Denis's user avatar
  • 123
4 votes
0 answers
609 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 ...
StackOverflowToxicityVictim's user avatar
1 vote
2 answers
821 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?...
MKB's user avatar
  • 78
3 votes
0 answers
140 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 ...
StackOverflowToxicityVictim's user avatar
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: ...
valter's user avatar
  • 121
0 votes
0 answers
118 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 ...
CoD's user avatar
  • 352
1 vote
0 answers
84 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 ...
kio's user avatar
  • 41
0 votes
0 answers
484 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 ...
Retrax's user avatar
  • 1,520

15 30 50 per page