Sunday, December 22, 2019

Book of Shaders- Second Shader on Randomness(chaos)

In this post I have shared a shader I found on the "Book of Shaders" site. I selected a shader on randomness. You can easily lookup the code of this shader by right clicking and selecting inspect. Now this is something you do very often to inspect your DOM from the browser. And some more advice to you is to experiment with Three.js that I used to render the shader.

Book of Shaders- Shader in Blogger

Hi There, I have used Three.js and posting some shader from the site: Book of Shaders This is the vertex shader used here:
        void main() {
            gl_Position = vec4( position, 1.0 );
        }
and this is the corresponding fragment shader:
        uniform vec2 u_resolution;
        uniform float u_time;

        void main() {
            vec2 st = gl_FragCoord.xy/u_resolution.xy;
            gl_FragColor=vec4(st.x,st.y,0.0,1.0);
        }
For some strange reason my code for this post is interfering with the code of the other post. I am really sorry about my lack of understanding of the nuances of HTML/CSS/JS. Swalpa Adjust Maadi(Adjust a little) and view this post individually.

Sunday, November 10, 2019

Making my first game in Unity 3D

I have become so confident of my skills that I have ventured into making a Unity 3D Game and started a blog post on it even before I finished it.

This site =>https://learn.unity.com/tutorial/your-first-game

Is where I am fixated on right now.

My hope is to publish to the internet a rudimentary game that I make... hopefully it would allow me to post the game in this blog itself that visitors can play(I am not sure about this as yet)

Well it turns out this first game didn't teach you anything yet set your aspirations and dreams on the right path.

I hope I get some more time this weekend and am able to make a rudimentary playable game.

As said in the four videos... A minimum value product.

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
  
      

Wednesday, May 22, 2019

A Big Thank You


I thank all my blog viewers for so much love and appreciation... I have enjoyed blogging as much as you all have visiting this blog.
Popularity is down does not mean quality is down.


A 10% improvement in frequency of posts and being upto date with quality reduces popularity by 10 times again I am cooking up these numbers.


If you are from an impoverished country lower in income strata (esp african) than Indians this blog will not consume much of your data balance.
I have as a goal, tried to be of help to learners of computer graphics. Blogging is a very effective way of reaching out to fellow learners. I have decided to now devote most of my weekends to seriously working on graphics projects with two goals:

1) Impact more learners
2) Make my blog more popular and cater to the needs of the those learners in need of guidance,

So starting henceforth you will see a qualitatively different blog with lot more content, products, projects and features updated and posted more frequently. You will have links and access to world class literature curated personally by me from across the web.

I also intend to cater to a wider community of visitors esp those who visit this blog for not more than 2 minutes.

Happy Surfing...