My Blog

Recently, I was thinking about one of the cases were you have to use the IDisposable pattern, the case were you need to unsubscribe from events and delegates to allow your object to get disposed by the Garbage Collector (some people miss that point), and this made me think about my hobby of overusing Lambda Expressions and if that might also cause similar problems. So I did a bunch of tests today and learned a lot of things and came up with a workaround that would make me avoid using the IDisposable pattern when all I need it for is to unsubscribe from events...

... Continue Reading →
PostImage

I know some of you were expecting me to blog about my recent trip to Lebanon, but it’ll be a long post so I’m blogging about the next best thing, a little sample project I worked on during my trip to Lebanon, I wrote a very simple wrapper for the Minecraft Server in C# :) ...

... Continue Reading →
PostImage

I noticed that the talk about Silverlight vs. HTML/CSS/Javascript heated up recently, I don't know why, maybe it started because of this post (which was on the Silverlight Team blog) followed by these posts or maybe because Windows Phone 7 is about to be released (which will only run apps programmed with Silverlight or XNA) or maybe because HTML5 is getting more popular.
Anyways, it's in time with the (late) blog post that I wanted to write about the gallery app that I made some time ago, I'll express my opinion based on my experience with both technologies, but of course I wont be able to talk about Javascript in a lot of depth because I'm not that experienced with Javascript...

... Continue Reading →
PostImage

A few days ago I started working on a Tool that would make creating HDR Images out of 2 over-exposed and under-exposed Images a very simple task !
I implemented it using HLSL (High Level Shader Language) as a Pixel Shader Function, why? because it’s faster that way and I want to get used to writing HLSL code :) ...

... Continue Reading →
PostImage

As you might know, I’m a HUGE fan of “Colin McRae: DiRT 2” the Racing Game.
I like everything in the game, but one of the things that grabbed my attention was the Loading Screen because it switches from a 3D Environment to a 2D image on a Photograph in a very cool way, and one day when I was thinking about it from a programmer’s point of view, I found out that this part can be easily implemented on XNA, so I decided to do it in my free time...

... Continue Reading →
PostImage

Lately, I’ve been reading a lot about Custom Shaders, FX Files and HLSL (High Level Shader Language), and now after I understood their concepts I decided to implement what I though was very hard to do, Sea Waves ! ...

... Continue Reading →
PostImage

Yesterday I read a post on mashable.com about YouTube's new 3D video feature and I read about all the new 3D technologies that were in CES 2010, so I decided I should try implementing something like this on XNA.
Of course the easiest way to display 3D images is using the cross-eyed stereoscopic approach where the output is 2 images displayed side by side and you cross your eyes so that your right eye sees the left image and your left eye sees the right image, so you see a 3D image floating between your eyes and your screen as a result of these 2 images combined and interpreted by your brain...

... Continue Reading →
PostImage

I just had my CSEN503 Project Evaluation today, we were required to make a Chat Room Server and Client that uses TCP Socket Connections and we had to program it in JAVA (the GUI was a bonus), we worked in teams of 2 or 3, I was late to submit my team members list so I was put with a random student :S
So, since the evaluations are done, I can safely post the Project's Code without any worries :) ...

... Continue Reading →
PostImage

I started working on a Game Engine to help with various things in every game I make, like Input Handling, Screen Managment, 3D Text and Menues.
This "GameHelperEngine" XNA Game Library Project consists of a bunch of classes that were written as part of previous projects, for example, the Input handling class was part of Asteroids v1.3 and the Screen Management and Menus classes were (and still are) part of my Checkers 3D project...

... Continue Reading →
PostImage

As part of my CSEN401 course, I have to handle a group project, the project should be either a "TetraVex Game" or a "Checkers Game" coded in Java using the Java Swing Library.
So Me and a friend called "Mohammed Nagy" teamed up to make the Checkers Game...

... Continue Reading →