Thursday, 31 January 2013

Thursday Reload

Progress on P002

Woke at 2:30AM today so after some quick emails, I dived right into Reloaded before anything else distracted me.  The last prototype only had two clipping planes in effect and so the mission this morning was to get the bound boxes fully occluding.

Occlusion Solution

After all sorts of crazy vector techniques to figure out where to place my planes, I finally figured out a method which I liked. It is fast and simple. I detect which sides of the bound box the camera can see, then disregard the other faces. I then work out which edges of all the faces define the contour around the remaining sides. I then create planes against each of these edges to form a volume starting at the camera and extending into infinity, respecting the edges of the item doing the occluding.


As you can see in the above screen shot form the P002 prototype, the big block is occluding the boxes behind it, and even knows the size of the objects and can avoid occluding the ones on the very edge of occlusion (see the box on the left which you might think would be occluded but a little bit of it sticks out that should still remain visible).  When you use planes to clip things, you have a handy method of determining distance from the plane before you clip which is cool.

I have been gently instructed not to show you any programmer art in future screen shots and demos for the remainder of 2013, so the above demo had a little extra time spent on it to add a skybox plus floor and wall textures from the Reloaded asset collection which is already being build as I write this.  Although you cannot see it, the bricks in the semi-transparent wall use parallax mapping which makes them stick out even though they are mapped to a perfectly flat polygon.

As I have put in 6 hours on P002, I think I will quit while I am ahead and do some other TGC tasks to ensure my workload remains nice and even.  The next bit of the occlusion system will involve solving the problem that individual occluders that sit next to each other do not join forces to hide an object. Each only partially occludes to the object remains visible and you get distant objects remaining visible when in the real world you simply cannot see it. Maybe something along the lines of merging occluders that share two dimensions or something, we will see.

Awesome New System

I find the best way to test a new system is to leap in and start using it, which is what I have done. I have set it up using Synergy alongside my main machine, and have transferred all Reloaded project work to that machine. I have installed only the tools the Reloaded project needs and will be coding from there moving forward.

Dishonoured: My all time newest favourite game of all time

I have added an inspirational backdrop, and sorted out as many of the tools I think I will need. Check out the tools for 2013 and do let me know if you have a better suggestion for any of the software types I have chosen. As it's a new system, now is the best time to discover new tools that make life easier!

My first real deadline is the end of February when I hope to have enough coded that I can design a map, click a button then jump directly into playing the game, complete with light-mapping, occlusion and some of the newer Reloaded graphics and shaders.  I will be sure to reveal a video of this when the time comes, and post lovely graphics of the progress along the way.

Other News

As it's 'going' to be a long day, I am going to dig a few holes in the garden to keep my mind fresh and then resume some AGK project work running up to the usual 7PM clock off time.  Sometime between now and then, I am expecting delivery of a brand new state of the art convertible Ultrabook, my newest weapon in my attempt to win the next Ultimate Coder Challenge.  I can also reveal that the secret item I mentioned a few blogs ago is the remarkable new Gesture Camera from Creative. These two pieces of hardware will form the basis of my competition entry and the development will be stretched over a 7 week period starting mid-February.  I will be running a separate weekly blog for this, but don't worry I will keep my daily appointments here, perhaps with a more informal perspective on how the competition is going for me.

Signing Off

I must say it's really refreshing to be working on FPSC again.  It was my pet project for many years around 2006 and I had a blast. Having the opportunity to go back in and do a major spring clean and wholesale replacement of ancient technology is simply awesome.  Once I've got the boring back-end engine stuff out the way, I look forward to bringing you massive explosions, flame throwers, insane physics and lush landscapes!

As a quick taster, here is an explosion our artist prepared earlier:



Have a nice day!

Wednesday, 30 January 2013

Wednesday Glued

Lee Did It Again

I hope this is not a habit forming, but I seem to have glued Wednesday onto Tuesday (again). That is, not actually do the 'sleep' bit between Tuesday Night and Wednesday morning.

It Was Worth It Though

The time was about 2AM and I was not the least tired, and I knew I was out the office over the weekend. I had planned to finish my PC build that weekend too. It was at that moment I decided to finish my build there and then. I was in a finishing mood because I had just finished single player Dishonoured and was quite pleased with myself. I had a power supply, a USB front panel, a fan controller front panel and a sound card with front panel to install. The goal was to quiet the machine so it would not hum.

The finished system that will create Reloaded in 2013!

It took two hours to do the hardware swap, and a further two hours adding software and other small tweaks. I managed to get the noise level from 45-47 decibels down to 42-43. The ambient noise level in my office at 5AM was 41-42 so my machine now operates a mere 1 decibel above what I regard as 'human quiet'. Little things like the ticking of a clock, the wind outside and the breathing of the house all contributed to making 41 decibels with all machines switched off.  The upshot is that I have built a machine that makes virtually no noise, and with fan control can be made even quieter! I had to look into the case several times to confirm the fans where indeed working, and the machine was, in fact, on.  I then did some stress tests and used Prime95 to attempt to melt the CPU and get it really hot. I got up to 69 degrees at the chip before I backed off and increased fan speed on the case. I have the bios automatically increase the main CPU fan as needed, but I can control the case fans from the front panel now. In theory I should not need to fiddle with anything as it's highly unlikely I will be running at a prolonged 4.4Ghz and even if I did, the CPU is quite safe under 70 degrees.

FPSC Bug Fixing

It looks like I also fixed the FPSC V120 issue causing some failures on Windows 8 (the OS thought FPSC was a virus). Just as I thought I had a final official release, a new bug came in related to leaping spawned crates. Working on that as I type this, and hopefully I can narrow it down and fix for a new release today too.


Reloaded Prototype P002

I have made it right with my brain to do some work on the prototype today, getting the occlusion system further along so basic shapes can be culled from a scene with hundreds of objects. It will be a good first step towards working out a good indoor outdoor occlusion system that works in code.  I've decided not to use the GPU occlusion system as it will add time to the R&D and might cause problems later on when it comes to different cards supporting different variants of this feature. At least good old simple code works the same no matter where you put it.

With occlusion done entirely real-time with nothing more than a list of objects to work from, the last element of 'delay' experienced during the classic FPSC build step was loading all the game media in and preparing it for the start of that level.  The good news is that the map editor already has the assets loaded in (to edit with), so we can assume this step is instantly eliminated.  Once the occlusion is dealt with, I will probably look at the scope of work to incorporate the 'play game' actually 'inside' the map editor executable and in theory reduce the build time to zero.  I might allow myself 2 seconds grace to transition from map to game, and game back to map. More than this and we are back where we started I think.

Signing Off

It's been a fun couple of hours, and when 7PM comes around I will watch an episode of Time Team through bleary eyes then flop off to bed to have a long sleep. I have been reliably informed that new graphics are coming in for one of the AGK projects I am managing, so will be doing a little bit of that Thursday I think.  

Tuesday, 29 January 2013

Tuesday Delivery

Back In The Office

After a whistle stop tour of England, I am back in my Welsh Office answering emails and getting my head straight with the week ahead. I discovered a LARGE box waiting for me, but resisted the urge to open it until I need it. I know what is inside, but it means opening up the new system I am building and a lot of fiddly finger cutting work. Replacing a power supply is simple but involving (and my 8 pin auxiliary power plug is completely hidden by the darn fan and located at the furthest point from the power block - madness). Lots of interesting emails and plenty of news, but I will cherry pick some of them for you!

The Ultimate Coder Returns

I am finally able to reveal my TRUE identity! In addition to being your own personal narrator for all things TGC, I am now a challenger in the second Ultimate Coder Challenge. Da daaaaa!

Official opening post here: http://software.intel.com/en-us/blogs/2013/01/27/soon-the-perceptual-conversion-of-7-ultimate-coders

If you where unfortunate enough to join my original blogging efforts, you will know that I entered the first such Ultimate Coder challenge and lost badly. I created an app that was incomprehensible to the judges and only impressed them with my general lunacy.

It was an honour and privilege to be picked the first time, and shocking to be picked a second time. They must be gluttons for punishment (as they have to read ALL my ramblings). This time around I have been tasked with creating an app that pushes the limitations of a device called the Gesture Camera. This hardware is a forerunner for the technology described by Intel as Perceptual Computing and promises the concept of interacting with your computer without the need to touch, type or wiggle your pointer.

All you have to do is wave your arms and talk in your normal voice, and the computer figures out what you want. If the computer feels like it, your instructions will be obeyed.  I will be keeping my app secret until the challenge starts mid February, and will likely start a new blog series just for that competition. If this sounds interesting to you, you'll be reading TWO of my blogs, but at least one of them is only one post per week so that's good.

I am looking forward to the challenge, and for all your DBP coders out there, I will be writing a DBP plugin to access the SDK/API for the camera, so you may find many of the blogs revealing.  That's right, this app will be written in Dark Basic Pro!  Watch this blog space for more details.

Freedom Engine Frozen

It is always sad when we lose a friend, and today we lose a lovely fluffy friend called Freedom Engine. In order to direct as much energy towards AGK development, we have decided to suspend all development on Freedom Engine in 2013. Official post here:

OFFICIAL POST : http://forum.thegamecreators.com/?m=forum_view&t=203265&b=47&p=0

The decision was not easy given the amount of work that has gone into it, and the extraordinary potential of it. For those who don't know about this, check out the landing page at: www.freedom-engine.com

The plan is to return to this brand once we have added more things to AGK. Things that are quite clearly missing from the 'complete package' including a debugger, an easier deployment mechanism, better help and a solid compiler and IDE.

A general feeling amongst the ranks was that Freedom Engine was a little too futuristic for most developers, who still prefer their offline tools and work pipelines. Cloud has it's place in this environment, including storage, code sharing, automated deployments so forth, but it makes sense to get those things running in the AGK product before launching off into orbit to re-invent the way we are used to coding.  Freedom Engine will have it's day, but not today.

Signing Off

Today is something of a half day shift half night shift, and looks to be that way for the rest of the week. I plan to go back to Wigan to clean a house so will not be frolicking with system builds this weekend, but you never know with my blogging habits.  More blog Wednesday!

Sunday, 27 January 2013

Monday 5AM

Early Morning

It's early, dark and quiet in the Bamber household. I woke from what I though would be a huge sleep but it seems eight hours un-interrupted was all I needed. It's now 5:30AM and I am about to set off for my meeting, which just happens to be 108 miles away from where I am typing (that's almost three hours of morning traffic to the layman - six hours round trip).

The Plan

Going to nip over to England, have a chin wag for six hours, then pop over to Wigan to drop off some presents, then hop, skip and jump back to Wales and try to avoid any snow. My place-holder rent-a-vehicle is a Peugeot 107 which I have been reliably informed has only three cylinders (even my outboard has four). Can't remember the last time I drove a car under 2.5 litres so it's gong to be an interesting ride!  Sods law says I get a freak snow drift!  I don't think I will have any time to do much work when I get back so will probably make it an early night so I have more of Tuesday to work from.

Reloaded News

Though not mentioned in the Kickstarter or any blog post since, one of the things I bought to plug holes in the new PC was a sound card. This sound hard had a 3.5 front panel gadget which allows volume control and port access from the front which is a feature we don't get these days.  I mention this because the sound card has what is called a 3D chip, which I am guessing hardware accelerates the process of figuring out what sound to produce when you bounce it off complex geometry. It's early days and I have not seen the sound card API yet, but one of the things I will probably do after the main Reloaded product is do a little research into sound tech. I did a little environmental audio and 3D sound when I worked more in DirectX land, but it will be interesting to see if these types of API are still around. If so, it should be a case of playing the sound through a static scene pre-built into the sound card, so that any sound played is affected by the entire scene. That is, a closed door would not need to fake a slightly quieter sound beyond, the door would actually 'block' the sound at the source, and based on what material the door was made out of, you would here the modulated result of the sound waves hitting that surface, and every surface before and after.  Maybe I am exaggerating what this card can do, and it's not something that will distract me from the main Reloaded product simply because only one in two hundred will actually one of these hardware accelerated sound cards. Almost everything on the Reloaded development will be focusing on features everyone can enjoy, not just the precious few.

Signing Off

Looks like I got my Monday blog after all. I also got through another level of Dishonoured last night too, and I 'think' I am on the final level, at last. Just have to play a few more hours and then my 'research' will be complete.

Saturday Plus Sunday

Third Time's A Charm

I think this is the third time I have glued two days together in the last ten days, and it's probably not good for me. As you may know I received the parts to my new system on Saturday and that evening I set about taking an old one apart and assembling the new one. It took about 13 hours including installation of some basic drivers and tools, and I am pleased to report everything when perfectly fine first time. 

The only stumble was that the new motherboard only had USB 3.0 ports, and Windows 7 did not have USB 3.0 drivers during the installation step which meant the keyboard and mouse died as soon as I entered a Windows page. The solution was to insert an old PS/2 keyboard into the combo PS/2 port they kindly left on and I completed the installation via the keyboard only.

Once I was in Windows, I installed all the motherboard drivers (including the new USB 3.0 driver) and all was well with my ports and mice again.  The over-clock I had purchased disappeared and the Easy Tune provided by Gigabyte was certainly easy but not particularly nice, so I un-installed that and was about to over-clock it the old fashioned way when I found Overclockers UK had saved a profile in the BIOS which was a perfect 4.4 Ghz over-clock  and a generous 2100+ memory over-clock too!

I Name Thee Noisy Bugger

I had bought the parts that would produce a nice quiet PC, but I neglected to consider the parts that where staying in from the last system. That is, the Power Supply!  It generates a rather annoying 65db under any load which was quite a distraction. At first I thought it was the CPU fan and the case fans, and spend all kinds of time switching to voltage reduction on the fans, inserting Ultra-Low interceptors on the fan cables and then I realised it was the power block.  I've had to send off for some more parts, and will put the machine away for another week. If I am to use the machine for the next few years, I may as well make it do everything I need it to do, which is to be quiet enough that I can think, and also not have gaping holes in it.  Another small issue was that the new motherboard had no floppy IDE and no HDD IDE (of course) and only 6 SATA ports and some other strange things. Next week I plan to plug these holes and hopefully have a machine I can start loading up with software and work files.

Lights Camera Action

I thought it would be a great idea to video capture the whole thing, from taking out the old board to assembling the machine and plugging it in. As you can imagine, it's a LOT of footage so will take time to convert to something you tube will accept, and I might have to (will have to) time lapse it so you don't have to sit through 10 hours of head scratching.

Signing Off

I have a meeting all day Monday, but will resume my antics and blogging Tuesday. If we can call this blog Mondays blog, then I have technically not missed a work day so far in 2013 ;)  It's 3PM now, and I plan to be asleep for 8PM so going to load up Dishonoured and see if I can get to the end of the single player mission so I can shelve it (and allow some new games to rush in). The problem with researching games is that when you find a good one, you tend to do a little too much research!

Friday, 25 January 2013

Friday Night Chill

Feel Good Friday

I guess everyone gets that Friday feeling, even if you work from home, you only see your boss in the mirror and Saturday is an almost identical day to Friday. I have it, especially now it's gone 10PM and the working day is done. I am spending my leisure time de-RAIDing a set of HDDs to find out which one has errors in it (by formatting each one in turn), then when I find it dropping it in the bin (or getting a new one if it's still under warranty) and repairing the rest ready for a new machine build.  Oh what fun!

Lee Makes a Machine

The HDDs are currently part of a PC that I use for secondary backups from my NAS drive, which my current main machine will be fulfilling a few weeks from now. First job is to build a new machine and run it through some insane tests before it can be called my main machine. If it does not melt, I will use it.

I am sure you want to know the specifications. I have ordered the raw ingredients from Overclockers UK, and even though I selected the 5-7 day build time for the motherboard + chip + memory, I got an email less than 24 hours after I ordered to say the whole lot had been shipped. Amazing!  In addition to the basic MB bundle I also added a BlueRay writer and discs and a new 240MB SSD to act as a rapid overflow drive (to install things like Dropbox, Installer Builds, etc). The leaves my main SSD (128MB) large enough to be the core Windows drive but small enough to allow nightly back-ups of my system set-up and source code (the two things you scream about when you lose HDDs).  I also added the Asus GFX 660 graphics card, which is not the fastest puppy out the gate but very useful. When I start the Reloaded project, I don't want to code on the fastest GPU on the planet because the only people capable of playing it would be those who own the fastest GPU on the planet. Instead, I have ordered a mid-range card so I still have the feature set and power to test some advanced shaders, but can simulate each side of the fence from the GTX 650 through the GTX 680+.

The motherboard is a Gigabyte Z77 and the processor is an Intel 3770K, and Overclockers have kindly figured out the best memory to run with this combination which is are modest 8GB Patriots. The bundle can be found here: http://www.overclockers.co.uk/showproduct.php?prodid=BU-123-OE

I am sure professional system builders are laughing in their coco right about now, and I agree my attempts to build a PC are probably ham handed, but I long ago decided that I build machines to have a little bit of choice about what I use every day, but by no means do I consider myself an enthusiast in this arena.  My rigs don't have flashing lights, water tubes, ice vapour pouring out the vents, insane clocks and whatnot.

I picked this set-up because it produces a safe 4.4Ghz speed (kindly pre-overclocked by Overclockers UK), will have full SSD storage for every day use, can burn 25GB of data in a few minutes, will allow me to play around with the latest PhysX advances thanks to the GTX 660 and probably the most important, it will be utterly completely silent.  Every component has been chosen for it's insane silence, and the graphics card which is usually the worst offender, uses DirectCU II which means ultra quiet fans that only produce 21 decibels at idle and 22 decibels at full load :)

If all goes well, the delivery is Saturday morning which means my weekend has turned into a machine-building-weekend.

The Days Business

In regular news, I have successfully sent off an estimate for new work which Dave (our tireless TGC coder) will kindly undertake, and another estimate for a third party artist we use from time to time to start around July, I have made new builds of one of the AGK projects and totally updated the feedback documents of two other AGK projects, and finally I have cleared my inbox which is now empty.  The business of the week has been concluded 100% successfully and my weekend is mine, all mine!!

Signing Off

While the test machine SLOWLY formats two 1GB drives to find the culprit, I have a few things I can do now including another few levels of the Dishonoured game which I have sensibly left alone during this week's activities. As I need to be up for most of tommorow, I shall not make this a late one but it's only 11PM so the night is young! Might also do some forum reading, add a few social posts here and there, and generally muck about on the comp until I get sleepy.  What a happy day Friday has been!

Thursday, 24 January 2013

Thursday Not Friday

Lee, It's Not Friday!

I have corrected myself about four time today. I keep thinking it's Friday, when it's actually definitely Thursday!  I have some important things to do Friday and this might be why I want it to be here so I can get on with it. One of the things I have to do as a head developer type bod is to prepare estimates for future projects, and Friday is one such day. It is one of those jobs that has far reaching implications, and in this case asks me to accurately predict how long a project will take, and projects can take months. It's like throwing a snooker ball across a football field and predicting how many centimetres it will go before you throw it. Only experience in both throwing and judging distances can you ever hope you get something that bears any resemblance to the outcome.  Friday afternoon, I throw about five snooker balls and bet the bank I know precisely where they're going to land!


Room With A View

Thought I would take a photo of my lovely Welsh view so you can see what I see every day (on those days I working in daylight):

Somewhere in Wales

It's nice compensation for not being able to Ski this year. Those mountains are very much like the ones you see when you're dropped off the ski lift and look out over the vista you are about to plummet. I might arrange the next TGC convention so we meet in the Alps and combine a meeting of minds with huge amounts of skiing and beer.


Fun Times Ahead

I probably should not mention this, so I am going to use evasion and cryptographic speech to tell you anyway. You will only know what I am talking about later on, when you read more blogs. Something arrived on my door step and it was very big. I opened it and it was smaller than very big. I plugged it in, and lo, it was good. Very good. Stonkingly, ziffingly, smagdogglingly good! And better. It's also got very little to do with anything I have blogged thus far this year, and I will be able to reveal more and all in February when it will make a whole lot more sense.  All I can say is that every fibre of my being is being restrained from playing with said object so I can remain professionally focused on my real job and because this exciting item has been confined to the weekend and dare not look upon it during the week.  Be excited!

DGS - A New Master

Another day, another master, this time the Dark Game Studio gets a few tweaks, ready for a UK release later this year. I had to change a few things around so it would work better on Windows 7 and 8, which included changes to DBP and FPSC Free installers. This of course meant making NEW installers. The original DVD was mastered in 2008, so you can imagine it was tense for a moment as to whether any of it would work on the frontier OS that is Windows 8. The good news is that thanks to my work with Vista, the DVD pre-warns users of the ADMIN and UAC requirements, and with a few text tweaks was good to go.  Spend most of the day testing on Windows 8 and Windows XP so should be good to send out test masters to various eager beavers.

AGK Project B Hand Over

Another good bit of news is that Dave, one of TGC's top coders, has successfully integrated himself into one of my former AGK projects which means I have more time in the Reloaded camp.  I will still have a finger in the pie for some time, but Dave has made the transition very smooth to such a degree I have no doubts or concerns about the future of the project in question. Sorry I cannot use titles for these mysterious AGK projects, but they are either under NDA or in a pre-release state and can only be revealed when the marketing for the titles kicks in later this year.

Monster Hardware Thoughts

One of my hard drives just melted on my test machine today, just disappeared, just like that. The cheek!  My hard drives do not get holidays, that's the rule.  Fortunately it only stored backups of backups, but it does represent one level of redundancy down the drain, so I need to open up the machine and swap out the dud (if I can figure out which HDD it is, they all look the same).

As I contemplate opening up the PC, it occurs that I have not built a PC since my current one was over-clocked which was about two years ago.  It further occurs that my processor must be two years old and my overall architecture a little dated. It does the job very well but there is no harm in having a faster system for 2013 is there?  Would make a cool series of blogs too, especially for those of you who are unfamiliar with ripping a machine down to it's wires and building it up from scratch.  My preference is always to go for fast and silence, air cooled not water blocks, super fast drives and chillingly powerful GPU, over-sized power supply and easy access case. No flashing lights and no colour co-ordination. It is usually a machine designed to be the ideal development machine rather than the bell of the ball at the next frag-fest.

I've had a look to see if there are any developer discounts floating around but the processor I have my eye on is $999 which pretty much ends that line of enquiry.  That's not the PC, that's just the tiny little chip in the middle of it all. The other costly components are the motherboard, memory, graphics card and power supply. I will likely relegate my main machine to the new test machine, and use the test machines case (identical to the main machine) as the housing for my next monster creation.  It's not just the cost, but the time it will take to build and re-install my life onto, so the timing has to be right also. My favourite store for buying bits is Overclockers as their site seems to be designed around the needs of the PC builder, and sometimes compile a special "motherboard + processor + memory" pack which they have tested in-house for stability, compatibility and rock star qualities.  The more I type, the more I think I will jump to the overclockers site now to see what they have. It's 6:30PM now and my DGS DVD tests are all but complete, so I think I might have a wonder :)

Signing Off

Been a few days since I played an FPS game so there is a danger I will slip back into the old funny-duddy mindset. I have a nice pile of them now, so if Friday goes well I might reward myself with a few hours of Borderlands 2, and check out these amazing customisable weapons I have heard about :)