- Details
- Category: Blog
- By Stuart Mathews
- Hits: 2580
This weekend I did a bit of everything which was a good well-rounded approach. I did some reading of "Introduction to 3d Game Programming with DirectX" which brings me about up to the same point as "3D Game Programming using DirectX10 and OpenGL" in terms of the subject matter covered - mostly covered the cartesian maths including matrices, vectors and linear transformations and then the 3D rendering pipeline including the basics of creating a DirectX application along with creating a basic Win32 App to house it in.
So, I'm pretty much covered in terms of the fundamentals and moving forward are more advanced and practical matters like the actual rendering including shading and other advanced methods. It's a good place to be, having covered most of the theoretical aspects allows me to start thinking about applying them. It also represents a good pausing point while I prepare for my upcoming exam on Digital Forensics.
With respects to the Digital forensics, I spent a little bit of time revising some of the fundamental from the notes I've taken throughout the year. I also had a look at a past paper to give me an idea of what kinds of things I'll need to focus on. I've yet to revise one of the bigger topics in the course which is law. Thankfully, I enjoyed studying law and made a good set of notes. Now, I just need to focus on the outline and then detail the revision so I can be articulate in the exams.
I'm not too concerned about the technical aspects of the course now having done a full practical investigation, though like the law part, the theory needs to be accounted for and as such, I'll be including all the relevant material in my revision strategy - which I'm probably going to really enjoy!
Apart from that, I have my mock-cross-examination interview coming up in about a week or so along with my induction to my game programming course so those are two things to look forward to 1) because I've not done a live interview before but I'm confident that I'll be fine and 2) I'll be starting my new gaming course!
I've also decided, rather boldly, to also take a course of Network Security which will run in parallel to my game programming course - this will cover the CCNA Security curriculum which is, after having read through it - very interesting! It will cover concepts like setting up routers, firewalls, VPNs, encryption and endpoint security. I'll also have access to the world-class Cisco online resources including network and device simulation software.
I was a bit nervous about taking on in addition, though it looks really interesting and will go a long way in increasing/validating my networking experience and progresses me a little further in my studies and of course - fortune favours the brave!
I also had a haircut this weekend and managed to find a relatively cheap place to have it cut in West-Ruislip. I spotted it while on the bus and decided to jump out and try it. Worked out well. Not as expensive as in town and not as cheap out of town - but appropriately in the middle in both respects.
So a pretty good and productive weekend.
- Details
- Category: Blog
- By Stuart Mathews
- Hits: 4317
Since Some more Direct X10, I noticed a few days ago that my tablet's charger stopped working, I ordered a replacement which arrived on Friday. I've grown quite attached to my little stupid tablet. It's really helpful to have two screens while computing(it has a nice dock that makes it slant like a laptop screen).
I decided to put windows 10 on it and that didn't work out - all sorts of problems with the media not being able to be read etc - I had Fedora 30 on it prior and was slightly regretting having removed it.
I ended up installed MxLinux which then it didn't want to work because it couldn't install the boot loader due to some UEFI/secure boot rubbish. I then decided to install OpenSuse Tumbleweed and now I'm quite pleased with it, particularly its performance, running KDE Neon. They've done great things here and now even my Gnome 3 experience under Fedora seemed so slow in comparison.
It was an early start to the gym this morning, up at 4:30 in at 05:00 out by 06:30 and then started the day. began with a little functional programming by adding a new project to my LanguageEXT tutorial which shows how you can change the state of an object over time. I illustrated this by using the Fold()/Aggregate() method and applying events as the source of changes.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using LanguageExt;
using LanguageExt.DataTypes.Serialisation;
namespace Tutorial37
{
// This tutorial shows how you can use the Fold() function in languageExt to change the state of an object over time
class Program
{
static void Main(string[] args)
{
List<int> years = new List<int>
{
1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017, 2018, 2019
};
List<Event<Person>> events = new List<Event<Person>>
{
new ChangeNameEvent("Stuart"),
new ChangeExpertiseEvent("Programming"),
new ChangeNameEvent("Stuart Mathews"),
new ChangeExpertiseEvent("Running"),
new ChangeAgeEvent(33),
};
Person person = new Person();
// A state (InitialResult) changes over time and it changes using results of the previous change. It uses an item from the array in changing the state each time.
// The state changes the number of elements in the IEnumerable
// For a Lst which has multiple items in it, the state will change that many times
// NB: years represent the state changes that will occur
var changedPerson = years.Fold(/*initial state*/ person, (previousResult, year) => ChangeState(year, previousResult));
// Apply some events to the person over time
changedPerson = events.Fold(person, (previousResult, evt) => evt.ApplyEventTo(previousResult));
// View the changed person
Console.WriteLine(\("{changedPerson}");
// local function
Person ChangeState(int year, Person previousResult)
{
Person updatedPerson = new Person(previousResult);
updatedPerson.History.Add(\)"\nIn {year}, this person was {updatedPerson.Age} years old");
updatedPerson.Age++;
return updatedPerson;
}
}
}
}
It's pretty interesting and the whole source can be found here under tutorial 38, where you can find the code for Person. Event(s) and run it and see the results etc
Basically its a very simple demonstration of a way that you can apply changes to an object by encoding various changes that can occur to that object into events that house a particular kind of state change of an object. There is probably a software architecture pattern there but I can't remember what its called. That whole idea is pretty much embedded into the LanguageExt Fold() method or the .net aggregate method.
I also decided to make an entry on Immutability in tutorial 39 which shows you how to design your objects with immutability in mind.
I also decided to do some light reading on performing effective investigations, filling out 5x5x5 intelligence reports and various bits and pieces about case management and labratory processes. I've got to do some practicals around Android forensics which I've put off because its all a bit laborious as this stage having performed a pretty full-on investigation over the last month or so and having had to then write up a report on it following correct invesgitation principles, procedures etc. So that can wait until next week-end I thought and after making a few notes, I decided to turn my attention to 3D Math. In particular, vector and matrix algebra and transformations. I want to be ready for when I have to be tested on it!
I started learning about 3D perspective projection (which talks about foreshortening) and orthogonal projection and went through the math of translating, rotating and scaling vectors using Matrices to represent affine transformations and then started looking at plugging these operations into the pipeline.
That last part pretty much took me most of the day. A day well spent!
- Details
- Category: Blog
- By Stuart Mathews
- Hits: 2584
Since Animated aliens and alternatives algorithms, I had a pretty good weekend. The reason for this I've determined is because I did what I set out to do. I think it's very rewarding to plan something and then do it. This is especially true if its something that you want to do. I think in this way, planning can be a precursor to a pretty productive and as mentioned here, rewarding weekend. Planning is good.
I spent most of Saturday learning about 'Dead machine' analysis and a little bit of network forensics. This was interesting and its was important to do because this knowledge is required for my upcoming assignment in which I need to find some hidden information on a hard drive about a planned criminal attack. Getting this work done now enables me to at least start on that assignment, which I think is going to be a lot more difficult that it may seem. Part of the difficulty will be in not actually finding the information, which might be moderately difficult, the difficult thing will be the recording of 'comtemporaneous notes' and then writing up a Crime Scene Investigation report. So I'm glad I got that preliminary work done.
That took pretty much the whole day of of experimenting with Autopsy, Kali Linux and various forensic analysis tools. The remainder of the day, well I thought should be spend sweating. I decided to go to the gym at around 16:00. So I hopped on the train towards Rayner's Lane and arrived probably around 17:00. I decided I'd work on my back and did my back routine. I over strained by upper back but felt that it was a good workout, I was in there for about 1.4hr and had something to eat there afterwards also (after a shower and sauna). I always have the same thing and its changed its name over the years. It was once called a Protein Power Up but now is called a High Protein Plate Salad.
I'm a lot weaker than i used to be now that I only go to the gym once a week but that's OK because I'm offsetting by my 3 days a week running into the office, which is 22.5km run week. I can do more but I think a balance needs to be met because I'm finding the inability to study on the way to work does hamper my progress somewhat. That being said, the 2 days of no running gives me x4 oppertunities to study as its on the way to work and on the way back. I count the ability to study on the train as opportunity to use my laptop. I can't run in with a laptop.
Sunday was all about setting up getting my Game development prototype using 3D. That was also a all-day affair and I enjoyed every moment of it. I started at about 9-10am and finished at about 22:00 and it was not a dull moment in there. Firstly having read the portions of Game Engine Design and Implementation about implementing a 3D rendering manager, I was well equipped to at least try some of it out on my own. We're using Direct X10 which is 2 version behind the latest however I'm surprised how awesome and inspiring the graphics are that you can render using it.
I started reading about Direct X a while back and I've picked up bits and pieces of what are the important ideas which has helped me actually find my way through the 3D portions of the above mentioned book. I've also reached out and bought a book on Direct X12 which is considerably less forgiving than its predecessors and having read this chapter on 3d(which uses DirectX10), that is very true. So I've decided to be a little more cautious about my learning and I'm going to start with DX10 and then move to DX11 and then finally DX12 because having reading a bit about all three, the majority of concepts are still the same - vertex shaders, input layouts, swap chains and devices etc., but differ enough to be annoying in how to get these things working. For example in X12, you have to worry about synchronization between GPU and CPU using resource barriers - no so in DX11 and earlier. The benefit is performance. But when you're learning, I think performance is not worth worrying about so I'll leave that when I can skillfully hope between DX10 and DX11. I think that having finished my reading, I can appreciate DX10 now enough to move on to DX11 when I need to and I don't need to right now.
Basically my 3D renderer doesn't really work at all, I tried to render a 3D mesh and it looks like a spray can exploded but I learnt a heck of a lot getting there:
- Input layout is not a scary concept, it just specifies the format of the data you'll be placing in the GPU, namely the format of the struct of the vertex data you'll be sending.
- DX10 is pretty great just as it is and using it to learn the concepts of 3D rendering is more than sufficient.
- Its best to start, because starting finishes sooner
- I've got a good appreciation of how the DX3D structures work
- I know how DX uses COM interfaces as portals of functionality that control buffers such as resources
- I know how the swap chain practically works and how render targets interfaces with them and the D3d device - this was really useful and important to feel familiar with.
- I abstracted my swap chain and window creation process and this helped me understand how it worked and how complicated the standard setup can be simplified (too much code)
I decided to buy a 2 books on DirectX10 and one on Game Math. I'm looking forward to getting them:
- Introduction to 3D Game Programming with Direct 3D 10: A Shader Approach
- 3D Games Programming: Using Directx 10 and Open GL
- Math for 3D Game Programming and Computer Graphics
So, I'll be needing my evenings and weekends...
I went for my Monday morning run today and it was a pretty good one, generally speaking:
I did have a crash last week, not spectacularly but maybe that's because I got up so quick as if nothing happened - my ego was the most impacted by the slip-up. I basically was accelerating around a corner and it was wet so that's double trouble - a accident waiting to happenn. I did get a little scratch on my elbow and a little bruised on my ankle but other than that I wasn't too badly affected by the tumble. In fact, it was quite exciting to have things happen so quick. You can even see the dramatic drop in speed from around 3'30 to like 9'00:

My spelling there is a bit off - that is the effect of the fall I think. Its a waiting game now if I'll recover my speech and writing to a normal standard!
More Articles …
- Rules then Since then
- Tuesdays, scribbling and haphazard interaction
- Noughts and crosses and All Bran Flakes
- The Law, Being mental and Data Science
- Games, STL, Digital Forensics and a Fedora
- C, 64, Triple Black, Resource Management and a Game Prototype
- Easter, Heroku, Postmodernism, DataFlow, Math and Software Engineering
- Postmodern Software: Embracing complexity
- Mountain running and Zebras
- Another day in paradise
Page 23 of 182