A blog about my rantings, including Games, Game Development, Gaming, Consoles, PC Gaming, Role Playing Games, People, Gaming tips & cheats, Game Programming and a plethora of other stuff.
Friday, 23 September 2022
Viva la Treeland!
Saturday, 10 September 2022
Home Engine - Texture Mapping & Camera Update
So, what did I get done in code land? Well, I added texture mapping to my home engine, this was a major step, I also sacked off the blender exporter which I wrote in Python to expose the blender meshes and loops into my own format. I've simply reworked that hand written format to be less verbose and simply be simple.
I've improved the camera controls added previously, but still have things I want to try there, but for the feel of the game I have in mind for my first pass "project" in the engine this will suffice.
Ray Casting is next on my list, and to that end I started to write my own little Physics solution providers, the first thing added was simply to collide the camera point with the ground plane and bounce it back up and point it slightly skywards again; this both stopped the camera going out of bounds, but also hides the near clipping plane cutting off the ground as the camera gets too close to the ground geometry.
Ground geometry is perhaps one of the higher priority things I want, a bit of diversity in what I'm seeing, but also a heightmap and collision solution against that for the camera.
I also plan to put the Tank & Turret problem solution I have back in, it just needs a clean pair of new models.
And that's the big word for the next couple of hours I find spare... CLEAN UP... I have a lot of cruft in the code, from hard coded models in arrays, to unused vertex descriptors to simply some areas where I've not followed my own coding standards (I found two of these very frustrating in my Vulkan API to transfer images from staging buffers to actual images & views on the device earlier).
I'm not talking about a full pass through the whole vulkan demo, more just the demo I have.
Ultimately I will need to stop writing this demo and start to back port all the code into a Vulkan Renderer Implementation proper (like the DirectX11 one I have), but that's going to take a little more head scratching.
My Physics solver is very rudimentary too, points within boxes, checking which side of a plane they're on or being parallel to. I plan to add rays and spheres soon, then boxes of course, and I'll have a very basic rigid body and intersection test system; I'm sure the depth buffer will come into this, but for now I'm keeping it all on the CPU.
Thursday, 8 September 2022
Monday, 29 August 2022
Home Engine - Bank Holiday Camera Controls & More Models
After the silence earlier in the year I'm so happy to be blogging more often, and I hope you are all enjoying it too; I can see some regulars popping by and a few new faces in the stats list; but still far too many of you are totally anonymous, drop me a comment!
Thursday, 25 August 2022
Home Engine - Blender Export & Model Loading
Some progress in my home engine has been had, first of all multiple geometry rendering through my fixing up and better understanding both render passes and descriptor sets.
All of this is nuts and bolts, what I want to get to; just like the DirectX 11 rendered version; is to play with 3D geometry and placing objects into a scene.
To this end my hand written geometry is no longer hacking it, and you will have seen from my raw game engine posts I did use Milkshape 3D.
Milkshape, lovely as it is to my eye, is not a modern well featured 3D suite and sadly does not let me easily plug into the geometry live within it (one can only export and perform post-processing).
To that end I delved into how one might write a Blender add-on to export your own format...
Long Story short, here's my text intermediate output from just such a plug-in written in python.
Friday, 19 August 2022
Home Engine - Set Course for Vulkan
Over the last year I've been experimenting with writing my own home game engine, initially I spent time writing my own line rendering and then a wrapper with SDL2 all using my own mathematics library as a refresher.
Friday, 5 August 2022
I hate FizzBuzz and Will Analyse anyone who uses it
One FizzBuzz Interview so far.... News flash... The moment I am asked to write FizzBuzz during a technical test I intentionally stop and ask the questions from there on out. I've done this a couple of times. And you know what I learned... I learned a whole lot more about the interviewer and their processed than they found out about me.
Let me take you back to a technical interview I had about five years ago.
I drive up to the building, it is way out in the sticks; just about still in my home county, but so obscure it's in a part I have never ever been in.
It is a sweat shop. I was not only right, but so happy I'm driving off.
Prior me: Just coming into edit this before it goes live on Friday, guess what I'm watching...


