-
1. What Is Webgl?
WebGL stands for Web Graphics Library. It is a JavaScript API that is used for rendering 3D graphic in any compatible web browser. It is written in JavaScript.
-
2. Who Is The Developer Of Webgl?
Vladimir Vukicevic is the developer of WbGL.
-
3. What Are The Advantages Of Webgl?
WebGL advantages are:
- It is JavaScript programming.
- Increasing support with mobile browsers.
- It is open source.
- No need for collection Automatic memory management.
- It is easy to set up.
-
4. What Is Opengl?
OpenGl stands for Open Graphics Library. It is cross language and cross platform API for 2D and 3D Graphics.
-
5. What Is Rendering And Its Type?
Rendering is the process of generating an image from a model by using computer program.
There are two types of rendering:
- Software Rending
- Hardware Rending
-
6. What Is Html5 Canvas In Webgl?
In WebGL, HTML5
Syntax:
In WebGL, HTML5
Syntax:
1.
-
7. How Can We Create A Canvas Program?
We can create a Canvas program by using following codes:
-
8. What Are Vertex Shader And Its Task?
Vertex shader is the program code that is used to move the geometry from one place to another. It handles the data of each vertex.
The following tasks are:
- Vertex transformation
- Normal transformation and normalization
- Texture coordinate generation
- Texture coordinate transformation
- Lighting
- Color material application
-
9. What Are The Drawing Modes Supported By Webgl?
WebGL supported following drawing modes that are listed in table:
Mode Description
gl.POINTS It is used to draw a series of points.
gl.LINES It is used to draw a series of unconnected line segments.
gl.LINE_STRIP It is used to draw a series of connected line segments.
gl.LINE_LOOP It is used to draw a series of connected line segments.
It also joins the first and last vertices.
gl.TRIANGLES It is used to draw a series of separate triangles.
gl.TRIANGLE_STRIP It is used to draw a series of connected triangles in strip fashion.
gl.TRIANGLE_FAN It is used to draw a series of connected triangles sharing the first vertex.
-
10. What Is The Use Of Translation And Its Step To Translate A Triangle In Webgl?
In WebGL, Translation is used to move a triangle (any object) on the XYZ plane.
There are following steps to translate a Triangle.
- Prepare the Canvas and Get the WebGL Rendering Context.
- Define the Geometry and Store it in the Buffer Objects.
- Create and Compile the Shader Programs.
- Create and Compile the Shader Programs.
HTML 5 Interview Questions
HTML 5 Tutorial
Web Designing Interview Questions
Web Designing Tutorial
Computer Graphics Interview Questions
Graphic Design Interview Questions
Computer Graphics Tutorial