Testing is taxing
A little word of advise when testing final release software, allocate plenty of time for it, then double it twice.
As you can see in the above, there is plenty going on. Seem how many devices you can count, and that's just the ones I used this evening. The great news is that all the bugs have been squashed in the AGK apps and it's really just building new deployments, one tweak at a time.
Monday Meat
The bulk of Monday has been my attendance of emails and related email tasks that built up over the weekend. I gave everything in my inbox a wide berth while I worked on my Perceptually Challenged Ultrabook app. You can read about it in this weeks blog:
http://ultimatecoderchallenge.blogspot.co.uk/
The midnight hours where spent catching up on some reading, research and learning about what will be happening at GDC later this month. I will be there from Monday night and wanted to know the kind of things going on.
More Reloaded
The good news is that I found some hours to work on the master project, and we are now at the stage where the objects have been identified from the large map editor project and ready to be re-created in the smaller light mapping prototype. The fun process of lighting them in real time can begin, and once up and running, moved back into the main map editor source (which still takes 3 minutes to compile so I rather like the idea of working in the smaller prototypes which take 3 seconds to compile).
02:59 AM : New Source Layout
To help fast coding, I have split the source code between the types used and the main code, this way my small prototypes can use the same data structures as the main app. My plan is to only make a final compile of the main map editor now and again, with most of my work happening in the prototypes. The original FPSC development way back when did it like this and I had about ten sub files with their own prototypes to test specific things like A.I, scene generation, e.t.c. Looks like I am going back to my roots.
04:10 AM : Phew, A Lot of Types
I knew there was a lot of code in there, but there is a LOT of code now from various modders that I'm only now appreciating in terms of size! It might take me four months just to work out what it all does ;) Amazing features in here, buried simply due to the lack of media and examples that shows off all it can do. Bringing these to the surface through documentation, examples, assets and small games would be a great boost for Reloaded.
Signing Off
I pretty much agreed with the universe to stop coding at 4AM so I can have a sort of decent sleep and get to see Tuesday daylight. I did not get my objects in the proto but I think I got better. I got ALL the types from the engine in their own file now, so I can link with that when doing future prototypes and when I drop code such as entity control, AI handling or scene building, I will be using the exact same structures the main engine uses. Everyday luxuries for C users, but DBP users have to plan ahead a little ;)
All ideas expressed in this blog are temporal and any resemblance to manifested reality are purely co-incidental. The forgoing is a casual musing from a fellow coder, not an iron clad promise of features and products - The Law
Monday, 11 March 2013
Saturday, 9 March 2013
Friday & The Weekend
Lots And Lots
Where I to parrot off the list of things happening on Friday, it would be quite a list. I will boil it down to the fact I did a little bit of everything, and pretty much got my inbox under control that day.
AGK Project Bits
We had some problems on the old 3GS phone, and managed to get hold of one today so was able to reproduce and fix the remaining issues on that phone. A coders life is 1000% improved when the bug is readily reproducible!
FPSC & Reloaded Bits
As a way to keep the ball moving, I did some FPSC related compiles and checks to keep my hand in, but the main work will commence Monday when I have almost the whole day to get the current object placement system extracted and into my light mapper prototype. We'll then see some fireworks.
Ultimate Coder Bits
I anticipated the demand will be high to top my last video from Week Three, and it's a fools errand to attempt such a thing. I spend a few hours of the early hours looking at and compiling various audio conferencing open source projects but they are few and far between and they don't make it easy to get something up and running. All I wanted was a downloadable VS project I could compile and run, trace through the code then extract what I needed. What I got was projects requiring fifteen dependencies to link with, command line compilers and strange new tools that assemble project files for you. The closest I got was an old project on Google code of Linphone which looked the part but on compiling threw up enough errors to make me realise this was going to be a LOT of work to untangle, with no guarantee if would be of use.
I am sure there are a number of solutions I am not aware of, but they all seem to be part of some click that I am not apart of. With time I can break in and sort my head around it, but I don't have a lot of that. The weekend will reveal what direction I take based on this new obstacle, but there is plenty to do and I should not stop on this one issue for weeks and weeks. I can always come back to it when my brain is more cooperative.
Signing Off
Plenty to do this weekend so better get cracking. This blog goes out late due to Friday night ending about 5AM and it's writer needed sleep :)
Where I to parrot off the list of things happening on Friday, it would be quite a list. I will boil it down to the fact I did a little bit of everything, and pretty much got my inbox under control that day.
AGK Project Bits
We had some problems on the old 3GS phone, and managed to get hold of one today so was able to reproduce and fix the remaining issues on that phone. A coders life is 1000% improved when the bug is readily reproducible!
FPSC & Reloaded Bits
As a way to keep the ball moving, I did some FPSC related compiles and checks to keep my hand in, but the main work will commence Monday when I have almost the whole day to get the current object placement system extracted and into my light mapper prototype. We'll then see some fireworks.
Ultimate Coder Bits
I anticipated the demand will be high to top my last video from Week Three, and it's a fools errand to attempt such a thing. I spend a few hours of the early hours looking at and compiling various audio conferencing open source projects but they are few and far between and they don't make it easy to get something up and running. All I wanted was a downloadable VS project I could compile and run, trace through the code then extract what I needed. What I got was projects requiring fifteen dependencies to link with, command line compilers and strange new tools that assemble project files for you. The closest I got was an old project on Google code of Linphone which looked the part but on compiling threw up enough errors to make me realise this was going to be a LOT of work to untangle, with no guarantee if would be of use.
I am sure there are a number of solutions I am not aware of, but they all seem to be part of some click that I am not apart of. With time I can break in and sort my head around it, but I don't have a lot of that. The weekend will reveal what direction I take based on this new obstacle, but there is plenty to do and I should not stop on this one issue for weeks and weeks. I can always come back to it when my brain is more cooperative.
Signing Off
Plenty to do this weekend so better get cracking. This blog goes out late due to Friday night ending about 5AM and it's writer needed sleep :)
Thursday, 7 March 2013
Thursday's Bits
Usual Bits and Bobs
As you might expect, emails and AGK tweaks kept the better part of the day pretty occupied. The evening was spent fiddling with networking cables as a recent power surge took out some of my kit. The later evening I started my presentation slides for GDC (only 20 minutes but I want to get it written and rehearsed before the big day). Nothing to report, no bog eyed monsters, no needful things.
Midnight Strikes
As luck would have it, all my tweaks and tinkers finished squarely at 11:55PM which means I started my blog a few minutes before I was due to do a hew hours of Reloaded. My mission this night is to formalise the new object placement system in the editor (so I can draw a near infinite number of objects in the scene) and then once I have that, I can copy the globals, types and arrays over to a prototype to get the module/subroutine for the real time light mapping synced with it. The idea is that I can continue working on the light mapper using a fast prototype (i..e fast to compile) and only when it is perfect I can drop it into the editor, and of course drop it in from time to time to ensure it still syncs well.
This practise of making small prototypes that compile fast and are easy to navigate will be used for each of the new 'features' that will be going into Reloaded from scene occlusion through to massive explosions.
A mini-milestone for me will be the editor showing the entire scene from top down view without any culling of the world (no more shroud) and having it drop in baked light maps as I watch. Move a light, and just like magic have the light map do it's thing. And then to drop down and run around it, even as the light mapping is still being crunched. Can I get it done for the weekend, who knows. Only one way to find out...
01:22AM : Boy, Dat's Fast!
Apart from battling with a two and a half minute wait each time I compile my source code, I have been enjoying myself. I thought I would interject my most recent buzz, when I stripped out all the 'static object building' of the old previewer code from the editor and just leapt directly into the scene as it was being edited.
Sure there are bits of editor graphic all over the place, but the speed was intense. I thought it was fast before, but this version as soon as you even think of touching the button it runs the test mode. THAT is what I want to see in the final product.
I'm just about to move the editor object range to the end (around 70000 object indices in) and remove the shroud system, and then see what I have. The editor divides the world into layers for easier top down editing and I am keeping that as it's very cool. I will need to show those higher/lower layers of course in test mode so that's something to consider. I want to try and avoid looping through the entire set of scene objects each cycle, but I guess doing it once during set-up and clean-up is okay.
02:50AM : Look Ma, No Shroud!
I have now removed and forever banned the shroud system in the editor, so the entire screen is filled with the real objects and entities now, no longer will you see parts of the level represented by blue print graphics.
Another pretty cool tweak was removing the editor markers from the test level mode which suddenly made my little wonder all the more exciting. We're getting to the point now where we can 'almost' imagine we are running through the test game scenario you used to have to wait 5 minutes to play. As I am not adjusting any assets between editing and playing, the test level button remains completely instantaneous. Just what we wanted.
The next task will be to move a part of this 'placing objects in the editor' behaviour into my prototype so I can sync the light mapping code with it. One obstacle I found was that the editor uses object instances (not clones) to represent the many objects in the scene. This is done for performance. The road block is that you cannot light map an instanced object (as it is really just a straight copy of it's parent). My idea is to keep the instancing, but when the light hits it for light mapping, it turns it to a clone at that point. This way we can paint in the editor very fast (instanced objects), and the light mapping deals with small groups of objects as the light hits them (in batches I think). In theory, you will be able to paint quickly, the light mapped 'clone' objects follow seconds later and delete it also immediate of course. By maintaining slick fast controls for the user, and lighting coming in secondary, I can pretty much keep a good chunk of the code that is already in the engine.
Signing Off
Not going to stay up too late tonight as I am sure Friday will be a big 'close things down' day, and Friday night I will be jumping over to the Perceptual Computing universe to see if I can get voice conferencing, vertex transfer and a new board room graphic implemented in time for my next blog. The critical goal is to turn the proto demo into a proto app, which means giving it a use. I have all the tools and code to hand, so it's just a case of doing the 'code' thing until it starts to look something like.
As you might expect, emails and AGK tweaks kept the better part of the day pretty occupied. The evening was spent fiddling with networking cables as a recent power surge took out some of my kit. The later evening I started my presentation slides for GDC (only 20 minutes but I want to get it written and rehearsed before the big day). Nothing to report, no bog eyed monsters, no needful things.
Midnight Strikes
As luck would have it, all my tweaks and tinkers finished squarely at 11:55PM which means I started my blog a few minutes before I was due to do a hew hours of Reloaded. My mission this night is to formalise the new object placement system in the editor (so I can draw a near infinite number of objects in the scene) and then once I have that, I can copy the globals, types and arrays over to a prototype to get the module/subroutine for the real time light mapping synced with it. The idea is that I can continue working on the light mapper using a fast prototype (i..e fast to compile) and only when it is perfect I can drop it into the editor, and of course drop it in from time to time to ensure it still syncs well.
This practise of making small prototypes that compile fast and are easy to navigate will be used for each of the new 'features' that will be going into Reloaded from scene occlusion through to massive explosions.
A mini-milestone for me will be the editor showing the entire scene from top down view without any culling of the world (no more shroud) and having it drop in baked light maps as I watch. Move a light, and just like magic have the light map do it's thing. And then to drop down and run around it, even as the light mapping is still being crunched. Can I get it done for the weekend, who knows. Only one way to find out...
01:22AM : Boy, Dat's Fast!
Apart from battling with a two and a half minute wait each time I compile my source code, I have been enjoying myself. I thought I would interject my most recent buzz, when I stripped out all the 'static object building' of the old previewer code from the editor and just leapt directly into the scene as it was being edited.
Sure there are bits of editor graphic all over the place, but the speed was intense. I thought it was fast before, but this version as soon as you even think of touching the button it runs the test mode. THAT is what I want to see in the final product.
I'm just about to move the editor object range to the end (around 70000 object indices in) and remove the shroud system, and then see what I have. The editor divides the world into layers for easier top down editing and I am keeping that as it's very cool. I will need to show those higher/lower layers of course in test mode so that's something to consider. I want to try and avoid looping through the entire set of scene objects each cycle, but I guess doing it once during set-up and clean-up is okay.
02:50AM : Look Ma, No Shroud!
I have now removed and forever banned the shroud system in the editor, so the entire screen is filled with the real objects and entities now, no longer will you see parts of the level represented by blue print graphics.
Another pretty cool tweak was removing the editor markers from the test level mode which suddenly made my little wonder all the more exciting. We're getting to the point now where we can 'almost' imagine we are running through the test game scenario you used to have to wait 5 minutes to play. As I am not adjusting any assets between editing and playing, the test level button remains completely instantaneous. Just what we wanted.
The next task will be to move a part of this 'placing objects in the editor' behaviour into my prototype so I can sync the light mapping code with it. One obstacle I found was that the editor uses object instances (not clones) to represent the many objects in the scene. This is done for performance. The road block is that you cannot light map an instanced object (as it is really just a straight copy of it's parent). My idea is to keep the instancing, but when the light hits it for light mapping, it turns it to a clone at that point. This way we can paint in the editor very fast (instanced objects), and the light mapping deals with small groups of objects as the light hits them (in batches I think). In theory, you will be able to paint quickly, the light mapped 'clone' objects follow seconds later and delete it also immediate of course. By maintaining slick fast controls for the user, and lighting coming in secondary, I can pretty much keep a good chunk of the code that is already in the engine.
Signing Off
Not going to stay up too late tonight as I am sure Friday will be a big 'close things down' day, and Friday night I will be jumping over to the Perceptual Computing universe to see if I can get voice conferencing, vertex transfer and a new board room graphic implemented in time for my next blog. The critical goal is to turn the proto demo into a proto app, which means giving it a use. I have all the tools and code to hand, so it's just a case of doing the 'code' thing until it starts to look something like.
Wednesday, 6 March 2013
Wednesday Back On Track
Distractions, But Not Enough!
Oh yes boys and girls, I had distractions coming out my ears, but I have managed to box them all off and start my cascade of uploads before midnight. This means I can gracefully slide back into the Reloaded world and get the objects moving about in the real time light mapper.
Moving Objects
I want to test two things this evening, getting objects to update their lighting when you move them. I will start with uniform size objects. The light detection must ultimately handle scales of magnitude the original did not have to deal with but we will get to that later. For example, what if someone imports a whole building with rooms and details in one go, how or should I have that? Great question. Answer unknown.
An Aside : Ultimate Coder Latest
Great feedback from the judges of the Ultimate Coder Challenge so far, who seem to like my 'rough as sawdust' 3D rendering of the depth data. I have some new art come in for the project, and I am very keen to wrap up the functional core of the app by week four so that it can be used as an actual communication program. Grafting third party audio conferencing code into an existing app is never easy, but I feel more confident doing that than writing my own from zero. For more information on the Ultimate Coder Challenge, the site is updated every few days so check it out:
http://software.intel.com/en-us/ultimatecoder2
First, Eat
It's one of those 4PM start style days, so my tea was lunch and so forth. I think I will grab a bite to eat before finishing the light mapping prototype as I have the time at only 12:35AM. I don't anticipate the two tasks for today to be tremendously difficult, just want it in there before moving on.
02:56AM : Now That's Fast
I added the object mover so the light map would respond to a moved object, and I just light mapped the object on it's own and it came back at just 65ms for the light mapping process. It's really weird seeing what is effectively light map baking at real-time speeds - spooky!
I can't stop there of course, the object inevitably casts a shadow from any light sources near it, so it will influence lots of other objects, but I wanted to share that revelation.
04:14AM : Sorted
I now have both 'light moving' and 'object moving' calculations for real time light mapping, which means when you are editing, and you move an entity or light, it triggers the system to start light mapping while you carry on working. Only when you stop moving things for more than a few seconds will the new light mapping render manifest itself. Here is a quick video of the latest prototype with first object moving, then the light.
Signing Off
The next step will be to go back to the editor and organise the object system to use our new per-object scene building system, with the new light mapping at the heart of it. The theory also is that even as you start playing the test level, the light mapping is STILL working, so you really don't have to wait at all for any intense light mapping work to finish, you can drop in, test some entity or logic, then back out and carry on editing, all the while the light mapping is working hard trying to melt all the cores in your PC.
Oh yes boys and girls, I had distractions coming out my ears, but I have managed to box them all off and start my cascade of uploads before midnight. This means I can gracefully slide back into the Reloaded world and get the objects moving about in the real time light mapper.
Moving Objects
I want to test two things this evening, getting objects to update their lighting when you move them. I will start with uniform size objects. The light detection must ultimately handle scales of magnitude the original did not have to deal with but we will get to that later. For example, what if someone imports a whole building with rooms and details in one go, how or should I have that? Great question. Answer unknown.
An Aside : Ultimate Coder Latest
Great feedback from the judges of the Ultimate Coder Challenge so far, who seem to like my 'rough as sawdust' 3D rendering of the depth data. I have some new art come in for the project, and I am very keen to wrap up the functional core of the app by week four so that it can be used as an actual communication program. Grafting third party audio conferencing code into an existing app is never easy, but I feel more confident doing that than writing my own from zero. For more information on the Ultimate Coder Challenge, the site is updated every few days so check it out:
http://software.intel.com/en-us/ultimatecoder2
First, Eat
It's one of those 4PM start style days, so my tea was lunch and so forth. I think I will grab a bite to eat before finishing the light mapping prototype as I have the time at only 12:35AM. I don't anticipate the two tasks for today to be tremendously difficult, just want it in there before moving on.
02:56AM : Now That's Fast
I added the object mover so the light map would respond to a moved object, and I just light mapped the object on it's own and it came back at just 65ms for the light mapping process. It's really weird seeing what is effectively light map baking at real-time speeds - spooky!
I can't stop there of course, the object inevitably casts a shadow from any light sources near it, so it will influence lots of other objects, but I wanted to share that revelation.
04:14AM : Sorted
I now have both 'light moving' and 'object moving' calculations for real time light mapping, which means when you are editing, and you move an entity or light, it triggers the system to start light mapping while you carry on working. Only when you stop moving things for more than a few seconds will the new light mapping render manifest itself. Here is a quick video of the latest prototype with first object moving, then the light.
Signing Off
The next step will be to go back to the editor and organise the object system to use our new per-object scene building system, with the new light mapping at the heart of it. The theory also is that even as you start playing the test level, the light mapping is STILL working, so you really don't have to wait at all for any intense light mapping work to finish, you can drop in, test some entity or logic, then back out and carry on editing, all the while the light mapping is working hard trying to melt all the cores in your PC.
Tuesday, 5 March 2013
Tuesday Tractor Beam
That's No Moon
As fate would command, I am being inexorably pulled back into the AGK world with enough 'little jobs' to pretty much fill the day with. New tweaks and niggles that makes sense for me to work on than to pass it on. The great news is that the fresh week of bug reports are dramatically reduced to the point where it really does feel like ticking the last few boxes before the project can fly. Fear not campers, I shall not abandon the people of Reloaded, and once the clock strikes AM, I stop where I am and don my FPSC gear.
More Lovely Artwork
To keep you happy, I have managed to wrestle another great video off Mark to show you, this time it is something you might find as you wonder through your newly moulded and grassy terrain. A majestic waterfall.
What wonders will you hide behind this great looking edifice? A secret passage, lost treasure or the bones of an ancient water God who will emerge to do battle and counteract your flame thrower powers!
3:35AM : Ah Well
As it happens, the coding gods decreed that I should bury myself in tweaks and bugs of the AGK project for many hours after my prescribed cut-off point. The good news is that I have three new builds ready for testing out in the ether, which will buy me another full day Wednesday on Reloaded.
Signing Off
Unless apps starts exploding, I will make it a point to disregard any AGK distractions once I wake up later today, as I really was on a roll with the real-time light mapping and want to get it into the editor as soon as possible. Until that faithful day, I bid thee well.
As fate would command, I am being inexorably pulled back into the AGK world with enough 'little jobs' to pretty much fill the day with. New tweaks and niggles that makes sense for me to work on than to pass it on. The great news is that the fresh week of bug reports are dramatically reduced to the point where it really does feel like ticking the last few boxes before the project can fly. Fear not campers, I shall not abandon the people of Reloaded, and once the clock strikes AM, I stop where I am and don my FPSC gear.
More Lovely Artwork
To keep you happy, I have managed to wrestle another great video off Mark to show you, this time it is something you might find as you wonder through your newly moulded and grassy terrain. A majestic waterfall.
What wonders will you hide behind this great looking edifice? A secret passage, lost treasure or the bones of an ancient water God who will emerge to do battle and counteract your flame thrower powers!
3:35AM : Ah Well
As it happens, the coding gods decreed that I should bury myself in tweaks and bugs of the AGK project for many hours after my prescribed cut-off point. The good news is that I have three new builds ready for testing out in the ether, which will buy me another full day Wednesday on Reloaded.
Signing Off
Unless apps starts exploding, I will make it a point to disregard any AGK distractions once I wake up later today, as I really was on a roll with the real-time light mapping and want to get it into the editor as soon as possible. Until that faithful day, I bid thee well.
Monday, 4 March 2013
Monday Celebration
Lee Reloads!
That's right, this is the first actual day where I have only one project (well, two) left on my plate and it's all Reloaded baby!
I am tingling at the thought of immersing myself in the land of Reloaded and not coming up for air until I really have to. My amazing artist has been producing art since the start of this year and moreover, the ideas he has to enhance the FPSC world are contagious!
I am sure Mark would not mind me sharing his latest experiment, this one launching way ahead into the world of terrain. As you can see we're going to change the face of Arrakis with this one!
Not to get ahead of ourselves, the current mission is to get the editor up to speed quickly. My pro-brain is screaming at me to catch up and my fun-brain is excited about working in full-on 3D again, so both sides are ready to go.
Perceptually Challenged
I also found 26 spare hours over the weekend to advance my Perceptual prototype for the Intel Ultimate Coder Challenge which turned out quite well all told. Getting some nice comments already from the 'Internets'. For more juicy details on this, check out my sister blog:
http://ultimatecoderchallenge.blogspot.co.uk
I don't like the blow my own tuba, but I've been getting some very nice comments from this latest edition of the blog, so I might be onto something with this little app idea. My mission for next week is to outdo week three!
Reloaded Diary Day
Such is my fancy, I have decided to do another 'day in the life' for this evening to track the highs and lows of my first 'proper' day back in the Reloaded camp. The last time we saw it, we had the editor tamed into jumping directly into our 3D world at the press of a button. No more build game. The downside of course is the level looks awful and it's not very nice too. I want it to look much nicer and for that we need real-time light mapping running in the editor while we paint levels. Once this is done, dropping into the world at any time will look much less un-nice and we'll have progress. Before that of course we need to throw away the old object management system which had a finite limit for editor based objects (which explain the 'shroud' some of you might remember from FPSC of old) and replace it with one that produces as many objects as we need (and I am talking millions here). Rather than devise ingenious ways to combine data into highly efficient meshes and what-not, I am just going to dump the whole lot out as DBP objects and let the future occlusion system handle what gets drawn. It also means maximum flexibility during the edit/play process which might lead to new and exciting features as yet undreamed of. Only when you press 'BUILD FOR REAL' will it turn the objects into highly optimised and efficient mesh groups, at which time you won't mind the wait as you're building the final standalone executable and you want THAT as efficient and small as possible.
11:50PM : So that's where we are now, and where we're going in the next 24 hours. For the action as it happens, read on. I have started my background music for the evening, which I think you will approve:
http://www.youtube.com/watch?v=_fj5pIpjS14
12:30PM : I often pop in and out of my emails so they don't gang up on me, and as it's FPSC related I wanted to note that there will be a new BETA16 of V120 up on the forums soon and also that I have just completed the installer to a new FPSC model pack which is wicked! Lots of WW2 graphics, including vehicles and tanks, and some pre-created level for you to run around in. The author did a great job here and I think you will like the pack when we release it later this month.
2:35AM : Okay, so I rescued the DBP DarkLIGHTS source code from another part of my archive and dropped it into VS2010 to get it up and running again. This will be the module from which I will create my real-time lighting system. I created a new quick prototype so I could focus on the ability of the module to light map an object that was already light mapped. The reason for this is that I could then re-run the current light mapper on objects without having to do the complicated double buffer hide/show trick I did in the P001 prototype. It turned out this was remarkably easy to do, and my simple demo was able to light map the same object over and over again. Hurray!
I then created a grid of 1600 objects and placed the light above them, which took 32 seconds to light map each time. I activated multi-core in the module and this dropped to 15 seconds. I lowered the quality a little which helped some more. I then added code which ensured the light mapper would only deal with objects that where within the range of the light rather than the whole scene. This was a huge feature as it brought the time down to 1.8 seconds. Not bad from 32 seconds wait to less than 2 seconds!
Naturally there are some issues like the OLD objects which where lit before the light was moved still use the old light map information, so I will have to extend the process to include re-lighting them, and I will also need to free up light map textures which the new process replaces. I tried a quick and dirty release on them, but of course in threaded mode other objects may still be using that texture so I commented it out for now as the member leak was not huge. The grand solution is to collect all the dead references and free them at once when LM Reset is called. This last command is only needed to free up the resources used during the light map process, and ensures each light map event is clean and does not carry garbage from the previous sessions.
That's right, this is the first actual day where I have only one project (well, two) left on my plate and it's all Reloaded baby!
I am tingling at the thought of immersing myself in the land of Reloaded and not coming up for air until I really have to. My amazing artist has been producing art since the start of this year and moreover, the ideas he has to enhance the FPSC world are contagious!
I am sure Mark would not mind me sharing his latest experiment, this one launching way ahead into the world of terrain. As you can see we're going to change the face of Arrakis with this one!
Not to get ahead of ourselves, the current mission is to get the editor up to speed quickly. My pro-brain is screaming at me to catch up and my fun-brain is excited about working in full-on 3D again, so both sides are ready to go.
Perceptually Challenged
I also found 26 spare hours over the weekend to advance my Perceptual prototype for the Intel Ultimate Coder Challenge which turned out quite well all told. Getting some nice comments already from the 'Internets'. For more juicy details on this, check out my sister blog:
http://ultimatecoderchallenge.blogspot.co.uk
I don't like the blow my own tuba, but I've been getting some very nice comments from this latest edition of the blog, so I might be onto something with this little app idea. My mission for next week is to outdo week three!
Reloaded Diary Day
Such is my fancy, I have decided to do another 'day in the life' for this evening to track the highs and lows of my first 'proper' day back in the Reloaded camp. The last time we saw it, we had the editor tamed into jumping directly into our 3D world at the press of a button. No more build game. The downside of course is the level looks awful and it's not very nice too. I want it to look much nicer and for that we need real-time light mapping running in the editor while we paint levels. Once this is done, dropping into the world at any time will look much less un-nice and we'll have progress. Before that of course we need to throw away the old object management system which had a finite limit for editor based objects (which explain the 'shroud' some of you might remember from FPSC of old) and replace it with one that produces as many objects as we need (and I am talking millions here). Rather than devise ingenious ways to combine data into highly efficient meshes and what-not, I am just going to dump the whole lot out as DBP objects and let the future occlusion system handle what gets drawn. It also means maximum flexibility during the edit/play process which might lead to new and exciting features as yet undreamed of. Only when you press 'BUILD FOR REAL' will it turn the objects into highly optimised and efficient mesh groups, at which time you won't mind the wait as you're building the final standalone executable and you want THAT as efficient and small as possible.
11:50PM : So that's where we are now, and where we're going in the next 24 hours. For the action as it happens, read on. I have started my background music for the evening, which I think you will approve:
http://www.youtube.com/watch?v=_fj5pIpjS14
12:30PM : I often pop in and out of my emails so they don't gang up on me, and as it's FPSC related I wanted to note that there will be a new BETA16 of V120 up on the forums soon and also that I have just completed the installer to a new FPSC model pack which is wicked! Lots of WW2 graphics, including vehicles and tanks, and some pre-created level for you to run around in. The author did a great job here and I think you will like the pack when we release it later this month.
2:35AM : Okay, so I rescued the DBP DarkLIGHTS source code from another part of my archive and dropped it into VS2010 to get it up and running again. This will be the module from which I will create my real-time lighting system. I created a new quick prototype so I could focus on the ability of the module to light map an object that was already light mapped. The reason for this is that I could then re-run the current light mapper on objects without having to do the complicated double buffer hide/show trick I did in the P001 prototype. It turned out this was remarkably easy to do, and my simple demo was able to light map the same object over and over again. Hurray!
I then created a grid of 1600 objects and placed the light above them, which took 32 seconds to light map each time. I activated multi-core in the module and this dropped to 15 seconds. I lowered the quality a little which helped some more. I then added code which ensured the light mapper would only deal with objects that where within the range of the light rather than the whole scene. This was a huge feature as it brought the time down to 1.8 seconds. Not bad from 32 seconds wait to less than 2 seconds!
Naturally there are some issues like the OLD objects which where lit before the light was moved still use the old light map information, so I will have to extend the process to include re-lighting them, and I will also need to free up light map textures which the new process replaces. I tried a quick and dirty release on them, but of course in threaded mode other objects may still be using that texture so I commented it out for now as the member leak was not huge. The grand solution is to collect all the dead references and free them at once when LM Reset is called. This last command is only needed to free up the resources used during the light map process, and ensures each light map event is clean and does not carry garbage from the previous sessions.
The reason for the pretty red backdrop and nice font is a policy decision we made at a recent strategy meeting. That was, to avoid showing you what I like to term 'programmer art demos', which might cause offence to some viewers. It was decided that if we come from a position of working high end materials and artwork in earlier in the project, it will improve the overall project and create a culture of quality in TGC Reloaded lab.
My plan now is to add another light, sort out a refresh for the left-over objects and see what I can do to clean up the code and anticipate what else this system will need before dropping it into my editor. I am also concious of the fact I need to be up in the AM on Tuesday for a delivery, and I also want to eat something and perhaps watch half an hour of 'Mitchell and Webb' which I have rediscovered on Netflix.
03:49 : Just finished the P003 prototype, and achieved everything I wanted relatively painlessly. The system now restores the light maps of objects no longer under the influence of the edited light, it can handle multiple lights in the scene and the icing on the cake, it will only include other lights for those objects touched by the process, rather than ALL lights. These are all the ingredients I needed from my real time light mapping system, and it means I can eventually drop in lights willy nilly, move them about, change their colour and range, and the scene will update objects that need to be changed, leaving the majority of the scene unaffected.
Above is a small video of the technique. Before I leave P003 prototype, I think Tuesday would be a good opportunity to add in some objects to move about, so it works with objects as well as light entities. I will also import some LARGE meshes too, to see how the light map handles imported geometry which is a new feature of the Reloaded product.
Signing Off
I am glad to be back on Reloaded full time again. My AGK apps where definitely worth doing and represent apps that have a very good chance of charting really high and staying there, which will be great ambassadors for our AGK technology moving forward. Hopefully I will be able to reveal what they are soon, and perhaps as soon as March.
So in closing, thanks for your patience last week and the weeks before that, and baring further distractions I have now made my new home in the land of Reloaded and shall begin building immediately.
Friday, 1 March 2013
Friday Night Off
Off The Chain
That's right, after a crunch week, it's time to stop crunching. Just have to build some final RTF style additions, add In App Purchase Restore, test on three devices, upload them all, test them while they upload and make sure nothing silly crept in. Apart from all that, I am off the chain.
An Impromptu Gathering
During the week I found an hour to exchange banter with the crew of the Ultimate Coder Challenge, and it seems we're all on the same page as to where we need to be and the potential of the technology in front of us. Bob, of Intel, has kindly edited out the best bits and made a video meddle.
A long way to go, but I think we're all excited about the journey. More on this next Monday!
Signing Off
And that's all folks! With a little fortune, I will be in the full sized Reloaded seat on Monday. Of course, I am a realist and the universe will always find things for me to do on projects I call 'finished ;)
That's right, after a crunch week, it's time to stop crunching. Just have to build some final RTF style additions, add In App Purchase Restore, test on three devices, upload them all, test them while they upload and make sure nothing silly crept in. Apart from all that, I am off the chain.
An Impromptu Gathering
During the week I found an hour to exchange banter with the crew of the Ultimate Coder Challenge, and it seems we're all on the same page as to where we need to be and the potential of the technology in front of us. Bob, of Intel, has kindly edited out the best bits and made a video meddle.
A long way to go, but I think we're all excited about the journey. More on this next Monday!
Signing Off
And that's all folks! With a little fortune, I will be in the full sized Reloaded seat on Monday. Of course, I am a realist and the universe will always find things for me to do on projects I call 'finished ;)
Subscribe to:
Posts (Atom)

