Wednesday, June 3, 2015

Traffic Lights

Poor students have to toil a lot to do these kind of projects and final outcome looks like how the chipmunks cleaned the house "spik and span".

They are bright, they are young and they are learning.

Credits go to shubham and mohd. ashfaq... since this project did not appear in the blog earlier and it looks new i presume that these guys did it on their own. Im still wondering how they did the clouds and the trees. Nice to know of such great talent in the college.

Snapshots:








Here is the source.

Space invaders

Jeevan hats off to you. Nice project and i really liked the attribution and warranty at the start of the program.

Here are the snapshots:






Here is the source.... scratchpad.c and textures.c.

Racing car

As the name suggests this racing car is going on a racing track which glows...

Abhilash Joel worked on this project and i must confess he is a good programmer. Will turn out as an excellent professional though i would like to advice him to devote more time to designing and analysis.

The last thing that a programmer does after writing code which does the job is to beautify the code. Online code beautification tools can be used. Optimize the code. Make it look better. Write as many comments. Even if its just a hundred or two hundred line program it should be "delivered" properly yes even if its going to be an open source software.(NOTE: I FOLLOW NONE OF THE ABOVE. WHAT IS WRITTEN HERE IS CHARACTERISTICS OF AN IDEAL PROGRAMMER)

Snapshot:




Here is the source.

Abhilash forwarded me another version of the game which he claims is better in playing control. Here it is. Modifications that i suggest may be to change the color of the tracks and have a sky and greenery on the sides of the track.

Racer

In this project the cars are moving as earlier in the old racer car project posted before. Only extra thing that is added is that the black meter line on the road is made to translate down so that it gives an impression that the cars are moving.

Here are a few snaps:







The problem with this project is that after some points a few cars block the road and player compulsorily loses.

Here is the source.

Monday, April 27, 2015

Binary Search animation ported to ubuntu

 This project being done by one of my students is about binary search animation. Using quick sort the given array is sorted first. Then it is searched. There is a menu which appears on right click. If you don't mind the delay then this can be a good program to demonstrate binary search. This project was working in windows initially and with slight tweaks its now running in ubuntu.

Snapshots:







enter the value of n
5
enter the values
4 3 1 5 2

Enter the search value<-----2

press ENTER

------------GO TO THE WINDOW AND CLICK LEFT MOUSE BUTTON-------------

Here is the source.


Friday, April 17, 2015

CGLABPROJECTS.BLOGSPOT.IN ---- Meta

Hi Guys,

If someone were to comment on the look and feel of my blog they would have many things to say, I hope. I begin all blog posts with "This project...." and my style of sharing code is to give a link to my Gdrive with "Here is the source..." and you are expected to magically know to try and click on here or source.
Blogs like these confuse first time visitors. The posts are in reverse chronological order.
Minor things apart, i must admit that if you have a look at the blog, there are quite a few projects in which i need to get GIF files generated to display the output. I purposefully chose GIF files because i know many of my students are browsing using limited data packs. I wanted to create videos of a few program's explanations. Just don't know how helpful it may be and also i feel it may cost me a few grand(absolutely penniless right now and eagerly awaiting the first 100 dollar cheque from google ads). My college professor advised me against giving out lecture videos for downloads fearing i may become more famous than the college in which i teach. In fact i was tasked with integrating moodle in our website. That is a work in progress and if we get a good hand we may pull it off, too. 

For the data that my blog consumes i feel it is worth the visit. For some of the students it may be a gateway to further learning. Some may be glad that they found my blog.

Today being a strike called for a dam being constructed by Karnataka in a border area south of Bangalore i was relatively free.

I hope my blog is a visual treat to the eye and sets your imagination on fire with computer generated imagery.

Here are some images from google to look at:

This is Funny:

This is a GIF of a fighting sequence:

Eye Candy along with fast cars:


These are the kind of graphic pacman monsters i would like in my games.... with eyes which turn and u can see the reflection,.... WOW!!!


How about window panes in metro trains as gaming screens???




Virtual Football....


Games for Kids between 5-10:


How do you handle failure while playing games??? The key is not to get angry and frustrated.


Thursday, April 16, 2015

Visual Sorting Algorithm

This project is under development by Prateek G. The code developed is for a crude sorting algorithm and it uses timer function as a re-entrant function.
Enhancements to be done include running this program for various sorting algorithms. I will surely post code to implement all the sorting algorithms in case I become jobless. Right now i can only suggest you these things. Prateek tried and failed i guess, and since he is a good student i presume there are practical difficulties in doing this.
Here is the snapshot:



Here is the source.