Dungeon Finished and Back in the Sun

Ok where to start?

Right so last entry was me starting to create a large interior for the first time which was a “starter dungeon”.

So for that I needed to make larger wall sections I could slot together (rather than placing each small segment of wall which would have taken forever. I made L shapes and various lengths of straight wall for this purpose. Also needed was floor tiles, rubble, cobwebs, a tweak to the particle system to make the ground fog use the light color it was near.

catacombs3.png

catacombsmap.png

I then had to finish off the basic collision detection so you couldn’t just walk through alls and objects. This was obviously a fairly huge undertaking but at least it’s now done at works across the whole game for any object.

I made a basic collider object which I could then use place invisible barriers around things I didn’t want you to be able to walk through. So I don’t waffle on about this too much you can just watch these little clips which show you how works. I had to make the camera also an object so you can’t spin it around and see through walls. It simply zooms in to the player until it’s no longer behind the wall anymore. It slowly checks to see if it can zoom back out to the default zoom now and again.

 

Next up I needed monsters for the dungeons. Now these were a little different from the rats, goblins and wolves outside since they couldn’t really use bounding boxes and had to be able to walk around objects to chase you and also give up if they were too far away.

The AI for this was fairly complex but fun to code and again will be really useful in later parts of the game where I can make monsters even more clever.

Below if the dungeon boss room which contains a particularly intelligent zombie (intelligence is relative).

dungeonboss

Obviously these monster and the dungeon itself had to have treasure in it or whats the point in risking it?

So now I needed a treasure chest editor…

treasureeditor

(Also added a particle effect for the bigger chests to sparkle but let’s not go too deeply into everything I added).

Oh and one final thing I completely forgot about initially was the map. The map was for outside. So i took an aerial view of the dungeon and then ran it through various filters to make it look like old parchment. It’s not bad and will do for now.

s I_Ancient_Ruins_mini.png

Ok so that’s the dungeon finally finished. In theory the next one can be bigger and better and won’t take me 2 months to do – especially since I won’t have to make a treasure editors and do the collision detection.

Right so finally back outside we have gathering. This needed a new editor and particle effect.

Here’s a short video of this. You can’t actually gather yet but I can attached a gathering node (mining, gathering and woodcutting – for now) but the nodes exist and can have items added to them with a range of how many items you can get, their types and rarity.

So I’ll leave you with a final video of the beginnings of that…

So next up.. finish gathering so you can actually.. err.. gather and think about crafting a little?

Also I really need to fix transitional animation soon since it’s really bugging me.

Until next time…

 

Delving Into The Catacombs

Bit of a gap before an update – Apologies.

Anyway I’ve been really building a lot of world now. So the North-East-ish of Tarin, down a worn path with jagged rocks around is the ruins of an old temple with some mysterious stairs leading down into… what..

The entrance uses my new “zoneline data” so it knows you’ve entered an area where the player can change to a new environment (in this case switch to interior mode for lighting and terrain and also extra information like where to get the relevant models from and also small things like where exactly the player should be standing and what way they are facing when they enter). This will need some more information at some point, like how the ambient light should be (if any).

So enough waffle.. the entrance looks like:

entercatacombs

Shrouded in mist and mystery..

And after a brief pause for the game to load what it needs (since we can’t realistically hold the entirely dungeon and world in memory at the same time). Which strangely reminds my of the old RPG’s on the Commodore 64 that came on 2-4 double sided disks. You can to change disk to enter a town or dungeon. Things haven’t changed THAT much really. So the dungeon is starting to take shape, so here’s a little taster of how it’s looking.

I’ll be making it a kind of “starter” dungeon so it will just introduce a few game concepts, such as secret doors and and dangerous boss monsters at the end. It’s taking far too long to place each individual piece of wall and floor so i’ll make some combined sections of tunnel, floor ceiling so I can put it together more like Lego.

I’ll have some undead ready to roam the dungeon when it’s finished. I’ve not decided what the boss will be or the relevance of this dungeon to the story. Perhaps I’ll keep it as a side mission and completely optional.

2 challenges remain in the dungeon/interior which are related really. I need to enable collision detection with the walls (and other objects). Every object already has that ability built in but i haven’t actually set up the colliders on any of them (an invisible hidden basic shape which respesent the object, pure used to determine if the player is about to bump into it). Which leads me to the second challenge.. The camera should not be allowed to go through a wall.

Did I mention in my last post that my camera movement is the same style is WoW/FF14/EQ2 (holding right click dollys the camera around the player). So the second challenge is to treat the camera like an object and if the player tries to dolly it into a wall then the camera will zoom in on the player until it no longer is in the wall (since the player can’t be a wall).

Ok well hopefully there will be a nice/evil dungeon to walk around next time.

I’d like to add crafting and gathering at some point and spells.. but I can’t do everything simultaneously unfortunately.

Until next time..

Cutscenes from the Gods (and Goddesses)

Ok so at some point I needed to start putting the actual story together. In order to this I made a StoryLine object and gave it child objects which are CutScenes.

Initially these are pretty basic: A background texture, some dialog box text, the name of the person talking to you and the name of the model used. Later I’ll add support for multiple NPCs and particle effects, cross fades and stuff like that but I just wanted it up and running. You can see a basic example below.

After this I added “Zonelines” this is when the game knows you’ve entered an area and will show you a notification. Like when you enter a town or if you’re always IN a town the it will show a “Zoneline” for a door you can enter, along with an Enter button and an icon to show it’s a doorway.

This can also be used for any time you’re about to change area, like entering a dungeon etc.

I also needed a new monster in game so I’m working on a wolf – I’ll show that at a later date but It looked nice enough but it showed a problem with my self shadowing which took a little time to fix. I won’t go into the boring details but my animated maps weren’t loading their bump maps or using depth bias properly, also the PSM wasn’t working properly on the super-high quality shadows near the camera. If you want more details on any of that then drop me a line on twitter/instagram.

Ok so I put together a little video showing how this all hangs together.

So next up I’ll be finishing off the wolf so I can have them roaming around and adding a quest in the 2nd town to kill a few of them.

It’s really coming together now.

I might have to start working on the crafting and gathering soon.

Until next time…

Town, Camping and Interiors

Bit of a long time since my last update. Sorry. You know how it is etc. You can follow me on twitter @skyemaidstone if you like. I do tend to update that more often.

Anyway, I’ve been beaving away at making the 2nd town “Serah”.  It has a forge, market, guard towers, a wooden wall to protect the towns folk from the dangerous lands beyond and a large comfortable inn (compared to the tiny one in Tarin. Here’s a couple of screenshots of how that’s getting on:

serah2

serah1

You can also see it has some nice magical lights to act as street lighting. Who knows how they work? It’s magic. This required me to make a light editor so I can adjust their color, intensity and obviously position.

Next up I moved on to an enemy camp:

goblincamp

This will soon be populated with orcs or goblins or some kind of enemy. This will be the main problem for Serah so I’m planning a few quests for this.

And that brings me to the next focus of my work: Interiors.

When the player enters a building or a dungeon they effective change to a new mini “world”. So I needed to make it so my editor saved models, lighting and “terrain” (which is usually just flat for a 1 story building). This proved fairly complicated but I got there with some nice fairly elegant results in the end.

Here’s a little video of Tarins’s small Inn.

 

Needs candles, fire in the fireplace and some patreons to drink and offer the adventurer some words of advice or perhaps send him on a quest and of course an innkeep to serve drinks and offer a room for the night.

Next up I’m going to have to make the particle effects editable so I can place them where they’re meant to be in the world (fire in the forge/fireplace, butterflies around a bush, water from a fountain – stuff like that) because my flaming braziers are rather hard coded right now. Also I really would be nice if the place had something else to fight besides the 8-12 rats behind Darin’s farm.

Until next time…

 

 

The Realm is Growing

Oops. Well it’s been a little while since I posted an update but sometimes that’s a good sign.

I’ve been so busy making it I forgot to document what I’ve done. Anyway, excuses aside as you can see from the featured image the world has grown a fair bit. You can barely see little Tarin behind the rocks and trees that have sprung up around it.

I had to make some changes to my editor to make it more useable on a grand scale. Making the camera that can sweep and swing around the terrain, cinema style was one of those (which I took that screenshot with). That made it easier to “spray paint” where i wanted things generally then switch back to first-person to place them carefully. That only really applies to things like instanced models and the texture type used on the terrain.

Talking of terrain I could resist adding bump mappnig to the terrain. Amazingly this wasn’t too tough. My engine already supports normal and specular maps but those are used by the geometry generate by package like 3DS. The challenge I had was to generate the tangent/binormal data for my computer generated meshes. That wasn’t THAT bad and with a little help from the great guys at http://www.gamedev.com it was up and running pretty quickly.

Here’s a before:

bumpmapterrainbefore

And after:

bumpmapterrainafter

You might need to zoom in a bit to see how it’s working but its basically adding a more bump look to the road texture (and fading out to not use this technique for other textures since I don’t want bumpy grass for now. Would be nice to use displacement maps but that’s a nice-to-have really. I shouldn’t really be adding subtle (but nice) visual effects at this stage anyway really.

Anyway now the world has a fairly long road that runs from the starting village of Tarin all the was to the larger village/town of Serah. The new villge will have 2 storey buildings and some slightly more modern ones. Perhaps some better shops than just the odd stall.

For now it’s just a flat plaza… I’m going to dot around some bushes, trees, flowers and rocks all the way either side of the road first.

Besides that, and those of you who follow me on twitter @skyemaidstone will know this already, I’ve been working on player skills and a trainer to buy the knowlege from with knowledge points:

trainer

playerknowledge

The first screenshot shows the trainer (The Sage in Tarin in this case who has some basic skills to teach you) and the 2nd shows you the abilities you learn from each of the skills. My player knows all the skills for now. How it works is in order to effectively use a short sword (for example) you’d need the Light Swords skill. So when you equipped a short sword a few abilities will show up. However if you learn Light Swords Expert then equipping a short sword will give you more abilities and perhaps even some combos. Skill points are just earned from questing for now but that won’t be the only method. We don’t want to force our player to do every quest in the game although some will be required obviously. This isn’t going to be a first-person shooter after all.

Ok hopefully next time I”ll put together a video of the trip from Tarin to Serah.

Until next time…

 

So Many Updates

Well where to begin. Realms has had so many updates it really starting to “hang together” as an actual game at last.

I’ll just list a few of things rather than blather on for ages about each one.

  • Monsters now have a chance of dropping a chest which in turn has a chance of dropped varying quality and number of items.
  • Monsters can have “body” loot too. So if it isn’t in a chest it’s actually on their body instead.
  • Indicators have been added for corpses that contain loot. The corpse will decay a lot slower if it has an item on it and it will never decay if it has a quest item. Quest items corpse have spinning Q and other items would just have a spinning star.
  • Monsters can now have multiple attack animations (again I’ll need to find a good animator at some point because my skills are mediocre at best).
  • Particles can now fly in the direction of something. This is first used by the Ghost of Venril monster that haunts the graveyard. It spews forth green plasma/lightning.
  • Killing a monster now gives you some experience points. This meant I needed to have text notifications that float and fade to show how much you gained.

I spent rather a large amount of time finding an annoying lighting bug with the animated models. They just weren’t being effected by the color of the lighting enough for some reason.  After a few hours of head scratching i realised 2 lines of code were in the wrong order between the static model shader and the animated one. Annoying but it looks suitably beautiful now.

Another large change is pretty much the whole UI. The “hotbars” have now been replaced with a more console friendly layout. I think it looks a whole lot neater too.

xp.png

The first 4 are for the primary weapon, the next are for the secondary, the third for the ranged weapon slot (or a wand etc) and the 3×3 block are for assigned spells or items.

The health and power bars are much smaller/clearer/neater too and I think a lot nicer.

I’ve started to add in the skill/weapon merchants which will use the same UI to try and give consistancy but that’s not ready for human consumption.

We almost have an actual game!

Until next time…..

 

Misty Ruins and Ghosts

Hello!

Ok much progress was made which is always rather nice.

I had to make some editor tweaks to make things easier on myself but I won’t bore you with those.

I couldn’t resist adding a post-processing effect. You’ll notice in the video below everything has a slight blur where the bright/dark areas have a large change. This effect is called bloom and it simulates how our eyes handle bright light. There’s a slight bleeding of the bright color into the dark. It’s a fairly cheap effect to do (in terms of processing). I was a bit of a brain ache to get it to work with both the deferred rendering and the forward rendering parts of the game but hey.. I think it adds something.

So anyway enough technical stuff. After being inspired by some ruins I was wandering around in real life. I found some nice ruin models on one of the various model sites and took probably far too long importing and tweaking them. Along with a bunch of tombstones, gravestones and broken rubble. On of this I made an old ruined road (with the help of my new color map editor) an added in the essential ground mist/fog that’s always in graveyards (although I’ve only ever actually seen that on TV if i’m honest).

Here’s a little video of the ruins so far. The player is using the ghostly shader for now while I get it just right:

 

So yeah I found a nice bunch of ghostly models to use but then I realised I have no way of drawing an animated transparent model… So yeah I had to add that which took a little longer than I’d hoped. Kinda looks fairly ghostly at least.

Once I’m happier with that i’ll add in my ghost model and give him a particle effect of trailing faint mist.. maybe green mist or something, We’ll see what looks good.

My player needs some skills so I’ve finally got around to designing a nice Skills UI with my “project manager” (the person who keeps me from fiddling with shadows for 6 months). So I’ll be adding that. But I need someone to teach you these skill.

So for that i’ll need a old man (a sage). Every good RPG needs a wise old man. I’m in the process of importing a sage and giving him a  ruined shack to live in.. That will be at the end of the faint path from my previous post. That means the character screen with need skill tabs and I’ll need to make a UI for the sage for you learn the skills as well…

So much to do, so little time..

Until next time!