Windows 7 Beta

January 14th, 2009

Windows 7 Logo

So I recently downloaded and installed the Windows 7 Beta. It wasn’t an entirely smooth process, I (perhaps stupidly) decided to perform an upgrade on my existing Vista installation. For the most part this worked out well, however I’ve had a few teething problems with the transistion.

Firstly I was getting the dreaded blue screen of death about every 15 minutes, a quick search on Google later though and I discovered it had to do with my anti-virus. Bad Avast! I haven’t had any more BSODs since I removed it so I’m hoping that was the only program causing that.

Secondly, I seem to have lost all of the ratings in my music files, I think the blame for this can be placed on WMP12 and whatever new method it is using for its database.

I’m currently working on an elaborate and extensive work-around to the rating problem. I’ve run Virtual PC and installed a copy of Vista, then I copied over the backup I made of the “users” directory. I then opened up WMP11 and have got it to store the ratings inside the MP3 files themselves instead of as a database. Hopefully this will fix the problem somewhat. (Edit: It did!)

Regardless the upgrade was fairly well done, especially considering Windows 7 is currently only in beta. Anyway I’m going to write up proper impressions of the OS later, so far I’m impressed but then I personally never saw any huge problems with Vista (driver issues were the only problem I had, and thats all fixed now) so anything that improves on that can’t be bad.

Happy new year!

January 2nd, 2009

img_0624_resized

(and merry christmas too while I’m at it!)

New(ish) computer

December 14th, 2008

New computer

Back in the last week of August I built a new computer and I’ve been meaning to write a post about it. This was the first time I’d attempted to do something like this, sure I’d replaced graphics cards, added more RAM, connected hard drives up and what-not but I hadn’t built it all from scratch before. There were certainly some “OH ****!” moments during the day.

The spec of my machine was (and still is) quite a beast, Overclockers.co.uk had (for some reason) sent me an e-mail offering me a 10% discount on my next order (bet they’re regretting that now, I got £100 or so off my order!) so I was able to get better parts than I originally intended.

Specs

  • Antec Twelve Hundred Ultimate Gaming Case
  • Corsair HX 620W PSU
  • Intel Core 2 Quad Q9550 2.83GHz Processor
  • Nvidia GeForce GTX280 1024MB Graphics Card
  • GeiL 4GB 1066MHz Black Dragon DDR2 RAM
  • Asus Xonar DX Sound Card
  • Samsung 1TB Hard-Drive
  • Samsung DVD-RW drive
  • Microsoft Windows Vista Ultimate SP1 64-Bit

Read the rest of this entry »

Busy busy busy

December 14th, 2008

I really need to update this blog with some stuff that’s happened these last few months since I last updated, but I’ve been so busy recently that I’ve been neglecting writing up posts. Fortunately I’ve just returned home from university for christmas so I have a bit of free time now, so I’ll get writing soon!

-Thomas

Webhost transfer

September 13th, 2008

Well, my previous hosting ran out and I decided this would be a good time to make the move to another host. This was mainly because the old one was based in the US and I was noticing considerable delays when I requested pages, I am now with a UK based webhost and it seems much faster!

Unfortunately this transfer took a while (approximately 3 weeks due to complications) and is why I haven’t updated the blog in quite some time. I’ve been kind of slacking on projects too because of this.

But at least it’s all over with now!

In other news, I’ll be going back to uni in a week or so to start up my MSc course in Computer Security. Should be fun!

-Thomas

Website updates

August 19th, 2008

I’ve been working on this website a bit, mainly on the design side. I’ve been adjusting the colours so that the text is a bit more readable. The layout of some pages has also been changed to utilize the sidebar area, previously the archive/blog navigation was placed at the bottom of the page due to the way the original WordPress them was laid out. I also intend to use the sidebar on standard pages to make the pages look a bit more interesting, though how I will do this isn’t certain yet.

One design problem I’ve encountered is that the colours of the page look subtly different between Firefox and Internet Explorer, I have a feeling this is something to do with the PNG images that I’ve been using and the browsers using different rendering methods for it.

Here is a comparison:

Internet Explorer

Internet Explorer

Firefox

Firefox

I’ve also just noticed that the layout is also subtly different, but it doesn’t look broken in either browser so I’m more concerned about the inconsistent colours, especially in IE where the background gradient doesn’t smoothly go into the final background colour.

Update

Problem solved! It turns out that other people have also noticed this problem. The problem is that PNG files have gamma correction and store a value in the file to do this, it actually sounds pretty clever but it’s a problem for web-safe colours. With the proper tool this value can be removed to draw the PNG without gamma correction, thus making the colours constant between browsers. More information can be found here.

-Thomas

RayTracing – Day 3

August 19th, 2008

Reflections!

Reflections have now been added to the raytracing algorithm. In the image above I set both spheres to have reflective properties, and you can see the results for yourself. It may not be the best scene layout for demonstrating the feature but it’ll do.

Other things I’ve added is more GUI controls so that the user can see the progress of the rendering and choose different options. A popup window appears once the rendering has completed to display the rendering time. Note in the image that it’s over 4 seconds to render as it’s running in Debug mode, the published version renders the image in 1.8 seconds on the same computer.

To improve the user interface the PictureBox (where the rendering is displayed) can now display portions of the image as it is being rendered instead of needing to wait for the entire image to be calculated for any results. The last thing I added was a second rendering mode called QuickRender, this mode effectively renders at half the resolution by skipping every other pixel.

I also rewrote the program a bit. I rewrote the raytracing function to be more recursive, which was necessary to implement the reflections.

I will try to upload a build of this to my Projects page soon.

-Thomas

RayTracing – Day 2

August 17th, 2008

The fun stuff has started now!

Here’s my first RayTracing attempt, this was to see if I could pick out the primitives with the rays I’m casting. It came out as a outline of them all. There is a plane running along the ground in the bottom half, two spheres popping out, and a light in the sky (there’s another light somewhere else too, but it can’t be seen from this angle).

Next I updated this so that instead of using “white” it uses the primitives’ material colour.

Alright, getting somewhere now! But, they’re still just outlines at the moment, this needs some diffuse lighting.

Something didn’t quite go right there. It should have been a smooth gradient transition, instead there are two extreme colours here, white and black. I tried scaling the colour values down a bit.

YES! Now this is more like it! This is looking a bit boring though, all grey? Let’s add a little bit more colour.

Awesome.

I’m happy with my progress with this, but I think I need to go back and modify the diffuse lighting calculations as I’m not entirely sure the lighting is exactly as it should be. That’s for another day though.

If anyone is interested in doing a similar project, my current source of information for this project is an article on DevMaster.Net by Jacco Bikker. I’m personally trying to use as little source code from his examples as possible and focus on just the theory, but it is there for anyone who does want to examine it. I did more or less copy the scene that he is using though so I could compare my results.

-Thomas

RayTracing – Day 1

August 16th, 2008

Behold, the progress I’ve made in a day!

Well, not a lot to show yet admittedly. Visually I’ve just got a Form with a blank 800×600 PictureBox on it, which the raytracer will eventually render onto.

However in the background I’ve been laying out some of the framework functionality needed including some annoying mathy bits like the actual raytracing algorithms, I’ve done some of this before with my dissertation so it hasn’t been too difficult yet. I’ve also programmed in a few other trivial math things like 3D vectors and planes (no, not the flying kind). There is also a basic scene manager which can have three types of objects added to it: spheres, lights and flat planes, each with their own material colour and diffuse/reflection variables.

But as mentioned, there’s currently no actual rendering functionality yet, these are just the boring beginning steps of it. Hopefully I will have something a bit more interesting to show soon.

Sidenote: C# is a great language, I’m pretty sure its going to become my language of choice.

-Thomas

Temp agency woes, and a new project!

August 14th, 2008

Well, I figured I should probably write something in here and actually use the website I’m paying for. (which is still looking a bit rubbish but at least the functionality is there now!)

I’ve finished my Computer Science degree now (First class honors! Woo!) and I was wanting to get a temp job this summer in IT or something before I go back for my Masters but it seems like that idea is going to have to go out the window now, I’ve tried registering with a few temp agencies and most have said that a) they don’t think they can find anything for me or b) they can, but then proceed to have never contacted me after a month… I would like to do something useful with my time though, so I was thinking of doing a small project to have finished by the time uni starts again.

I thought maybe something low-level with graphics would be interesting to do, I’ve played with basic/intermediate OpenGL before with my dissertation project and done some 2D graphics manipulation so I know I really like the graphics side of programming already. My idea is to do something like a basic ray-tracer in C# (a language which I don’t have too much experience in) and try a few effects out with that. I need to find some websites to help me out with the theory, though that shouldn’t be too difficult. I think I should try to keep regular posts on this blog to give myself a bit of pressure to actually work on it.

Hmm, not sure what else to write about, so I’ll end it here!

-Thomas