AnimTest

March 19th, 2007

Well I checked all of my updates back into my Subversion repository, and made a new branch called animtest. I stripped everything game play related out of it in order to solely test character artwork, and made modifications so that the artwork can be loaded from the CLI. Oh, I also dug around a little in my image loader and got it to convert paletted/rgb PNG’s to rgba PNG’s. The portions that ought to be transparent are obviously not transparent, but if an end-user screws up and improperly saves a PNG, at least the program won’t segfault. I’ll release it under the GPLv2 soon.

Now to talk a little about the image format. Each PNG is really a sheet consisting of 24×24 pixel sprites. Each row of sprites consists of one directional animation. You can have as many frames in that animation that you want. As of right now, the format has:

  • row 1: moving north
  • row 2: moving south
  • row 3: moving west
  • row 4: moving east

We can extend that however we wish. For instance, it would not be unreasonable to have moving north in row 1, and moving north while thrusting in row 2. Or even have them in the same row, where the first half is just walking and the second half is walking while thrusting.

To give you something to work with and demonstrate what I’m talking about, I’ve attached a sheet of Link to this post. Pay particular attention to the embedded transparency. The shadows under link are aproximatly 65% opaque, giving a nice (in my opinion) blended shadow.

Link with alpha+shadows

WindEngine Testing (soon)

March 13th, 2007

Okay, I’m getting close to a point where I can issue an alpha build of WindEngine for wider testing. By close I mean within the next month. If you’d like to get in on the alpha, send me an email (ojuice[at]gmail[dot]com), and let me know what operating system you use. I expect to issue this alpha for: Windows, GNU/Linux, FreeBSD, and Mac OS X. For the OS X port, stock has volunteered to try and compile it, so thank him if you’re so inclined.

On the Engine - Part I

January 17th, 2007

First I’d like to mention that I ported the engine to Linux, and FreeBSD. A Mac OS X port is feasible, but I don’t have access to one, so I will have to work with someone to get something out. I’ve settled on using the Portable Network Graphic (PNG) for all artwork and Ogg Vorbis for all audio. Both formats are Free Software, and very easy to use on all platforms. PNG’s have the added bonus of supporting an alpha channel. This will allow artists to specify the opacity of each pixel, rather than marking pixels that ought to be completely transparent with pink, which is what was done in the old code using bitmaps.

I’ve been doing a bit of R&D on the engine. Unfortunately my time has been cut short since my motherboard stopped working properly, and I had to RMA it. That said, I’ve thrown out most of the code that was in the previous version I released and have been rewriting it using a different approach which is already paying off.

Custard with Yogurt

November 11th, 2006

Here’s one of my favorite recipes that I hacked up awhile ago. It serves two or makes for two meals:

Ingredients:

Custard:

  • 4 large Eggs
  • 1 1/2 cups Milk
  • 2 Tbs. melted Butter
  • 1 1/2 Tbs. AP Flour
  • 1/4 Tsp. Salt

Topping:

  • Two cartons of your favorite Yogurt

Directions:

1. Preheat your oven to 350° Fahrenheit.

2. Whisk together the Eggs and Milk, then add the butter. Finally slowly whisk in the Flour. If you do it too quick, the Flour will clump.

3. Grease a pie tin or round baking dish with Butter or Pam and poor the custard into it.

4. Bake for 40 minutes or until the top is lightly browned.

5. Top with the Yogurt (it should take one carton to cover half). I prefer Tillamook’s Raspberry Yogurt for this.

A Final Ride

October 3rd, 2006

Man, I got a lot of riding done over the past month. Without getting into specifics, I’ve ridden on both sides of this continent, and have done more work on my technique. I rewired my cadence meter, such that you can’t even tell that the wire is there. Time consuming and tricky, for sure, but it looks 100% better. I didn’t get new tires, instead I’m going to hold off until the 2007’s come out.

I went for a little ride around the city yesterday in the afternoon. The weather had started to change the day before, and fall was definatly in the air. As I was riding I was thinking it may very well be my last outside ride of the year. Then it dawned on me–it would be my last ride in Ellensburg, since I’m graduating in a few short wintery months. The ride went pretty smoothly until my seat started tilting backwards–oops, forgot to tighten it.. So there it was, my ‘final ride’ went out on a bit of a sour note ;D I have to go again even if it’s around the block.

[Post lobbed in half so I can get this post out quicker]

New Tires?

August 23rd, 2006

I’m considering purchasing either Continental’s Grand Prix 4-Season tires or their Ultra Gaterskin 2006’s…

Update: Rather than either of these, I purchased the Continental Grand Prix 4000’s and they are the best tires I have ever used.

Mathews Beach Park - 37.4 Miles

August 19th, 2006

I took the morning lazy and ate plenty of carbs (cheerios). I bought some more Gaterade mix and slightly dilluted it such that the rush of sugar wouldn’t give me cramps. I got to Marymoor at about 12:45 and took a practice lap around K-lot, and then stretched out. As I started out on the trail my legs were kind of tight so I kept at a steady 70rpm until they loosened up. At about 3 miles in I decided I I was loose enough to start riding normally (plus the crowds started thinning out). I cruised up to Woodenville and took a quick break to stretch out my back further and chug half the Gaterade. When I started again I was feeling really well and started cruising at 16mph. When I got to Bothell I was relieved to see that they were done working on a bridge that made cyclists dismount before going under. At this point some couple and I started leap-frogging eachother every mile or so. One we got to the other side of the Sammamish river and past the hills it started getting more crowded, so a paceline formed for about a mile and as soon as the passing traffic thinned out I went ahead and passed everyone. I went down threw the tunnels to bipass the traffic lights and then cruised to Logboom Park which is where I was going to terminate that portion of the ride and turn around to go home, but I wanted to get water first and the park was closed for renovations. So I drink another quarter of the Gaterade and at aboutthis time that couple I was leap-frogging for awhile caught up, but the rest of that group was missing. So I hopped back on the trail and started around the lake towards Seattle. This is by far my favorite portion of the trail. The Redmond->Kenmore portion isn’t very shady, and the Sun tends to get to me. So a few miles later I caught up to some guy my age and we rode together for a good four or five miles and then I went on ahead. I reached Mathews Beack Park and took a seat in the shade and chugged the rest of the Gaterade.

18.7 miles down.

The way back was some of the best cycling I’ve done in years. From Mathews Beach Park to Woodenville I stopped only once to take a swallow of water. During this interval my low speed was 17mph and my high speed was 19mph. I and three other cyclists started leap frogging eachother due to a couple traffic lights that we couldn’t bipass by going under. We got seperated near the Interstate viaduct madness that connects I-5 and SR-522. I took a quick break in Woodenville and started off again going 18mph. My speed variance for the next six miles was between 18-20mph. I’m not certain why but the more I rode the better I was feeling and doing–until about 1.5 miles from getting back to Marymoor: my thighs started to cramp. Woops. I eased down to 15mph through Redmond and got back to the car and stretched out.

Wildlife Encounters: Nothing to report.

Bothell Ride - 21 miles

August 16th, 2006

I took a tad shorter ride to Bothell today. My glutious maximus was getting sore, so even though I had planned to get over to Kenmore, it didn’t happen. I lucked out at the parking lot, as a guy who had just gotten done cycling gave me his parking ticket, thus saving me $1. On the way out I forget to stretch so I took it slow initially so that I wouldn’t pull anything. A couple miles in I decided to pase myself at 16mph, in a slightly high gear so as to build up muscle. This worked out until some guy who looked like an amateur racer passed me, he was going roughly 20 mph, and as usual getting passed got me fired up and I shifted down one gear and took off after him. I kept on his tail for two miles, going 19mph. He lost me near a train track overpass in Woodinville, and I slowed down considerably to catch my breath. They’re still working on this overpass in Bothell that requires cyclists to dismount and walk for about 75 meters. I almost turned around there since I only planned on going down the path another mile to a bridge over the Sammamish river. Well, I kept going and took a little break in the middle of the bridge and watched some birds for while (noted below).

On the way back I zipped by some fogies who hadn’t made it a mile since I went by them the first time. I’m only mentoning this because the trip back was uneventful. I zipped along at 15-17mph and made a game out of trying to keep my line as straight as possible. When I made it back to Marymoor I was rather tired, and could only go 11mph. I don’t know why, but I have strange periods of fatigue and then sudden bursts of extreme energy. Who knows.. I should look into it at cyclingforums.com..

Wildlife Encounter: I saw the Roosters on the trail, then several kinds of Ducks, Pigeons and an American White Pelican in the Sammamish River. They were dunking themselves in the water (flipping over so their feet stuck up and heads were under).

Quickie Bothell Ride - 26 miles

August 15th, 2006

Woke up at 5:00am again, but I decided not to let that stop me from cycling today as it did yesterday. I set out at 10:00am on my road bike. I hadn’t really used it since the old seat got messed up (only rode my mtb for ~four months). At about 3.5 miles in I noticed I wasn’t putting out as much power as I should have been so I stopped and raised my seat 1/4″ and it made a world of difference. My cadence averaged 84rpm for 13 miles then I started to bonk since I skipped breakfast. On the way back to Marymoor my cadence bounced between 65 and 90 (90 when someone would pass me and I’d get mad). All in all not a bad ride, I guess. I won’t skip my cheerio’s tomorrow.

Wildlife: Heard the Roosters in Bothell, but they were in the woods, not near the trail.

Projects

May 10th, 2006

Here’s what I’m working on:

  • Parallel Processing: Harmonic Progression (final project)
  • UI Design: MUD Content Editor (final project)
  • Liquid Crystal: Audio Subsystem (done)