Animation Working At Last

I guess this should include a video but I don’t have the time right now but I finally got animated 3d models working again.

I started from a small block “man” (see last post) with a few bones and then went to the basic nude male model that comes with XSI and then my own model with no material… then my own model WITH a material and it works.

I had to write down a very specific set of steps on what order to do everything and how to store the animation clip in the scene, how exactly to make the key set and store the keys. If I follow these step so far it’s working perfectly. I have a nodding man with his material in tact.

For some reason MG isn’t automatically including binormals and tangents with my animation processor  but I don’t care about too much. I can use the normal with my normal map and specular map and it looks great.

I’ll sling together a basic run animation (I’m not going to actually make the animations myself in the long run, I’ll find someone on Upword or Fiverr to do that) and get on with the village again.

I’ll finally be back to where I was before getting rid of any XNA connections finally. I can make my peasant npc’s into vendors for weapons and food. And a quest npc (someone to tell me to kill 10 rats 🙂 ) and maybe a dungeon entrance.

Ideally my village will end up something like this:


Fog From Above and Animation Mk2

It’s amazing how a small problem has take most of your available time up.

There were 2 remaining problems stopping me getting on with making the NPC’s move and adding a monster or something to kill etc..

  • Animation
  • Mist/Fog vanishing from above

Now obviously without animated 3d models my game is completely useless. So this was the priority.

I did actually work on animation a little. Hence that you can see Mr Ranger is now replaced with a weird blockman (he nods, that’s about it). For some unfathomable reason I can’t get animation to work sensibly at all since moving to Monogame. XNA was pretty finicky about the the FBX structure so I’m sure i’ll get there in the end.

Most of the weekend was spent fiddling with ground fog/mist yet again. I just couldn’t leave it alone.. It has an annoying bug where it would almost vanish when looked at from above (since its just a billboard of a bit of fog). Using a technique call camera aligned billboarding I eventually got it to work just right. The image is of the ground fog/mist blended in with some billboarded lavender plants which looks pretty effective from any angle now.

Fixed up loads of minor stuff in my world editor and it’s nice to be able to place a bush or tweak the shadow offset on a wooden fence etc again.

Hopefully one of the helpful guys in the MonoGame community can help with the weird fbx animation bug

At least I can get on with making the game again. Kinda

Render Target Problem


Since switching to Monogame I’ve got everything working again except shadows and animation. I’m really stumped why the depth buffer isn’t working at all.

Hopefully the guys in the MonoGame community can help.

Animation seems like it SHOULD be working but just isn’t rendering anything but I have a few things to try with that yet.


Realm of Monogame

After hitting endless annoyances and really slow compile times I finally thought “Right, that’s it” and decided it was time to finally completely ditch XNA and move completely to Monogame.

This hasn’t proved too bad so far: All the code compile and the shader’s did too after a few small tweaks. I need to figure out how to use my content importers for animated models and deferred models.

I haven’t actually run the game at all since making a clean new project and getting the latest version of Monogame. From what i’m reading there’s going to be some fun with shader semantics but at least there’s an active community to ask if I can’t figure it out.

I’m still working on a food stall to go with my weapon stall. Buying in random models isn’t ideal because it takes a lot of work sometimes to make them “Game Ready” despite being advertised as being “Game Ready”. ie the food model for some reason uses 12 separate texture files and about 30 meshes which is just lots of unnecessary texture switching and draw calls for my game. So it takes a lot of fiddling get that down to something more optimal. Really nice models though, far better than I can make myself.

My “model guy” from Upwork seems to have got bored with modelling so I guess i’ll need to find a new one which isn’t ideal.

This point had to come sooner or later if I ever wanted to get this game deployed to other platforms anyway and the 32bit memory limit was just becoming impossible to work with. Also I’ll be able to use dx11 stuff like displacement shaders and textures larger than 4096 should I wish to as well. Also the performance improvements will be nice too.

Hopefully by my next post i’ll have a screenshot using just Monogame with no hint of XNA remaining.

Realm of Upgrades

Well not the most productive of weeks.

I’ve managed to finish off importing a couple of market place props (finished the weapon stall and added in a wagon) but spent a fair bit of time upgrading my development machine. My shiny new GTX 1080 graphics card was a complete pain in the rear-end to install. I won’t bore you with the details but it just simply refused to install the drivers. Eventually I found a way to get it to recognise it.

The plan next week is to get a load more of these props in and get some bones added to the peasants so they can at least stand around looking bored at least.

I also really need to make a few tweaks to the instanced model and billboard model UI’s. They’re “ok” as they are now but i really need to just be able to easily spray grass/miss/mud/pebbles where ever i want. It’s far too fiddly to use now.

I guess that’s it. Hopefully a more exciting update next week.

Flora and Marketplaces

Wow you can so easily waste fiddling with and effect to get it just right, then still hate it then fiddle with it some more.

Inspired by No Man’s Sky (I refer to that game so much because my landscape is ridiculously large too) I liked their use of Billboarding. It’s a cheap technique and looks a bit crap unless used sparingly and only in certain situations. It never really looks good from above or on large objects.

Anyway Here’s an example of some heather blended in with some mist with some rocks and trees:


I fiddled around with that waaaaaay too long. Anyway on the the actual game again.

As you can see from the featured image i’m starting to add market stalls for the player to actually buy stuff. Weapons in this case. I have a load of medieval props to import. Other kinda of market stall and baskets, barrels etc so it should really start to look like a market/village soon.

One day i’ll learn not to fiddle with effects so long it eat into the actual game making process but I sense it’s a common trap for game developers to fall into.

Next week: No more effects, just game (I’ll try).

Mrs and Mrs Peasant

It’s been a busy week building the village and surrounding area.

I’ve had to make a few tweaks to the editor UI to make it more useable but I won’t bore you with those.

I managed to resist the urge to fling in some post-processing effects I was playing with (Depth of Field and FFXA) and get on with adding some more building types. So now my village had a 3 different types of house, 2 types of shop and 1 Inn. I also added some bushes with no leaves dotted about the muddy village. I think I need some cart tracks running through the “road” in the middle of the village. I don’t think this village needs actual gate since it’s pretty small, just the basic wooden wall and a couple of guard towers will do. Which means I’ll need some guards. Who would employ 4-6 guards in a village with only about 10 buildings in it? Maybe it’s best not to dwell on such things.

Anyway I added some more pine trees and rocks about the surround areas and realised I need some nice purple/pink gorse (or whatever that flower is) and some other kinda of tree and also some large rocks (there’s only so far you can stretch my rocks before they start to suffer in quality.

So yeah then I decided my Red Ranger was getting lonely so I rolled out some peasant. They have no “bones” yet so they’re just being rendered by the static model renderer (in a rather silly looking T pose). They look pretty nice for an initial effort though.

It’s all coming together.

I really need to find some nice grass and gorse (sp) and start actually using the instancing and billboarding renderers. It looks nice enough but that will really give the hillside a more fluffy and real feeling.


Did I mention this supports multi-player (MMORPG style) already? I can log on multiple copies of “Realms” and shoot myself with my ranger and he proceeds to do a rather bad dying animation. But hey at least he has the decency to die when he’s shot.