Archive for the ‘Fun & Games’ Category

How to Make a Timelapse

Wednesday, December 21st, 2011

Timelapses are videos where many successive pictures of a subject are put together, ordered by date.

The first one I remember seeing was that guy who took pictures of the front of his home, every day, for a couple of years. There is another very cool one of a guy who travels around china, always taking pictures of his face. Those videos of crossings in large towns, where you see everybody moving very fast, are also a sort of time lapse.

Besides having a very cool effect, time-lapses can show in a pleasant and interesting way how something was made. One example are the games of Ludum Dare (a challenge to make a game from scratch in 48 hours), that are often followed by a time lapse of how the game was made.

I wanted to add a timelapse video of my own entry to LD, and at first I thought it would be a very complicated affair. Turns out it was really simple.

First thing you need to do is to set up your system to take regular pictures of your desktop. You can do this with a single command using xwd, imagemagick and date:

xwd -root | convert xwd:- -resize 800x800 `date +%d%H%M%S.png`

This will create a screenshot of whatever is on your screen, and name it “dayhourminutesecond.png”. The 800×800 part resizes the screenshot so that the largest size will be 800 pixels (you don’t want full-sized screenshots, unless you don’t care about running out of disk space).

Now you need to set up your system to run the above line every minute. I tried to get CRON to do that, but it * * * * * wouldn’t work for some reason, so I wrote a shell script and left it running in the background:

#/bin/bash
while true; do
i=`date +%d%H%M%S.png`
xwd -root | convert xwd:- -resize 800x800 $i
sleep 1m
done

No magic here.

After you are done with your screenshots, you need to put them together in a video. You do that using mencoder. I took this line from the Cenolan blog (originally for web cam time lapsing):

% ls -1tr > files.txt
% mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o test.avi -mf type=png:fps=10 mf://@files.txt

Note the bolded part. You need to change these lines if you save your pictures as something other than pngs, and if you want a different speed to your timelapse. I find that anything under 10 fps gets a bit too slow. The script runs surprisingly fast for 3.000 pictures.

Now go make some time lapses! Here is mine.

Ludum Dare, I did it! :-)

Tuesday, December 20th, 2011

If you graduated in computer science or computer engineering, you have, at least once, thought about writing a computer game.

And if you are like most people, and like me, you never went through with that idea. What a shame, I know how it feels.

But this weekend, I was vindicated. I decided to plunge into the Ludum Dare. The Ludum dare (or LD48 as it is also know), is an open challenge to develop a game in 48 hours. The game must be done from scratch: code, graphics, sounds, everything. Also, each edition has a theme, that should be followed. The theme this time was “Alone”.

Since I’ve never completed a game before (and I suck at GUI programming), I was not very confident that I would be able to complete the dare. Fortunately, that was not the case at all. Not only I completed my game, but I was also rather proud of it, given the constraints, and I also got very excited about the whole LD48 community.

I think one of the big things that helped me along was having a friend do the dare with me. My Milked Eek, from the Mafia Scum Forums, participated in the Dare too, and we would exchange messages every time we had a problem, or reached a milestone, or just had a lol-worthy thought. That helped me keep my motivation up in those 48 hours.

It was a great experience. I managed to learn a lot about Java, and about Slick, the gaming library that I used. I gained a lot of confidence in my programming skills. And I made a game! I made a gaaaameeee :-)

So, here are some links:

Maze Explorers, my Ludum dare entry. You run it with Java. Works in Linux/Mac/Windows

A time lapse video of me making the game

Courage Quest, a fantastic entry for this edition of the LD48. If I didn’t tell you, you couldn’t say that this game was made in 48 hours.

Stay tuned!

Forget about glhf, it is all about ¨uhhrg¨ now!

Tuesday, November 15th, 2011

Someone at team liquid forum posted a strategy guide joining two things that I love, zombies and StarCraft:

A Zombie´s Guide to Starcraft

There is some surprisingly good advice there about gaming and laddering mindset. I´ll be sure to put it to good use.

Braaaains!

Zombie Walk <3

Monday, November 14th, 2011

Zombies are one of my favorite things :-) And two weeks ago I had the chance to take part in the Zombie Walk RJ 2011! (portuguese only :-( )

For those who do not know, a zombie walk is an event where a lot of people dress like zombies, gather like zombies, and shamble the streets while moaning ¨braaaaains¨, like zombies! It is a big ¨be a zombie for a day¨ event. A light hearted and fun bloody walk!

At first, I was thinking that dressing as a zombie would be the easy part - just some fake blood, dirty clothes and we´re good to go, right? Turns out that making fake wounds can be a very complicated endeavor. I decided to try my hand at making a more elaborate costume by checking some internet turorials.

The results were mixed… :-P

But at least I got to meet these guys!

Kill all zombies!

So it was pretty fun.

Skyblock!

Saturday, October 22nd, 2011

I love Minecraft animation videos. This one is a very short one about the survival map “Skyblock”

Survival maps are user-created challenge maps in minecraft. They limit the starting available resources, so that you must use creativity and resource management skills to thrive in such maps. Eventually, you can improve your conditions by making use of renewable resources.

Skyblock is one such survival map: The map is completely empty, except for a very tiny sky island (shown in the video).

  • Categories

  • Archives

  • Meta


  • "Muad'Dib learned rapidly because his first training was in how to learn. And the first lesson of all was the basic trust that he could learn. It's shocking to find how many people do not believe they can learn, and how many more believe learning to be difficult. Muad'Dib knew that every experience carries its lesson."
    from The Humanity of Muad'Dib by the Princess Irulan