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

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.
6 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#51164
No description provided.