Archive for May, 2005

Making the game.

Tuesday, May 31st, 2005

I’ve been following the development of Dim3 for a while, which looks like a pretty decent (free) product. The biggest issue is that 3D games on the Mac is that it’s always lagged pretty far behind PC and console games. Dim3D is technically probably equal to something like Quake or Quake II (of course the power is that you only have to know JavaScript to write “code”). Even with the best tools, it would take a small team to craft a complete game (and I don’t really have the patience for modeling, but I think I would be a decent level designer).

Enter Sawblade Software, who I’ve never heard of until today when they released Power Game Factory, which is an old-school 2D side scrolling authoring system. This targets my skills a bit better (graphics and level design). I really wish there was a demo to download, but I figured for the $44 it was worth checking out (so I ordered a copy today). The best part is that a 2D side scroller is well within the performance envelope of most Macs (and well designed 2D graphics can be more impressive than 3D).

A Delicious Monster

Monday, May 30th, 2005

Last night I decided to see if my GL1 would work as a scanner for Delicious Monster’s Library. I figured it probably would (but Flash doesn’t like it as a web cam, so anything is possible). It did, which is nice, expect that it has a steep $40 price tag (for shareware), which of course I decided to pay.

The coolest thing about this software is that it will use a web cam (or DV camcorder) to “scan” barcodes and look up the product on Amazon.com. So rather than manually adding all my DVD titles into some kind of catalog it will do it for me (including all kinds of fun info, including a summary and cover image). Of course it still took me a good two hours to scan all my DVDs.

Cara still has a good chunk of our DVDs, but I put what I currently have into the system. I then spent a little time tweaking the cover images, and breaking some of my box sets into individual discs (like Indiana Jones, Back to the Future, Matrix and Aliens). All said the count is 405, but I’m willing to bet Cara has another 100 at her place. Far too many DVDs, and yet when I’m board I don’t feel like watching a single one.

Everyone’s gone & Episode III thoughts

Sunday, May 29th, 2005

Everyone is gone this weekend. Cara’s down in Florida this week at a Veterinary conference, Brian left mid-week to go to “hippy camp” up in Mass. Justin, John, Matt and Ben who are hiking in Peru. I have to admit a little jealousy, but there was really no realistic way that I could have taken the trip. If not for the fact that I’m already taking a great deal of time off from work for the wedding, then for the fact that I’m pretty damn out of shape. I look forward to many stories from South America when they return.

I’ve been going a little stir crazy here. I did work on the Subaru (installed the subwoofer) and the Jeep (finished the skid plate install), as well as some other tasks around the house yesterday. Today I decided to catch Episode III (I figured Sunday morning at 10AM was a good time, not to mention it was matinee prices).

There has been a lot of talk about Episode III, so I don’t think I’ll go into a lot of detail. The movie was good, better than episodes I and II. I did get chills when Darth dons the suit, but overall I would consider the movie a failure. There were a lot of good ideas in this flick, but too many problems. I felt that the final scenes should have been a bigger send off (they were particularly weak).

Next on the upcoming movie list are Mr. & Mrs. Smith (6/10) and Batman Begins (6/17) which I think will both be very enjoyable films.

No baton in my pocket…

Wednesday, May 25th, 2005

Outside of the normal meme circles a “musical baton” has been making it’s way around. I figured I’d contribute even though no one asked.

*Total volume of music files on my computer:*
97.76 GB (stored on a RAID 0 hardware array)
15,985 songs
46 days, 20 hours+ of music

*Last CD I bought was:*
Show & Tell by Silvertide

*Song playing right now:*
Call Me Mellow by Tears for Fears

*Five songs I listen to a lot these days:*
(I rarely listen to singles, I usually listen to mostly complete albums, so the five albums).
* Before the Robots : Better Than Ezra
* Halo2 Soundtrack (sans the Incubus tracks)
* Songs for Silverman : Ben Folds
* Get Born : Jet
* The Battle for Everything : Five for Fighting

Unspoken rules of graphic design

Wednesday, May 25th, 2005

I’ve chosen the rules that seem to affect me the most from Ad Rag:

1. Your fonts will default to the worst possible font available on the machine you are showing your work on.

6. If the text consists of two words, one will be misspelled.

More »

Living with construction.

Tuesday, May 24th, 2005

My father the architect is rarely satisfied with the status-quo, well at least as far as a building is concerned. Not too long ago my parents decided that now that my brother and I were out of the house and they were getting older, that they should downsize their 3,800 square foot house that they built in 1996 and move into something smaller that would be appropriate for their “golden years”.

With that in mind they promptly went out and bought a 5,800 square foot mansion (to some degree) in Manchester. Yes, they are a little insane. Of course the thought is that they will be turning it into a bed and breakfast, and their living area would be a smaller subset of the whole house (of course this doesn’t include the large 4 bay garage they plan on building to house their vehicles).

More »

Another satisfying day.

Monday, May 23rd, 2005

I have to admit, I had my doubts about this 4th day (season) of 24. It started a little slow, but really got moving over the last 12 episodes. More important than any of that is the finish, which is the most important thing of any story (I’m a firm believer that an audience will forgive a lot if you give them gold at the end).

There was no super surprise at the end of this season. I like that we had another 30 minutes left in the day to tie up some of the other loose ends, and I think the ending was probably one of the stronger season finales yet. Left us with enough to crave the next season (which doesn’t start until January 2006), without being a complete cliff hanger. Kudos to the producers of 24 for keeping the bar high, I can’t wait until next season.

Macs to use Intel processors?

Monday, May 23rd, 2005

There was a report today from the Wallstreet Journal about Apple looking into using Intel processors for future Macs. I find a conversion from PowerPC to X86 processors highly unlikely. This rumor has been floating around for a number of years, and I’ve never had much belief in this happening.

There have been rumors that Apple has a version of OS X running on Intel hardware. I think that this is probably true, the core of the OS is open source (Darwin), and much of the system is Unix based. It wouldn’t take much work (considering) to make the OS run on Intel hardware. It probably make sense from a corporate stand point to have a “backup plan” in case something ever happens and they are forced to use Intel hardware (we’re not there yet though).

More »

New Age of Movies

Saturday, May 21st, 2005

I was just watching the new Fantastic Four trailer over on Apple’s trailers site, and I was thinking about how Marvel is making a big push into movies (they’ve started to go beyond licensing into actual production). I was wondering if they (or others) are worried about diluting these movies. We’ve had a number of excellent comic books turned into movies in the last number of years (X-Men, Spiderman and Hellboy). It makes financial sense to continue making these movies as well as new properties, however how many Catwomans will we see for every X-Men?

I think the power here is that the special effects have gotten to the point that they can be secondary to the movie, and a filmmaker doesn’t have to make the effects the “star” of the show.

It wasn’t that long ago when we were talking about the number of minutes of effects work in a film (count the number of effects shots in something like Star Trek II (1984) compared to Star Wars Episode III). Good CGI is so approachable now that it is just another tool to use, and not this 800 pound gorilla in the corner. Of course, you still have to use it properly.

Star Wars Sadness

Friday, May 20th, 2005

I haven’t seen Episode III yet, but I was reading about how well it did in the first (Thursday) day opening and it got me to thinking, why did episodes I and II suck so badly? I don’t mean what made them bad, but why wasn’t there more care put into the most important aspects of the film (the story and script).

I doubt Lucas decided to write his scripts because he didn’t want to spend the money on writers, so I have to imagine that he thought his writing was the best thing for the film. So either he didn’t feel that he could trust anyone else to write, or his ego is so huge that he was oblivious to the fact that he can’t write (or most likely both reasons).

This is sad. Maybe because if it were my project I would want to make sure that the script was as solid as possible. That the characters were as lifelike as possible. I would have spent millions of dollars if needed to be assured that I had the best possible script in my hand before I shot a frame of film (or a pixel of digital video).

I guess what saddens me the most is that ultimately there will be very little penalty for the poor scriptwriting, and all the movies in their “retouched” glory (or lack-thereof) will always have a special place in our hearts. Not because they are great films, but because they could have been great films.

A Day Late and a Dollar Short

Friday, May 20th, 2005

Cara and I spent the better half of yesterday night (add that to the number of hours I’ve spent in the last couple of weeks), to finish up the wedding invitations. The good news is that the majority of them are out the door. Another major set done, and a slight sigh of relief.

Funerals

Monday, May 16th, 2005

My grandfather died last week after battling health issues for about four years. I asked Cara to go with me up to Vermont to attend the funeral with my family. Cara arrived at my place at 4AM on Saturday morning to get a couple hours of sleep after working an overnight shift (which included an emergency room run after she played chew-toy for a Jack Russell Terrier).

I never spent a lot of time with my grandfather. Most of my childhood was spent 1500 miles away in Kansas and even when we moved to Connecticut I still lived 100+ miles away. I don’t have any strong memories of him, so I felt a little out of place at the funeral. What is most interesting (or perhaps sad) is that I heard stories about my grandfather that made me what to know him better.

Another aspect of the funeral bothered me a bit. More than twenty years ago my grandmother died (from lung cancer I think), and shortly after my grandfather became friends with a woman who lost her husband about the same time. This relationship with Barbara lasted up to the day he died. I don’t know why they never married, but for more than twenty years they were partners. In the end though, she is treated as little more than a friend. Referred to as “friend” or “companion” by the church and the state. I can’t imagine how this made her feel.

Transparency and Rotation in PHP

Thursday, May 12th, 2005

example A
example A

example B
example B

example C
example C

example D
example D

While developing the website for PWC I wanted to generate the title graphic using the latest covers for the issues of course my design called for rotating these graphics and scaling them with a drop shadow (example A). The problem that I encountered was that PHP’s rotate function loses the alpha channel information filling it with white instead (example B).

So I decided to use some of PHP’s functionality to overcome the issue. I was however disheartened when I discovered that there isn’t any functionality available to read alpha information from a file (you can read RGB info, and write alpha data, you just can’t read the data from the file with existing graphic functions).

All is not lost though. Because the alpha channel for my graphics were always going to be the same I was able to work around the issue.

Because you are able to read the RGB information from a graphic I created a grayscale image to represent the alpha mask (example C). I then take both the mask image, and the RGB image (example D), and rotate them into place.

Then, pixel by pixel, I read the gray value of the mask image and RGB value of the color image and apply them to my background image. You still have to worry about positioning of the the graphic, and you should make sure your RGB and mask image are the same size (so if you wanted to place an image inside the stamp, you should first scale your replacement image over the RGB of the stamp “background” before rotating and applying the alpha).

This process is slow (the pixel loops are slow), so it’s not something you’d want to be doing often, but for creating images that are saved to disk it works well.

Code example:

   $rgb_image = imagecreatefromjpeg('stamp.jpg');
   $mask_image = imagecreatefromjpeg('stamp_alpha.jpg');
   $background_image = imagecreatefromjpeg('background.jpg');
   $rotate = 20; //rotate 20 degrees

   //rotate the two images
   $rgb_image = imagerotate($rgb_image,$rotate,0x000000);
   $mask_image = imagerotate($mask_image,$rotate,0x000000);

   //loop through all the images
   for ($theX=0;$theX < imagesx ($rgb_image);$theX++){
      for ($theY=0;$theY < imagesy($rgb_image);$theY++){

         //get the RGB value from the rgb_image
         $rgb = imagecolorat($rgb_image,$theX,$theY);
         $r = ($rgb >> 16) & 0xFF;
         $g = ($rgb >> 8 ) & 0xFF;
         $b = $rgb & 0xFF;

         //get the Alpha value from the gray scale mask_image
         $rgb = imagecolorat($mask_image,$theX,$theY);
         $a = $rgb & 0xFF;
         $a = 127-floor($a/2); // The alpha seems to be 7 bit not 8 bit

         //set $myColor to the RGB+A
         $myColor = imagecolorallocatealpha($rgb_image,$r,$g,$b,$a);

         //set the pixel on the background image
         imagesetpixel($background_image,($theX),($theY),$myColor);
      }
   }

   //save the image as a JPG on the server
   imagejpeg($bacgkround_image,'new_image.jpg',100);

Stealth car

Wednesday, May 11th, 2005

Although I’ve seen a variety of snake-oil “laser absorbent” coatings in recent history, Veil appears to be the real deal. Applied to the headlights and front license plate of your car it can cut the effective distance of a laser gun by 50%. The only thing more effective is the active laser jamming Blinder m-20.

The nice thing about Veil is that it’s completely passive (because it’s a coating and not electronic,) and the “installation” is a lot easier than anything electronic. In addition it costs about 1/4 of the price of the Blinder, and about 1/2 the minimum cost of most speeding tickets.

Beta version of my Photo Gallery

Wednesday, May 11th, 2005

I spent some time upgrading to WordPress 1.5.1 tonight and tweaking Ramon Darrow’s Flickr plugin for WordPress to add a photo gallery to my site. It’s still not quite complete, but I would consider this “beta”.

My Photo Gallery

They screwed up I-84

Tuesday, May 10th, 2005

I’m gone for a week and the roadmap changes!

The HOV lane approaching Hartford would split as it merged with the rest of 84, and that split became a exit only lane to head into Hartford. This was a beneficial setup because the exit only lane was newly created and only cars that wanted to get off the exit would change lanes (for the most part). Sure there was some bottlenecking, but no worse than the parking lot that 84 becomes right before crossing over the Connecticut River.

At some point last week the state of Connecticut re-striped that section so that the HOV lane doesn’t split and the fast lane becomes the exit only lane instead (in effect they moved all the lanes over one). I’m sure the logic was to provide a better approach onto the highway for the Silver Lane on ramp, however now traffic in the left-most lanes bottleneck (because now everyone in the fast lane is trying to merge right). IMHO this is a major clusterfuck for the morning commute, and I have no doubt that this is going to be a worse situation than the old setup. Now we have the situation where three lanes of traffic have to merge and switch lanes to try to keep the flow going (which we know won’t happen). Everyone in the fast lane who isn’t taking the exit into downtown has to merge right increasing the number of stupid people trying to do stupid things (I include myself in that stupid things comment).

I wouldn’t care all that much, but I want to be in that exit only lane to get off I-84, which I used to be able to do with relative ease. Then again, it is possible that in another six months it won’t matter because my commute will be entirely different.

Another E-car lands on our shores

Monday, May 9th, 2005

Anyone who has anything more than a passing interest in Lotus automobiles knows that ever since the late 50’s all lotus sports cars started with an “E” (Elite, Elan, Esprit…) The Esprit breathed it’s last breath this time last year when the last of the cars rolled off the assembly line in April of 2004. The only reason it made it that long was because Lotus didn’t have a car for the American audience until they were finally able to get the Elise into the USA.

I’m happy to say that I’ve seen two (different) Elises on the streets in the past year (which is as many Esprits I’ve seen on the streets in my life). I can only assume that they’re selling fairly well. I like the Elise quite a bit, but I would still rather have an aged S4s (1995) than a new Elise.

ExigeThe question is, how much would I pay for the bad ass Elise on steroids that Lotus based on the Elise called the Exige? How about another $10k on top of the Elise price tag? How about a scant 150 of them will be hitting our shores this summer?

The Exige is the sport tuned version of the Elise. Of course, we’re talking about a car that already will out handle any other production car on the planet, and will out accelerate all but the fastest (and most expensive) production cars. I’m not sure what Lotus will be doing to the US spec Exige, but hopefully it will be tuned somewhat like the Exige 240R (which increases the power of the engine to 240HP, and probably pushes the 0-60 times closer to the 4.2 range).

Of course… what I really want is the 400HP Sport Exige, which is one off, so I can’t imagine the cost.

I’m back

Monday, May 9th, 2005

I was on vacation for more than a week and even though I duplicated my blog to my laptop (I didn’t have much for internet access while I was gone), I felt no urge to write about my vacation as it was happening, so I will attempt to recount my vacation experience here.

I didn’t write much about the impending trip before we actually went on it (not sure why). We wanted to do something special for Cara’s single week of vacation so she and I decided to go on a cruise (we mistakingly thought that would be inexpensive). We also decided to invite my parents, brother and sister-in-law. After some planning we thought Bermuda from Boston would work best for everyone (Cara hates to fly).

More »