Thursday, December 2, 2021

Stupidest Project I had ever laid my hands on

 I need to get this out and out pretty quickly.

If blogging is a way of venting ones frustrations then so be it. I thought why would people be interested in my rants and deduced that they might like reading it if I act Stupid and Dumb.

From my experiences as a rickety software writer, I have come to believe that there exists a class of projects that lie at the border between the possible and the impossible.

No extra points for failing in a software project. But see my teachers were making it a point to force me to write the purpose I was writing a code for at the start of the program.

It used to be like:

"WAP to display the first n fibonacci numbers in the fibonacci series"

I never questioned them and being an obedient student followed every bit of instruction given.

Now no one writes code that does nothing and its presumed that people are into coding to do useful stuff.

But I never found anything interesting or useful in the series we generated.

Not that it mattered as long as we got those elusive extra marks.

Coming to the main topic of this post:

THE most stupid project I have ever laid my hands on that seemed to be at the border of the possible/impossible is VISUAL PROGRAMMING

My advice to people dreaming of such things is to stop doing that and get real.

I in fact gave a seminar on this topic in my post graduation. Literature was hard to come by. There were classifications of programming languages. But not visual programming languages.

I hybridized literature that spoke about Programming by Example with some obscure software called Pygmalion. I also looked at some radically new ways of representing program execution and data.

I spoke on recording user actions as done in macros. I spoke of showing program actions by animation and representing data as visual elements such as boxes.

Finally when it came to implementation It never came to fruition. Post graduation is where you get your ideas tested and the feedback that I got from Dr. Dobbs journal editor can be summarized in one word:                                 

                                                            "Interesting"


Would like some comments if it helps clarify.. Don't know what use this technology, if I may call it that, might be put to use in. In light of recent developments in AR/VR and HMD may be its got some real uses in program debugging or tools to represent program visually so that programming errors become evident. It could also help in cases where programmer needs help to visualize complex data structures.

Tuesday, November 23, 2021

Polyline Tweening in Javascript Canvas

Excerpts from Computer Graphics using OpenGL by F S Hill Jr and Stephen M Kelly

Interesting tweens can be created that show one figure being tweened into another.
Its simplest if the two figures are polylines based on the same number of points.
Suppose if the first figure is based on the polyline Ai, and the second polyline B is based on points Bi, for i=0,.......,n-1
we can form a polyline P(t), called the tween at time t by forming the points
Pi(t) = (1 - t) Ai + t Bi
if we look at the succession of values for t between 0 and 1, say t=0.0,0.1,0.2.... ,0.9,1.0
we see that this polyline begins with the shape of A and ends with the shape of B, but in-between it is a blend of shapes between A and B.

Here is a link to google books for the said pages in the this book.

Monday, May 10, 2021

Can you create svg graphic from obj files

I was wondering if you can create a scalable vector graphic(svg) from things that we usually draw in opengl, like for example loading a model.

Looks like someone has already tried this. I am showing his work of art and giving a link to his page.

Here is a simple SVG graphic that is a 3D cube rotated with buttons.



This is a 3D animation with a triangle hanging from a balance.


Inspiring work indeed.

Saturday, December 5, 2020

Introduction to Three.js

  Three.JS is a graphics framework/library that can render into canvas/svg/webgl contexts. The library has powerful capabilities to display complex 3D scenes with multiple models/camera/lights in it. I will demonstrate a program that rotates a cube continuously. I will attach event handlers to stop rotation when mouse or finger touch/click event happens.

Friday, December 4, 2020

Qt / QML - a tool for modern application programming



 Qt and QML are tools that can increase productivity of application development big time. Qt is a framework consisting of C++ libraries that can do almost everything conceivable as far as app development is concerned. It can even create android/ios applications.







 Qt Creator is the IDE you can use to develop Qt/QML applications.



The best thing about Qt is that you can even use javascript like QML language to program the widgets on screen.

In fact you can write an entire application in QML without even touching C++.

Loading glTF models in Three.js

Hoi you... I am loading a glTF model to display a 3d scene. Please don't ask me how I did this. Just inspect in the browser the code. Better still visit this site: Link to Threejsfundamentals site

Sunday, November 29, 2020

Informal Talk: I wanted to play video games before doing B.E.

 Hi There,

I can only hope that you the reader are doing good. I did do B.E. and was compelled to pursue an M.Tech from the prestigious Manipal Institute of Technology. I am not going to boast of it any further. What I wanna say is in retrospect I posted something in my FB post which students wanted to make viral.

We'll I was working for Christ University, Faculty of Engineering, Bengaluru back then. Once it so happened that I in my creative outburst penned or typed a post that read:

I wanted to play video games before doing B.E, after B.E I wanted to make games

I wanted to watch Porn before doing M.Tech, after M.Tech I wanted to ....

This short post garnered all round appreciation from the students. They were gung ho because they got another chance to besmirch the college reputation by making this post viral and I co-operated with them by making my post public for a short duration so that they could take snapshots. I even added masala to the post by commenting on it saying:

Now, I am very careful what I want from a PhD.

They would not fathom what I had to endure during my student days. They knew only to complain of lack of placements and bad food in the canteen. Anyways past is past. Those were the days when Jio was recently launched and even a middle class kid got to enjoy high speed broadband.

I posted another post some time later that read:

Din mein piyo raat mein Jio

I feel this much content is enough for the day as I don't want to bore you people with some more of my tasteless sarcasm.