r/GraphicsProgramming • u/lenixlobo • Apr 17 '20
Will OpenGL become obsolete?
With majority of companies moving towards vulkan , do you think openGL will eventually become obsolete?
4
u/chao50 Apr 17 '20
No, or at least not anytime soon. OpenGL is still being actively updated alongside Vulkan. Many companies simply do not need the multi-threaded performance enhancements from Vulkan, and Vulkan is considerably more difficult to write and learn than OpenGL. This question gets asked a lot here, I've written more about it here.
4
u/camilo16 Apr 17 '20
"more difficult" depends, to make a hello world triangle? Absolutely, to make a full fledged engine no, Vulkan is easier.
OpenGL's abstractions often get in the way
1
u/pjmlp Apr 18 '20
3D graphics API get used for lots of stuff beyond making a full fledged engine, and Vulkan is still struggling to attract developers from those areas to care about its existence.
Most recent example, Octane Render dropped their Vulkan prototype backed for Optix 7, as shown on their recent GTC 2020 talk.
1
u/camilo16 Apr 18 '20
I am merely saying, as someone that develops in both vulkan and OGL, once you pass the hurdle of the initial 1000 lines of boiler plate, vulkan is MUCH easier to use.
2
u/pjmlp Apr 18 '20
The question that bothers me, from the point of view of embracing new generations into graphics programming, is where everyone that bails out before reaching the top of the 1000 lines of boiler plate ends up going.
So I always bring them into middleware engines, with their 3D agnostic APIs, thus reducing the value of Vulkan.
2
u/CorruptShorts Apr 19 '20 edited Apr 19 '20
vkCmdBeginRenderPassis the very definition of not easier to use.The crippled state of a command-buffer with a render-pass active is a constant hang-up not just for those new to Vulkan but in the tangled nuances of real-world code.
I joke with coworkers that Vulkan and DX12's threading capabilities aren't actually for threading but so we can precache all of our shit since we lost GL and DX11's orphaning.
I'll concede that Vulkan is indeed easier for pure and direct code like you would use for a demo.
1
u/camilo16 Apr 19 '20
Not only for that, it's easier to make dynamic code, as an example, implementing deferred rendering is easier in Vulkan than GL thanks to the exposition of vkimages
3
u/skulgnome Apr 17 '20 edited Apr 17 '20
Nah. Vulkan kinda sucks for portability. Consider 98% of typical OpenGL software: they're "get stuff on screen" oriented, not so much for doing mad pixel shaders at 120 hertz.
3
u/zemdega Apr 19 '20
No. OpenGL has been taking the right steps to remain relevant. Vulkan was a step in the right direction. There are industry alternatives, but if you learn modern OpenGL, you’ll be gaining valuable skills that can translate into other graphics programming technologies.
1
u/capedChameleon13 Apr 17 '20
That's the idea, although this will take a while
1
u/lenixlobo Apr 17 '20
How long do you think?
2
u/capedChameleon13 Apr 17 '20
Could honestly be a decade before openGL usage is a tiny almost insignificant sliver of the market. Although given the abundance and popularity of WebGL which is based on openGL it might be a bit longer. The general idea being if you're building something new you're going to jump on vulkan or a library that uses it rather than openGL. But because openGL has its roots in so many things, it'll continue to be updated and supported for a while. This timespan could be cut short if someone comes up with a robust feature complete wrapper around vulkan that makes it easier to use.
3
u/pjmlp Apr 18 '20
It will take much longer than a decade.
Consider that Google had to change Vulkan from optional into a required 3D API in Android 10, due to its lackluster support across Android OEMs.
Just that alone is going to take ages until one can consider that Android 10 and later are the majority of Android devices.
2
u/jtsiomb Apr 17 '20
No. They are two very different APIs, and each one has strengths where the other one has weaknesses. They will coexist for the forseeable future.
2
u/ButcherTibi Apr 18 '20
honestly with the adoption rate of Vulkan, I'd say that it's possible that OpenGL might just be updated to simply support multi-threading and a allow for lower level access to the GPU
2
7
u/CorruptShorts Apr 17 '20
Where is this *majority*? Aside from games related software the adoption of Vulkan is pretty limited from what I've seen (film family tools in their viewports).
There's a lot more than just Maya and zBrush in the world - random audio mixer-software XYZ isn't moving their QGLWidget based curves sheet to QVKWidget without a legitimately good reason to muck with their schedule.
The lack of a solid GL-on-VK transition layer like DX12 has is also an enormous hindrance to making any transitions while still meeting your schedules - which is more important than anything else.
The opportunity to completely scrap something or add a superflous option isn't very common, more companies using these APIs are scraping by than generating Autodesk levels of profit.