First dungeon crawler prototype (HD Video)

Although it took me longer than expected I recently got a first prototype of a dungeon crawler, based on my recenlty published random dungeon article, polished up far enough to show it to the public.  Actually one of the biggest issue holding it back were the textures. It uses parallax (bump) mapping for giving flat surfaces a realsitic 3D look (it’s pretty much an extension to bump mapping), and for that technique you not only need a color map and a normal map but also a heightmap for each texture. After not being able to find good ones around the net I decided to quickly do the textures myself.

A quick overview of what’s in this prototype : As always it uses OpenGL and let’s you walk around a randomly generated dungeon. Lighting and parallax mapping are done using shaders (so there is no real limit to the number of light sources) and all physics and collision stuff is handled by a recent beta version of the Newton Game Dynamics engine. One of the new features is an included character controller that allows you to setup a physically correct playerbody that interacts with the environment within a few lines of code. But that’s not the only use of Newton in that prototype, as I’m also using it’s raycast functionality to determine visibility for the map. That was a pretty natrual choice as I already submitted the geometry of the dungeon to newton for creating a static physic body, so adding raycasting for visibility check was pretty easy and works fine.

Other than that, there is not much to say about this very early prototype. I’m still not sure if I’ll ever make a game based on all that random dungeon stuff, although I already wrote down a nice and basic game design that’s not your traditional dungeon crawler.

So in the meantime enjoy this video I just uploaded, and please watch id in HD. Sadly it’s only 30 fps (originall recorded with 60fps) but it should be sufficent to get an impression :

First dungeon crawler prototype (HD Video)

Newton SDL demos updated to 2.16

After several requests and after updating the headers, I decided to release updated sources for the SDL developer demos showcasing some of Newton’s features. Those updated demos (including sources) should be useful to both starters (to see how Newton 2.00 works) and people that already used 1.53, as there haven been some changes.

So the following demos now also have sources for Newton 2.00 : “Demo 01 – Basic demo”, “Demo 02 – Joints” and “Demo 03 – Buoyancy”. The demo for vehicles will be updated as soon as functionality for the vehicle container is added back into the Newton SDK. Due to it’s beta nature, Julio commented those functions out for the last beta release, so they can’t be used right now. The ragdoll demo also will be updated at some point, but the ragdoll interface changed heavily in Newton 2.00 and it’s still subject to changes. And finally the character controller demo won’t be updated, simply because newton now has a built-in character controller, so no more need to code this on your own.

Grab the sources here, get the latest beta headers and download the current beta SDK. Note that you’ll also need SDL and the SDL headers for pascal. I’ve compiled the demos with Lazarus and FPC 2.2.4 and they’re not using anything platform specific. So they should work with windows, linux and maybe even MacOSX.

Newton SDL demos updated to 2.16