Internet
Fact-checked

At EasyTechJunkie, we're committed to delivering accurate, trustworthy information. Our expert-authored content is rigorously fact-checked and sourced from credible authorities. Discover how we uphold the highest standards in providing you with reliable knowledge.

Learn more...

What Is 3D WebGL™?

Eugene P.
Eugene P.

The Web-based Graphical Library (WebGL™) is an abstract programming interface (API) designed to allow the use of three-dimensional (3D) graphics directly in a web browser without the need for software or plug-ins separate from the core browser. The difference between 3D WebGL™ and other browser-based 3D graphical languages — such as the virtual reality markup language (VRML) — is that 3D WebGL™ allows direct access to the graphics processing unit (GPU) on the hardware display card present in the computer. Another difference is that 3D WebGL™ is not a separate language but an API implemented through the JavaScript® scripting language that is understood natively by nearly all web browsers. While this type of direct, low-level access to the hardware of the computer system is one of the strengths of WebGL™, it also is one of the larger problems, because it presents a series of security issues that are not easily solved.

One important development that has made 3D WebGL™ possible is the introduction of the canvas element in the HyperText Markup Language specification version 5 (HTML5). The canvas element allows low-level access to a viewport that can be drawn in and maintained in a style consistent with existing types of rendering APIs in other computer programming languages. The WebGL™ API works with this accelerated canvas to provide the ability to render complex scenes very quickly without having to rely on software emulation across different platforms or implementations.

3D WebGL designed to allow the use of three-dimensional (3D) graphics directly in a web browser without the need for software or plug-ins separate from the core browser.
3D WebGL designed to allow the use of three-dimensional (3D) graphics directly in a web browser without the need for software or plug-ins separate from the core browser.

The 3D WebGL™ API not only uses the canvas element, but also is based on the Open Graphics Library for Embedded Systems (OpenGL ES®). This is a portable version of the standard OpenGL® library that is designed to be portable not only between different computer operating systems, but also across any device that requires the use of low-level 3D graphics. This small footprint allows the library to be integrated into any browser for nearly any device.

The implementation of 3D WebGL™ permits the development of interactive programs that can be run directly from within a website or downloaded and run as a standalone application within the web browser. It can be used to create 3D video games, education software, simulations and 3D visualization software for business and scientific research. By using the browser as the wrapper application, the 3D environments can be developed without having to worry about repetitive boilerplate code for basic interfaces.

One of the largest drawbacks to using 3D WebGL™, and one that is preventing its widespread acceptance with certain software and hardware manufacturing companies, is the security risk it presents. The ability for a program to access the GPU can give a malicious program the ability to force the host computer system to execute harmful code. It also has been shown that denial of service (DOS) attacks are possible using the WebGL™ API. For this reason, there are some major computer companies that refuse to fully support WebGL™ in their products.

Discuss this Article

Post your comments
Login:
Forgot password?
Register:
    • 3D WebGL designed to allow the use of three-dimensional (3D) graphics directly in a web browser without the need for software or plug-ins separate from the core browser.
      By: maya2008
      3D WebGL designed to allow the use of three-dimensional (3D) graphics directly in a web browser without the need for software or plug-ins separate from the core browser.