Jump to content

Marleys Ghost

Members
  • Posts

    2,157
  • Joined

  • Last visited

Blog Entries posted by Marleys Ghost

  1. Marleys Ghost
    To prevent non Leadwerks Engine specific/Related entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific/Related entries.
     
     
     
     
    Leadwerks Related Blog Entry.
    Leadwerks 3.2 Indie : Animated Character Workflow Test
  2. Marleys Ghost
    To prevent non Leadwerks Engine specific/Related entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific/Related entries.
     
     
     
    Leadwerks Related Blog Entry.
    Leadwerks 3.2 Indie : I hate waiting in for deliveries! [HD]
  3. Marleys Ghost
    To prevent non Leadwerks Engine specific/Related entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific/Related entries.
     
     
     
     
    Leadwerks Related Blog Entry.
    Leadwerks 3.2 Indie : Proof Of Concepts & Several Tests.
  4. Marleys Ghost
    I thought I'd spend a little more time on this integration, using the laptop whilst watching the Olympics. The next phase was to automate the routines for NPC update and compacting the code routines. Ultimately, the idea is that after the scene is loaded, it will be parsed and flagged Dark AI objects, NPC's, Paths and Zones will be set up automatically via information taken from the relative lua scripts. Paths and Zones will be later, collision objects are done, so I was working on how to go about NPC's using this method. As some may have noticed I am using the FPSC Model Pack 53 characters.
     
     



     
     
    I converted about 5 or 6 characters to Leadwerks format and all the weapons for this exercise. I will eventually convert them all but I hand "prune" the bones of the rig and that takes longer than I want to spend at any one time on this side project. The FSM is still very basic but the first goal was to derive a current Animation state with each of those states having sub-FSM's to dictate the current behaviour based on the previous state and internal and external inputs. The framework is in place for the animation state which is derived by performing Boolean logic on returned values and strings from the Dark AI runtime and some stubs are in place nested inside for some basic behavioural sub-FSM's. First though I want to able to set up the scene and then place all the Dark AI objects, NPC's, Paths and Zones directly in the editor and then use the load routines to set all that up in an automagic way inside the application. The collisional objects were easy and are done with some simple tick box flagging functionality added to their property scripts. The NPC's a little more in depth , due mainly to the large amount of usable settings! lol. But I wanted to be able to place the model and then assign it some basic attributes to be read on load, this included what weapon to attach.
     
     



     
     



     
     



     
     
    So that was the basic NPC property script setup (wasn't that painful anyway). So using the test scene from Leadwerks 2.5x + DarkBasic's Dark AI [Part 2], and placing a few enemies and some friendly's to look after the player, this is the result of the current stage reached in the integration.
     
     




  5. Marleys Ghost
    I am currently working with EKI One, working through its format and structure, getting to grips with the lua behavioural scripting side and trying to brush up on my c++ skills, actually brushing up on my c++ skills is an overstatement as I don't actually have any to brush up! .. lol, I have also been going through my Blitzmax code and trying to compile all the game mechanic functions and methods into a single .mod, trying to keep things tidy. Whilst going through my **** drive, I mean, my well organised storage drive, I found some DarkBasic/DarkGDK stuff, which included the Dark AI library. I have never really used DarkGDK, although I did start out a few years back with DarkBasic. So I wondered (as you do), could it be utilised in LE2.5? Having never used Dark AI (which came in a bundle, that I have never used either, but it was a bargain lol) I knew that R.T.F.M. would be in order. If it relied solely on DBobjects and inherent DarkBasic functionality then probably not. I spent half an hour looking through the commands, and an hour later had it working in an LE context. So to answer the question, it seems you can.
     



     
    I'd have upped a better quality image but I am told "You can upload up to 7.74K of files "
     
     




     
     
    Its all a work in progress, and probably will remain that way as its certainly nowhere near the solution that EKI One is, but as an exercise it wasn't a bad use of a few hours.
     
    I will post a demo in the showcase later for those interested.
     
    EDIT : Demo posted here : http://www.leadwerks...-ai/#entry45564
  6. Marleys Ghost
    After the first hour and a half I spent on this little exercise, I followed it up with another couple of hours. The basic integration now has an animation FSM. All still pretty crude and basic but a template to build on at some later date. The NPC's Entity script controls the models animation routines and gun attachment, the c++ application interfaces with the Dark AI library, and then uses messaging to communicate with the NPC Entity via lua script. Again this was just more experimentation and practice for me using c++ to build up techniques that will be beneficial later. Special thanks to Pixel Perfect for pointing out the error in my ways with regard to text strings in c++. Anyway this is the result, I just threw in some values for speed and animation blending off the top of my head just to test the FSM functionality, it will need those tweaking, thats for sure.
     




     
     
    I'd have posted some pictures, but I seem to only have 7k of space left in the blog section, not sure why, as it was over 200MB last time I did an entry here and not just a link to an entry on my off site blog.
  7. Marleys Ghost
    To prevent non Leadwerks Engine specific/Related entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific/Related entries.
     
     
    Leadwerks Related Blog Entry.
     
     
     
    Meet The Flockers.
  8. Marleys Ghost
    To prevent non Leadwerks Engine specific/Related entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific/Related entries.
     
     
    Leadwerks Related Blog Entry.
     
     
     
    Revamping A Modular Assets Idea.
  9. Marleys Ghost
    To prevent non Leadwerks Engine specific entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific entries.
     
     
    Leadwerks Specific Blog Entry.
     
     
    Quick 3rd Person View Character Test.
  10. Marleys Ghost
    To prevent non Leadwerks Engine specific entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific entries.
     
     
    Leadwerks Specific Blog Entry.
     
     
    Colourful Behaviour.
  11. Marleys Ghost
    To prevent non Leadwerks Engine specific entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific entries.
     
     
    Leadwerks Specific Blog Entry.
     
     
    AI, Waypoints, A* Pathfinding, Lua & Leadwerks.
  12. Marleys Ghost
    To prevent non Leadwerks Engine specific entries from my Blog being automatically published here via the Blog Feed, I have removed that functionality, and will simply add a new entry title and link here for all Leadwerks Engine specific entries.
     
     
    Leadwerks Specific Blog Entry.
     
     
    3rd Person Movement & Animation Control Rig Test
  13. Marleys Ghost
    Last September I mused about the concept of what I call Ambient NPC populations, I spent a lot of time researching (read playing) certain games that have what I call an ambient NPC population. This is specifically those NPC's that reside in the background and generally have no real or very limited interaction with the player, but may have some limited interaction with each other or the surroundings.
     
    I felt a new approach would be needed to sort through what was and was not required to achieve a similar environment in LE, I decided first to create the environment and to then set about, at different levels, adding in the ambient NPC population, the thought behind this was it would be easier to visualise what I wanted to see taking place, if it took place ... in place ... not the best description but I hope you will understand what I mean.
     
    So the first step is to create a small village environment and then to start adding in the population.
     
    Test/concept scene (test application screenshot): The Village of Swanwyck
     

     
    The important thing with this small test village level will be the roads/paths, as the first tier of the population will basically be simple "walkers".
     
    Even now, I am still formulating the different types required from "walkers" to simple "static actors" and how to implement some of those types to have different interaction levels. I will be utilising several different methods to allow the NPC's to navigate Swanwyck, from a simple "follow node" approach to predefined path data and on the fly A* navigation.
     
    I did have some very good results with A* pathfinding already, which can be read about here:
     
    A* Pathfinding Using Blitzmax And Leadwerks Engine
     
    Hopefully I can find the time to get "Swanwyck" up to a usable standard, and get the first tier of the "walking" population up and running.
  14. Marleys Ghost
    With the basic texture workflow pretty much sorted for the modular level design (see here), I have turned my attention to getting a scale I am happy with. When this is done then after each section is modelled and then UV mapped it should be just a simple case of converting to .gmf format (famous last words). Scaling seems to be an issue that crops up across all the engines I use. But truthfully it matters not what others scale to, but that the relative scaling used in a scene is consistent for all static and animated meshes from props to scene to characters. LE has a scale of 1 unit is about 1m, I simply use 1 unit as 1m, therefore a character needing to be 6 foot tall would simply be a "metric" 6 foot.. or 1.8 units. This is the rule of thumb I use for all scenes and corresponding code. But sometimes its also good to check how it looks by eye. In a 3rd person situation its not just the scale of the level and the characters but having to remember the camera offset and how this would be effected. I normally do two tests, a simple static scene with characters and props placed to get a simple overall picture of the scaling.
     
     

     
     
    And I like to knock up a quick app with a basic 3rd person collision cam and have a quick walk through (HD available):
     
     


     
     
    So far I am happy with the results which means when time permits I can get on with creating the rest of the sections/rooms ect. I have also checked the scaling to make sure I can easily "block out" the level and run it through my pathfinding mapdata generator app which I had some success with in earlier tests of A* pathfinding (see here).
     
     
    Source
  15. Marleys Ghost
    Last April, I blogged about the news that Crytek might be releasing a free version of the CryEngine, much in the same way that Epic did with UDK and the Unreal 3 engine and also Unity licensing the indie version of their engine as free. Well, it seems that this will happen with CryEngine 3.
     
    According to Crytek co-founder Anvi Yerli, "The barriers for entry will be very low, and perhaps [it will be distributed] for free." Details and a release date for this CryEngine 3 Lite SDK have yet to be announced. It seems resonable to speculate that such a release could be similar to what Epic Games did when it released its UDK tools in 2009.
     
    Full Article Here
     
    Sean Tracy also mentions this at the end of an interview recorded at GDC 11.
     


     
    It is turning out to be an interesting year for indie developers.
     
    Source
  16. Marleys Ghost
    Working on two principles K.I.S.S. (keep it simple stupid!) and more for less.
     
    I spent a lot of time researching (read playing) certain games that have what I call an ambient NPC population. This is specifically those NPC's that reside in the background and generally have no real or very limited interaction with the player. Two such areas of research <coff> included Assassins Creed and Fable 2. Although both of these games have a far more complex general NPC population than what I am setting out to create, but the "research" was most enjoyable.
     
    First Step:
     
    Machine Intelligence "Kinda Almost":
     
    Machine Intelligence "Kinda Almost", simply gives an illusion that there is intelligence at work but there is not, sort of like, the lights are on but no ones home. There are several subsets to this group but the obvious one is simple animation. Also this can include proximity reaction behaviour, a posh and complicated way of saying when the player is near, stop what you are doing, and do this instead. But that's as far as interaction goes for those NPC's in this group. This simple ambient NPC type could also use lua scripts, loaded with the level and be left to attend to themselves.
     
    For example, just two chaps having a chat:
     

     
    Having a chat is basically all they do, its simple per character animation's controlled by lua scripts. The purple block volume is the walkable area that would be utilised by more "advanced" ambient NPC's, typically those that move about, particularly those that would use Pre-Loaded and Pre Calculated path routes for this particular level. The purple block volumes are simply required by the application I wrote to generate the route node data for the pathfinding tools I created and have demonstrated here. Not that this is a level just something thrown together for testing but I think I should unarchive some of my GMF format models and put together a small town/Village for testing this, rather than another simple "BlocksVille".
     
    There are obvious limitations to consider with this approach to the first tier of the Ambient NPC population for a "busy" town/village. The NPC's need animation's, most come with maybe 15 animation's (if you're lucky). My intention is to surmount this by adding animation's to them, primarily Mo-Caps. This will require a little work but will be the bedrock for the construction of this "tier". There are some very good applications on the market for achieving this. For me I prefer Fragmotion, there is also a free alternative that I also use on occasion called Pacemaker. But don't be fooled though, none of these applications will do it all "for you", you will need to skin the mesh to the correct rig for the plethora of free to use Mo-Caps, or indeed ones that can be purchased. It will all depend on budget and or requirement.
     
    This is still only a very basic outline for this "packing" stage, it will still require a lot of work but my goal is to get the impact of it at runtime to an almost negligible effect even when including proximity reaction behaviour.
  17. Marleys Ghost
    Following on from:
     
    On The Right Path, A* Pathfinding In Leadwerks.
     
    The Way Forward ... Making Blitzmax Trax ...
     
    I decided to give the testing a few more hours. First off I wanted to create a new NPC Type which would have its own control flags and most importantly its own path storage buffer.
     
    After a little thinking (a little thinking is what I excel at lol) and a few hours of coding and tweaking, I managed to get 32 new NPC Types all pathfinding their individual way around "BlocksVille".
     


     
    For those interested I will try and get a demo.exe up later onto the showcase thread:
     
    Pathfinding With A*
     
     
    Demo now added: Hide And Seek Demo 2
  18. Marleys Ghost
    Following on from "On The Right Path, A* Pathfinding In Leadwerks" I thought before I archive the code, I'd have a little "dabble" with a basic function to get an NPC reading the path data and then following it to the "target" I had a couple of ideas on how to do this but as time for playing in leadwerks was running out I opted for a basic idea.
     
    1. Target Position Selected
    2. Path from NPC to selection calculated.
    3. Path transfered to a temp storage array for that particular NPC
    4. An NPC Pilot reads that data.
    5. NPC follows the pilot.
     
    Think of the "pilot" as the plastic stick thing on the underside of a scaletrix car .. it follows the groove in the track and the car follows right along. This was the quickest and dirtiest method but solved a variety of issues in one. Plus I just wanted to get the NPC moving and the sands of time were running out.
     
    So an hour later and I have not only the NPC following the generated path but the path is updated with a repositioning of the target and the pilot takes the NPC off onto the new track.
     
     

     
    This is all still quick and dirty, when I can remember what the code does and does not need, I will up a small demo.exe to the thread Pathfinding With A*
     
    EDIT: I have uploaded a demo.exe here : Hide And Seek Demo
  19. Marleys Ghost
    Well, it has been a while since I made a blog entry, let alone done any work in LE. But I do keep an eye on the forum and Leadwerks in between Daily life and working on my project(s).
     
    I have also been going through my Blitzmax code archive, where I stored all my Blitmax/LE projects and code snippets (finished and not completed). One idea I had been playing with before, was basic NPC AI. I had some small success with some Bugs using autonomous logic.
     
    See Here
     
    In my "treasure trove" of unfinished and messy development code I found what was going to be the next step (for me) with AI functionality. The dreaded "pathfinding". I have read that Naughty Alien said he will be doing a two part tutorial on this and I am looking forward to that, having followed his work with Hidden Dawn I expect the tutorial to be top notch. But I wanted to get to grips with the in's and out's myself. So I started with the basics. I spent some time looking for code snippets and A* lib's in any language that had them to see of I could follow along what was being done ... Not a good place to start, in the end I spent some time reading "A* Pathfinding for Beginners", very helpful.I decided it would be best to start with a "2D" approach and maybe use nodes. Most 2D implementations use a grid based on the X and Y co-ordinates of the screen and tiles to represent an "unwalkable" tile. So I thought I would translate this approach to a 128 x 128 flat terrain with some primitive models to define the "unwalkable tiles". As this was a time limited "side-track" in LE from my other projects, it was all going to have to be quick and dirty. I wrote an app to calculate which "tiles" of the 128 x 128 terrain did not have an obstruction and then squirted this data out to a text file to be read into another app as a 2D array. The map data loads in a few milliseconds so this eliminated having to wait for the same data to be generated by the application I wanted to use to try and get the pathfinding working. One problem I did encounter was that I ended up trying to reconcile three different centre of origins for the co-ordinates. The map data had 0,0 at the top left, the terrain of course has 0,0,0 in the centre and my maths managed to get the A* to read 0,0 at the bottom left, after some profanity meditation I used some quick and dirty and hastily constructed math functions to bring them all into focus, thus as per usual the dev. code was a complete mess, atleast on that score I am consistent lol
     
     

     
     
    This version of pathfinding is very limited, mainly due to the way I created the node info. But for a first attempt I was quite happy.
     
    I have uploaded a demo App to the showcase , the picking can be a little temperamental and sometimes the quickest path is not always found and some "sightseeing" seems to find its way into the route. But on the whole I think it is definitely a platform on which to build.
  20. Marleys Ghost
    Currently I am taking a small break from actual coding right now, give or take the odd few hours now and then I thought it best to start construction of my testing level, or at least get the main parts of it built as the testing scene/areas are blueprints for a project I have had in mind for a while, basically some nasty persons do some nasty things which in turn brings about a whole lot of nasty and the player is the antidote to nasty in general. Yeah, not much of "game description" but radically indepth compared to one by our very own Gordon ... but as usual, I start on one thing and somehow get sidetracked .. not my fault though, honest, it was Epson's! They made my printer, and it got clogged, and if I had not spent 15 mins cleaning it out with A4 paper I'd have never have thought, hey look .. grunge textures. Well, I am no artist that's for sure, and I hate texturing, but I thought might as well make a start. So after the ink had dried I scanned them in and spent a few hours working on a connecting corridor section, heres a few screenshots of how it has progressed so far. Still very much a WIP, but slowly coming together.
     






  21. Marleys Ghost
    I started out this morning looking to update a test scene that I used for some first person tests I did in C++ after only having the engine for a few weeks and coding in C++ for even less time. Well, that was the plan. I managed to redesign the layout using 3DWS, and threw a few Dexsoft crates and Barrels in. The plan was then to work on textures but as usual after about an hour I had set sail on the good ship "unrelated" for a voyage across the bay of tangents. Don't you just hate it when that happens?
     
    The scene under modification was for my FPS prototype code in Blitzmax, whilst sorting through my code "archives" I came across my basic code for NPC creation with basic Seek : Pursue : Attack Behaviour (an NPC Type using methods which I wrote about here). Integrating it into my FPS prototype was easy enough and an hour and a few more dozen tweaking "tangents" later I had it all working quite well. The video basically shows 3 "settings" for NPC toughness.
     


     
    Best viewed in HD
     
    Player Control was a bit "twitchy" as I have yet to tweak the Xbox 360 gamepad functions for smoother action, also the screen capture lag did not help
     
    It all still needs a lot of work but I was happy with the results thus far.
     
    I guess tomorrow I will do what I was intending to do today ... or maybe not
  22. Marleys Ghost
    It seems Crytek maybe planning a free CryEngine release.
     
    "The developer behind Crysis 2 and the engine behind it, CryEngine 3, has plans to release a free version of their game engine that will be "up to speed" with CryEngine 3. This should help Crytek to further compete with Epic Games and Unity, both of which offer free versions of their respective game engines, Unreal Engine 3 and Unity. "
     
    http://www.1up.com/do/newsStory?cId=3178763
     
     
    I suppose it was only a matter of time considering the route both Unity3D and Epic have taken. But will be worth keeping an eye on.
  23. Marleys Ghost
    I started out yesterday morning looking to improve my understanding of types and methods in Blitzmax, and figure out how to use object-oriented programming (OOP) with it. I have only been programming in Blitzmax since the beginning of December last year, and only programming with C++ since the middle of October last year and The Leadwerks Engine since the beginning of October last year. So I am still on a very high learning curve in this regard.
     
    As usual, for me, I started out on one thing and ended up on another. I found a link on the old forum for a small tutorial on Object-Oriented Programming in BlitzMax By John Judnich. But by the time I had got to page 6 of 21, I was already off on a tangent and found myself working on a simple NPC type containing a creation method and simple seek behaviour method, after all I was now an expert after only 6 pages lol.
     
    I had already been "playing" around with some simple AI which showed vague promise, for an Idea for a small project.
     

     
    An hour and a few more "tangents" later I had managed to restructure the basic code for NPC creation and basic seek behaviour into an NPC Type using methods. This now allowed the easy creation of an NPC, in this case a rather nifty bug, created by ‘Psionic’, with its walking animation handled by its Lua script on load.
     


     
    The test scenes buildings are by GIMPY73 and the Freebeast model is by ‘Psionic’.
     


     
    Updated:
    Test of Basic NPC creation : Seek : Pursue : Attack Behaviour using OOP in Blitzmax running the Leadwerks Engine. Extra flags added for behaviour to the NPC Type with extra methods to communicate with the NPC model's Lua scripts for animation control. Although I did manage to hardcode a typo in the "Pursuit" flag.
     
    Of course this basic AI is nothing like the calibre of AI work being done by Chris Paulson or Pixel Perfect, but I had to start somewhere and this seemed the best place, so far I am pleased with my meagre results.
     
    I recall Josh showing interest in integrating Recast into the editor, this would truly be a useful addition. Leadwerks could really use an integrated AI starting point. Thats not a complaint just an observation. Recast integrated into the engine and editor could be that starting point.
×
×
  • Create New...