Deprecated OpenGL Migration, the home stretch! #51164

Closed
opened 2017-04-10 10:45:48 +02:00 by Campbell Barton · 15 comments

This is add-hoc task to help manage

  • Catch errors/deprecated calls at runtime, fix code. @MikeErwin
  • Update or remove all uses of GPU_basic_shader (contains deprecated use of: gl_Vertex, gl_Normal, gl_ClipVertex).
(currently empty)

Ignore:

  • Game Engine (see UPBGE)

Done:

  • Blender should not crash when running with core profile only - current crashes are because of basic_shader) @dfelinto @Sergey
  • Background sets in eevee and clay-engine @fclem
  • Manipulators in eevee and clay engine. @fclem
  • ForceField shapes. @fclem
  • Remove usage of PRIM_QUADS_XXX primitives @mont29
  • Lattice drawing in eevee and clay engine @ideasman42
  • Use the new Matrix API everywhere @MikeErwin
  • Manipulator drawing @mont29
  • Fix UI blocky glitch in core profile for Linux @Sergey
  • Draw Manager: Basic curve drawing (wire only, since displist is being removed) @ideasman42
  • Remove BGL deprecated calls @dfelinto
  • Get core profile working on Mac @MikeErwin
  • Better context creation on Windows @MikeErwin
  • Object-mode selection drawing (use new draw manager). @ideasman42
  • Line stipple update @mont29

Notes:

  • To build with core profile:
    WITH_GL_PROFILE_CORE=ON WITH_GL_PROFILE_COMPAT=OFF
    WITH_LEGACY_OPENGL=OFF WITH_GAMEENGINE=OFF (not yet supported)
    ** WITH_PLAYER=OFF (needs BGE)
  • Draw Manager Tasks have been moved to: #51202
This is add-hoc task to help manage * Catch errors/deprecated calls at runtime, fix code. @MikeErwin * Update or remove all uses of `GPU_basic_shader` (contains deprecated use of: `gl_Vertex`, `gl_Normal`, `gl_ClipVertex`). <insert name here> ``` (currently empty) ``` ---- **Ignore:** * Game Engine (see UPBGE) --- **Done:** * ~~Blender should not crash when running with core profile only - current crashes are because of basic_shader) @dfelinto @Sergey~~ * ~~Background sets in eevee and clay-engine @fclem~~ * ~~Manipulators in eevee and clay engine. @fclem~~ * ~~ForceField shapes. @fclem~~ * ~~Remove usage of PRIM_QUADS_XXX primitives @mont29~~ * ~~Lattice drawing in eevee and clay engine @ideasman42~~ * ~~Use the new Matrix API everywhere @MikeErwin~~ * ~~Manipulator drawing @mont29~~ * ~~Fix UI blocky glitch in core profile for Linux @Sergey~~ * ~~Draw Manager: Basic curve drawing (wire only, since displist is being removed) @ideasman42~~ * ~~Remove BGL deprecated calls @dfelinto~~ * ~~Get core profile working on Mac @MikeErwin~~ * ~~Better context creation on Windows @MikeErwin~~ * ~~Object-mode selection drawing (use new draw manager). @ideasman42~~ * ~~Line stipple update @mont29~~ ---- **Notes:** * To build with core profile: **WITH_GL_PROFILE_CORE=ON** WITH_GL_PROFILE_COMPAT=OFF **WITH_LEGACY_OPENGL=OFF** WITH_GAMEENGINE=OFF (not yet supported) ** WITH_PLAYER=OFF (needs BGE) * Draw Manager Tasks have been moved to: #51202
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Author
Owner
Added subscribers: @ideasman42, @mont29, @dfelinto, @Sergey, @LucaRood-3
Campbell Barton changed title from Deprecated OpenGL Migration, the final stretch! to Deprecated OpenGL Migration, the home stretch! 2017-04-10 10:55:57 +02:00
Author
Owner

Added subscriber: @fclem

Added subscriber: @fclem

Added subscriber: @MikeErwin

Added subscriber: @MikeErwin

This issue was referenced by 9fd3435a93

This issue was referenced by 9fd3435a93b45b80237419b1b218afdce72d4b9d

Note on "icon_draw_rect: icons are" (assert on interface_icons.c when building WITH_GL_CORE). The problem seems to be with the window matrices. For example block->aspect should be 1.0, but instead it is 0.001. I believe the same happens for other values of the block->struct.

Sample file: clay-ui.blend

Note on "icon_draw_rect: icons are" (assert on interface_icons.c when building WITH_GL_CORE). The problem seems to be with the window matrices. For example block->aspect should be 1.0, but instead it is 0.001. I believe the same happens for other values of the block->struct. Sample file: [clay-ui.blend](https://archive.blender.org/developer/F541605/clay-ui.blend)

This issue was referenced by 4f063dc4dd

This issue was referenced by 4f063dc4dd127c9945b345dff7f316645a2470a4

This issue was referenced by 181c8f8ccd

This issue was referenced by 181c8f8ccd9f2ec102d3b78a18a809e320467aa2

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger

@MikeErwin about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests!

@MikeErwin about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests!
Member

In #51164#429546, @dfelinto wrote:
@MikeErwin about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests!

Turned out the problem was earlier in context setup. It wasn't even reaching glewInit! Once that was fixed I had no problem with GLEW on Mac.

> In #51164#429546, @dfelinto wrote: > @MikeErwin about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests! Turned out the problem was earlier in context setup. It wasn't even reaching glewInit! Once that was fixed I had no problem with GLEW on Mac.

Added subscriber: @you.le

Added subscriber: @you.le

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2018-08-14 20:09:34 +02:00

Pretty much everything appears to have been converted, any more issue we discover can be handled in their own tasks.

Pretty much everything appears to have been converted, any more issue we discover can be handled in their own tasks.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#51164
No description provided.