flipCode - Tech File - Steven Hugg [an error occurred while processing this directive]
Steven Hugg
Click the name for some bio info

E-Mail: hugg@pobox.com

   10/03/2000, Whereever I May ROAM

Hey! I'm still alive! I'm just very busy. I've been taking a break from the more cereberal components of my game (read: annoying physics routines) to do more "fun" stuff, like graphics. Anyway, it's hard to get inspired when you're flying around terrain that looks like melted Neopolotan ice cream.

Like everyone else on the planet, I'm doing a ROAM implementation. I would like to do bump-mapping, but I don't want to require a GeForce. Specifically, I'd like to at least run this thing on my dad's cruddy old Banshee :) So I'm doing lighting and bump-mapping on-demand, much like Jake Cannell's excellent procedural planet demo. I have hierarchical elevation and color maps, and I would like to also augment this with detail textures, so I don't have to generate 1,000's of textures on-the-fly. Here's a pic:

Yes, not terribly exciting, but that is an example of spherical ROAM. I start with a octahedron, and map that to a cylindrical texture space. Then I use a nifty little trick: I subdivide the texture coordinates, and use the texture midpoint to generate the new triangle midpoint. This way, a split always cuts the texture space in half, which makes it easier to do texture LOD. Unfortunatly, the poles look really rough, which is sort of unavoidable with a cylindrical map. Sigh.

Another thing I'm working on is a Java-to-SDL binding. I've already got the joystick routines implemented and they work great -- Sam did a good job with the new version. Look for that to be released soon.

I've been playing with Java Sound and am not too pleased. Java Sound unfortunately suffers from the "enterprisetheria" that infects Java APIs nowadays. It tries to be the Ubersound API that does everything, but can't do the most basic things right. For instance: Pitch shifting is limited to 48 kHz in the default engine, which means you can't do much shifting if your sounds are already at 44.1 kHz. Also, volume control is very ratchety, as if they're just shifting bits instead of multiplying the gain factor. So looks like SDL is going to win the audio competition too. Didn't any of these Sun guys even look at the source for a MOD player?!?

One strange side effect of my relentless crusade to complete this game is that I haven't been playing any. I bought Shogun because I liked the little horses running around slaughtering each other, but it's sort of more fun to look at than play. And the last thing I want to do after looking at tiny little letters and numbers all day is watch tiny little samurai run around. Maybe I'll install an old RPG on my HP 200LX palmtop or something.

This is all pretty random, but it is hard to be deterministic at 2 AM :) Next time we'll analyze whether or not "Ferris Bueller's Day Off" would make a good video game.

  • 05/14/2001 - Finally, The Project!
  • 10/03/2000 - Whereever I May ROAM
  • 07/08/2000 - Tech File Update
  • 06/12/2000 - Good Vs Evil
  • 05/24/2000 - Ego Surfing
  • 04/24/2000 - Nocturnal Coding
  • 04/12/2000 - Exploding Thought Giblets
  • 04/03/2000 - Event-Driven Games
  • 03/31/2000 - The Housemate Experiment
  • 03/28/2000 - Introduction

  • This document may not be reproduced in any way without explicit permission from the author and flipCode. All Rights Reserved. Best viewed at a high resolution. The views expressed in this document are the views of the author and NOT neccesarily of anyone else associated with flipCode.

    [an error occurred while processing this directive]