Friday, September 20, 2019

3D Sierpinski Gasket in a Tetrahedron


I Have lifted this program from this site: https://www.mobilefish.com/developer/webgl/webgl.html which in turn lifted the programs from a coursera course on WebGL. The 3D Sierpinski Gasket will in future be modified to rotate with interaction using mouse.
PS: Browse individual posts. Looking at all posts in one page might break the code behind. Here I posted in gamedev.stackoverflow.com a question about the same issue and it got solved instantly. Oops ... your browser doesn't support the HTML5 canvas element

Saturday, September 7, 2019

Draw an Interactive Cube in HTML5/WebGL

This is a canvas that allows you to play with a cube with your mouse. This interactive cube has been made possible with the miracle technology of HTML5 Canvas and WebGL NJoy!!!
      

HTML5 Canvas and WebGL - A new beginning

This post displays a text message inside a canvas which is drawn using a webgl context.




This is another canvas that displays a triangle in an experimental webgl context. If you are not able to view the triangle then may be you need to upgrade to a better browser or enable webgl in your browser. (BTW it is enabled by default in most modern browsers)
For more details about WebGL Application visit this site: https://www.tutorialspoint.com/webgl/webgl_sample_application.htm