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.