Jump to content
Sign in to follow this  
  • entries
  • comments
  • views

Heightmappy goodness

Sign in to follow this  


It's Aliiiiiiive!

Still been progressing steadily with my new project. The diamond-square code seems to be working fine. I've got my editor shell app up and ready to start plugging in editory goodness. Getting re-aquainted with XNA took a little bit of head-scratching. Especially since I forgot that they switched back to a right-handedness-only coordinate system. I was used to left-handedness, so it took me a bit to realize what was going on. The other hitch was that one of my dev machines uses a crappy onboard graphics processor. It's fairly new, but still crappy, so it won't draw batches of primitives over some magical number. It works fine on my laptop (which has a decent GPU) though.

So after muddling around, here's what I currently have to show for it:
Completely non-cliche' heighmap render

FYI: its 5 x 5 random heights, subdivided using the diamond square algorithm 4 times. It's got "some stock texture" applied to it and just default XNA BasicEffect directional lighting with specular applied.

Up Next...

What I'll generally be looking to do is have the initial seed heights set by the level designer (in order to define the rough layout of the map), then have the algorithm subdivide that heightmap to the desired level of detail. As I'm keeping this simple (and the terrain will pretty much always be viewed from roughly the same viewing angle and distance), there won't be a need for any LOD.

The level designer will define the dimensions of the level, set the values for the seeds (height, roughness, texture for multitexturing, etc) and then the algo should spit out a nice level to use.
Sign in to follow this  


Recommended Comments

Looking solid, Lachlan. I can't seem to find it anywhere; what is the premise for this game project, again? [smile]

Share this comment

Link to comment
Thanks mate! [smile]

I probably won't go into too much detail until I'm further along, but the basic premise is a small-scale Civ game, in a fantasy setting where you build villages/cities (on a large "overworld" style map) and send your armies against other players (or AI players). Then you play the battles out on smaller and more detailed maps to decide what happens.

The premise has been largely influenced by games like settlers of catan (the board game), Dwarf Fortress and Ogre Battle: March of the Black Queen (on SNES/PS1). I should note though that it's not looking to be anywhere near as focused on micromanagement as DF is. And hopefully not very complicated to play.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!