Safari Completes Support For WebGL2
Written by Ian Elliot   
Wednesday, 23 February 2022

With Safari support now in place, at last it seems we are safe to assume that WebGL 2 is supported by enough modern browsers to make it worth using.

webglicon

Khronos, the maintainer of OpenGL reported this news with the  headline:

"WebGL 2.0 Achieves Pervasive Support from all Major Web Browsers"

but this is just a nice and positive way of saying that Safari has finally caught up. If, like me, you think that Safari's development is too interwoven with Apple's commercial interests then presumably you will be surprised that it ever happened. Having 3D in the browser definitely weakens the control that Apple has over apps. Why write a 3D app when you can write a 3D website?

Currently we now have OpenGL 2 support on Chrome, Firefox, Edge, Safari and Opera - which means as long as your user has a machine with a suitable graphics card and driver your OpenGL 2 app should just work.  Can I Use estimates that support is at 88% globally, with most of the lack of support being old browser versions which most run on old hardware that couldn't run OpenGL any way. Compare this to the 98% support for OpenGL 1.

The whole edifice rests on Google's work implementing ANGLE - Almost Native Graphics Layer Engine. This translates OpenGL ES calls to DirectX on Windows and OpenGL under other operating systems. In 2019 Apple added support for their Metal backend making it possible for ANGLE to run on native graphics on Apple machines.

Anglelogo

So what does version 2 add?

The Khronos website claims:

".. key features including transform feedback, instanced rendering, multiple render targets, uniform buffer objects, occlusion queries, and much wider texture support"

This sounds a bit like icing on the cake but it translates to a number of things that make 3D programming easier.

The next step is for WebGL to evolve into WebGPU which will provide GPU accelarated computation as well as graphics but at the price of not being compatible whith WebGL. It seems we have to start over again with yet another standard.

Personally I'm glad that WebGL 2 is now widely supported but I will be waiting for WebGPU before upgrading anything. It looks as if it could be a long wait, but at least it has the promise of being the last major update.

What is really needed now are better tools to make advanced graphics easier.

webglsq

 

More Information

WebGL 2.0 Achieves Pervasive Support from all Major Web Browsers

Related Articles

JavaScript Canvas - WebGL 3D

WebGL Convolutions 

WebGL 1.0 finalized - the state of play

WebGL made easier with PhiloGL

JavaScript Bitmap Graphics with Canvas (I/O Press) 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Go At Highest Rank Ever in TIOBE Index
20/11/2024

Go is currently in 7th place in the TIOBE Index for November 2024. Not only is this is the highest position it has ever had, it's percentage rating is almost equal to its all-time-high. Will Go contin [ ... ]



PHP 8.4 Adds Property Hooks
26/11/2024

PHP 8.4 is available with improvements including property hooks, asymmetric visibility, and an updated DOM API.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

 

<ASIN:1871962625>

<ASIN: B07XJQDS4Z>

Last Updated ( Wednesday, 23 February 2022 )