What’s 2d/3d rendering and interaction with the WebGL APIs? It’s a Javascript API for rendering interactive 2d and 3d graphics on any compatible browser. Here I want to put an example so we can understand it in simple language.
2D/3D RENDERING AND INTERACTION WITH THE WEBGL APIS
Just Imagine; Any real estate giant wants to sell their plots online and his/her condition is to sell it in a unique way.
A UNIQUE WAY IS HERE
We can suggest him/her sell it; via 3d graphics and put your 3d maps of plots on your website of. However, he/she might ask a question to you I can’t develop 3d map every time!
Yeah!! here is a solution 3d map and the 2d to 3d conversation both are possible by the huge sets of APIs provided by WebGL.
So he just has to upload simple 2d plan and his/her aim of the 3d map will be fulfilled by your coding and the help of APIs of WebGL.
NOW YOU WHAT’S YOUR WEBSITE USER CAN DO!
They can buy selected plots from the 3d map after that using reformation API of WebGL and your logic; Map automatically changes its shape and measurement.
From above example, you can see the user can feel the magic in the purchase but it’s not magic its a point to point and line to line coding of that Map these APIs are only responsible for its rendering.
So I think now we can understand its importance.
You can find the list of APIs in below link.
- https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
Yeah, it works for different kind of actions like rendering, transformation, orthographic and isometric. Learning is a fun and 2D/3D representation in websites is a magic. But it’s not easy without WebGL coz it’s too difficult to achieve the views and its action only with HTML(canvas).