Tag Archive for 'XNA'

Netduino SerialPortHelper to WinForm and XNA

A few weeks ago, I was contacted via YouTube in reference to the Netduino Serial Communication example I posted a while back. In my reply I promised that I would make a posting detailing how I have since updated the system. Before we start, check out the following video to see the current system in action:

A while back I decided to adopt the methods as described by Hari over at the netduino forums to facilitate ReadLine functionality. The rationale for this was that by utilizing Hari’s code we no longer have to detail the length data being sent, thus simplifying the code greatly.
Continue reading ‘Netduino SerialPortHelper to WinForm and XNA’

Updating Game Framework To XNA 4.0

Recently I began the task of upgrading my generic XNA game framework to XNA 4.0. All in all the process went pretty smoothly with one exception. Upon rendering 2D and 3D in combination texture information was lost from the 3D environment.

Framework Rendering Broken

The picture on the left shows the issue, the right, how things should look.

With a little debugging and googling I quickly tracked down SpriteBatchas the culprit. It seems that previously, I had been getting away with not ensuring that the drawing states were correctly set before starting to draw. In fact I was relying on the now redundant SaveStateMode  to do this for me.

Continue reading ‘Updating Game Framework To XNA 4.0′