Python bgl docs still includes deprecated OpenGL functions #60891

Closed
opened 4 years ago by Darcvizer · 11 comments

System Information
Operating system: windows 10 64
Graphics card: ----

Blender Version
Broken:
2.80 hash: 1b6da95ccb11, data: 2019-01-25

Short description of error
The library is missing glVertex.
https://i.imgur.com/fHTSY3X.png
Exact steps for others to reproduce the error
import bgl. enter bgl. press ctrl+space

**System Information** Operating system: windows 10 64 Graphics card: ---- **Blender Version** Broken: 2.80 hash: 1b6da95ccb11, data: 2019-01-25 **Short description of error** The library is missing glVertex. https://i.imgur.com/fHTSY3X.png **Exact steps for others to reproduce the error** import bgl. enter bgl. press ctrl+space
Poster

Added subscriber: @Darcvizer

Added subscriber: @Darcvizer
brecht changed title from The library is missing glVertex. to Python bgl docs still includes deprecated OpenGL functions 4 years ago
brecht commented 4 years ago
Owner

Added subscriber: @brecht

Added subscriber: @brecht
brecht commented 4 years ago
Owner

These functions are no longer available, it is the documentation that needs updating:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Draw_API

These functions are no longer available, it is the documentation that needs updating: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Draw_API
Collaborator

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Collaborator

@brecht, is doc/python_api/rst/bgl.rst all handwritten, or is it generated?

@brecht, is `doc/python_api/rst/bgl.rst` all handwritten, or is it generated?
brecht commented 4 years ago
Owner

Maybe it was generated at one point, but I can't find anything about that in git history.

You could try auto-generating it from this if it's not too much work to extract the basic descriptions and argument types:
https://github.com/KhronosGroup/OpenGL-Refpages/tree/master/gl4

Maybe it was generated at one point, but I can't find anything about that in git history. You could try auto-generating it from this if it's not too much work to extract the basic descriptions and argument types: https://github.com/KhronosGroup/OpenGL-Refpages/tree/master/gl4
Collaborator

Hmm, I could do it but it does not feel like it is worth it.
Maybe we should just link to http://docs.gl/ and mention how bgl differs from the C functions.
I guess the main difference is that bgl.Buffer has toused as parameter instead of a pointer.

There is great OpenGL documentation out there; I don't think we can do much better than that. By outsourcing this part, we can focus more on creating better examples on how to use the functions in Blender.

Hmm, I could do it but it does not feel like it is worth it. Maybe we should just link to http://docs.gl/ and mention how `bgl` differs from the C functions. I guess the main difference is that `bgl.Buffer` has toused as parameter instead of a pointer. There is great OpenGL documentation out there; I don't think we can do much better than that. By outsourcing this part, we can focus more on creating better examples on how to use the functions in Blender.
brecht commented 4 years ago
Owner

That seems fine, I guess we can just link to the OpenGL reference docs for each function.

We should probably link to the official reference rather than docs.gl:
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/

That seems fine, I guess we can just link to the OpenGL reference docs for each function. We should probably link to the official reference rather than docs.gl: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/
Poster

I would be happy to give an example of how to transfer the coordinates of a real object, rather than enter them manually.
https://docs.blender.org/api/blender2.8/gpu.html#wireframe-cube-using-index-buffer

I would be happy to give an example of how to transfer the coordinates of a real object, rather than enter them manually. https://docs.blender.org/api/blender2.8/gpu.html#wireframe-cube-using-index-buffer
Collaborator

This issue was referenced by blender/blender@3c7a538c9b

This issue was referenced by blender/blender@3c7a538c9b73ff7ab87ba508c5d44433d6c2877b
Collaborator

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
JacquesLucke closed this issue 4 years ago
Sign in to join this conversation.
No Label
good first issue
legacy module/Animation & Rigging
legacy module/Core
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/2.81
legacy project/2.82
legacy project/2.83
legacy project/2.90
legacy project/2.92
legacy project/2.93
legacy project/3.0
legacy project/3.1
legacy project/3.2
legacy project/3.4
legacy project/Add-ons (BF-Blender)
legacy project/Add-ons (Community)
legacy project/Alembic
legacy project/Animation & Rigging
legacy project/Asset Browser
legacy project/Automated Testing
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Blender Cloud
legacy project/Code Quest
legacy project/Collada
legacy project/Compositing
legacy project/Core
legacy project/Cycles
legacy project/Datablocks and Libraries
legacy project/Dependency Graph
legacy project/Documentation
legacy project/EEVEE & Viewport
legacy project/Freestyle
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Physics
legacy project/Game Python
legacy project/Game UI
legacy project/Geometry Nodes
legacy project/Good First Issue
legacy project/Grease Pencil
legacy project/Images & Movies
legacy project/Import/Export
legacy project/Infrastructure: Blender Buildbot
legacy project/Infrastructure: Blender Web Assets
legacy project/Infrastructure: Websites
legacy project/Modeling
legacy project/Modifiers
legacy project/Motion Tracking
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Overrides
legacy project/Papercut
legacy project/Physics
legacy project/Pillar
legacy project/Pipeline, Assets & I/O
legacy project/Platform: Linux
legacy project/Platform: macOS
legacy project/Platforms, Builds, Tests & Devices
legacy project/Platform: Windows
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Sculpt, Paint & Texture
legacy project/Straightforward Issue
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Translations
legacy project/USD
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Video Sequencer
legacy project/Virtual Reality
papercut
Priority › High
Priority › Low
Priority › Normal
Priority › Unbreak Now!
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
straightforward issue
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#60891
Loading…
There is no content yet.